18 return a->Pos() -
b->Pos();
24 for (
auto block : blocks) {
27 if (
auto suspend_instr = it.
Current()->AsSuspend()) {
28 array->Add(suspend_instr->token_pos());
70 Invoke(root_library,
"foo");
78 CompilerPass::kComputeSSA,
81 auto validate_indices = [](
const YieldPoints& yield_points) {
82 EXPECT_EQ(3, yield_points.length());
84 EXPECT_EQ(88, yield_points[0].Pos());
85 EXPECT_EQ(129, yield_points[1].Pos());
86 EXPECT_EQ(170, yield_points[2].Pos());
#define RELEASE_ASSERT(cond)
static ErrorPtr EnsureUnoptimizedCode(Thread *thread, const Function &function)
const GrowableArray< BlockEntryInstr * > & reverse_postorder() const
Instruction * Current() const
intptr_t YieldIndex() const
TokenPosition TokenPos() const
FlowGraph * RunPasses(std::initializer_list< CompilerPass::Id > passes)
static Thread * Current()
static constexpr intptr_t kInvalidYieldIndex
const uint8_t uint32_t uint32_t GError ** error
Dart_NativeFunction function
LibraryPtr LoadTestScript(const char *script, Dart_NativeEntryResolver resolver, const char *lib_uri)
ZoneGrowableArray< TokenPosition > YieldPoints
static YieldPoints * GetYieldPointsFromGraph(FlowGraph *flow_graph)
int LowestFirst(const TokenPosition *a, const TokenPosition *b)
ObjectPtr Invoke(const Library &lib, const char *name)
FunctionPtr GetFunction(const Library &lib, const char *name)
static YieldPoints * GetYieldPointsFromCode(const Code &code)
void RunTestInMode(CompilerPass::PipelineMode mode)
ISOLATE_UNIT_TEST_CASE(StackAllocatedDestruction)
void SetupCoreLibrariesForUnitTest()
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive mode