Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(580)

Unified Diff: runtime/vm/runtime_entry.cc

Issue 1965823002: Initial isolate reload support (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/runtime_entry.cc
diff --git a/runtime/vm/runtime_entry.cc b/runtime/vm/runtime_entry.cc
index b8d043b4c1ed6fe3fd80e516ef155ef4cd5176f8..a0826367b1f9d067cadeca01c6fed8975d0e61d3 100644
--- a/runtime/vm/runtime_entry.cc
+++ b/runtime/vm/runtime_entry.cc
@@ -17,8 +17,9 @@ const Function& RegisterFakeFunction(const char* name, const Code& code) {
Thread* thread = Thread::Current();
const String& class_name = String::Handle(Symbols::New(thread, "ownerClass"));
const Script& script = Script::Handle();
+ const Library& lib = Library::Handle(Library::CoreLibrary());
const Class& owner_class =
- Class::Handle(Class::New(class_name, script,
+ Class::Handle(Class::New(lib, class_name, script,
TokenPosition::kNoSource));
const String& function_name = String::ZoneHandle(Symbols::New(thread, name));
const Function& function = Function::ZoneHandle(
@@ -34,7 +35,6 @@ const Function& RegisterFakeFunction(const char* name, const Code& code) {
const Array& functions = Array::Handle(Array::New(1));
functions.SetAt(0, function);
owner_class.SetFunctions(functions);
- Library& lib = Library::Handle(Library::CoreLibrary());
lib.AddClass(owner_class);
function.AttachCode(code);
return function;

Powered by Google App Engine
This is Rietveld 408576698