| Index: runtime/vm/dart_entry.cc
|
| ===================================================================
|
| --- runtime/vm/dart_entry.cc (revision 36443)
|
| +++ runtime/vm/dart_entry.cc (working copy)
|
| @@ -45,8 +45,10 @@
|
| // Get the entrypoint corresponding to the function specified, this
|
| // will result in a compilation of the function if it is not already
|
| // compiled.
|
| + Isolate* isolate = Isolate::Current();
|
| if (!function.HasCode()) {
|
| - const Error& error = Error::Handle(Compiler::CompileFunction(function));
|
| + const Error& error = Error::Handle(
|
| + isolate, Compiler::CompileFunction(isolate, function));
|
| if (!error.IsNull()) {
|
| return error.raw();
|
| }
|
| @@ -54,7 +56,7 @@
|
| // Now Call the invoke stub which will invoke the dart function.
|
| invokestub entrypoint = reinterpret_cast<invokestub>(
|
| StubCode::InvokeDartCodeEntryPoint());
|
| - const Code& code = Code::Handle(function.CurrentCode());
|
| + const Code& code = Code::Handle(isolate, function.CurrentCode());
|
| ASSERT(!code.IsNull());
|
| ASSERT(Isolate::Current()->no_callback_scope_depth() == 0);
|
| #if defined(USING_SIMULATOR)
|
|
|