Index: runtime/vm/dart_entry.cc |
diff --git a/runtime/vm/dart_entry.cc b/runtime/vm/dart_entry.cc |
index abb3e5db371e4c8dd5b4433b7c0aff9c9f6e7fab..3ab815277b99c54aa6f597a35301a2569ace9be0 100644 |
--- a/runtime/vm/dart_entry.cc |
+++ b/runtime/vm/dart_entry.cc |
@@ -10,6 +10,7 @@ |
#include "vm/debugger.h" |
#include "vm/object_store.h" |
#include "vm/resolver.h" |
+#include "vm/safepoint.h" |
#include "vm/simulator.h" |
#include "vm/stub_code.h" |
#include "vm/symbols.h" |
@@ -113,6 +114,7 @@ RawObject* DartEntry::InvokeFunction(const Function& function, |
ASSERT(thread->no_callback_scope_depth() == 0); |
ScopedIsolateStackLimits stack_limit(thread); |
SuspendLongJumpScope suspend_long_jump_scope(thread); |
+ TransitionToGenerated transition(thread); |
#if defined(USING_SIMULATOR) |
return bit_copy<RawObject*, int64_t>(Simulator::Current()->Call( |
reinterpret_cast<intptr_t>(entrypoint), |