#include <inliner.h>
Definition at line 33 of file inliner.h.
◆ SpeculativeInliningPolicy()
dart::SpeculativeInliningPolicy::SpeculativeInliningPolicy |
( |
bool |
enable_suppression, |
|
|
intptr_t |
limit = -1 |
|
) |
| |
|
inlineexplicit |
Definition at line 35 of file inliner.h.
37 : enable_suppression_(enable_suppression), remaining_(limit) {}
◆ AddBlockedDeoptId()
bool dart::SpeculativeInliningPolicy::AddBlockedDeoptId |
( |
intptr_t |
id | ) |
|
|
inline |
Definition at line 58 of file inliner.h.
58 {
59 ASSERT(enable_suppression_);
60#if defined(DEBUG)
62#endif
63
64
65
66 if (remaining_ <= 0) return false;
67
68 inlining_suppressions_.
Add(
id);
69 remaining_ -= 1;
70 return true;
71 }
◆ AllowsSpeculativeInlining()
bool dart::SpeculativeInliningPolicy::AllowsSpeculativeInlining |
( |
| ) |
const |
|
inline |
Definition at line 39 of file inliner.h.
39 {
40 return !enable_suppression_ || remaining_ > 0;
41 }
◆ IsAllowedForInlining()
bool dart::SpeculativeInliningPolicy::IsAllowedForInlining |
( |
intptr_t |
call_deopt_id | ) |
const |
|
inline |
Definition at line 43 of file inliner.h.
43 {
44
45 if (!enable_suppression_) {
46 return true;
47 }
48
49
50 if (IsSuppressed(call_deopt_id)) {
51 return false;
52 }
53
54
55 return remaining_ > 0;
56 }
◆ length()
intptr_t dart::SpeculativeInliningPolicy::length |
( |
| ) |
const |
|
inline |
Definition at line 73 of file inliner.h.
73{
return inlining_suppressions_.
length(); }
The documentation for this class was generated from the following file:
- third_party/dart-lang/sdk/runtime/vm/compiler/backend/inliner.h