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

Unified Diff: runtime/vm/stub_code_ia32_test.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/stub_code_ia32_test.cc
diff --git a/runtime/vm/stub_code_ia32_test.cc b/runtime/vm/stub_code_ia32_test.cc
index 34e8ef3aa8e5330145568a47a96f9958dece02df..6ba14dc6b826bad0a85bdb95df0773c2140c782b 100644
--- a/runtime/vm/stub_code_ia32_test.cc
+++ b/runtime/vm/stub_code_ia32_test.cc
@@ -23,10 +23,9 @@ static Function* CreateFunction(const char* name) {
const String& class_name = String::Handle(Symbols::New(Thread::Current(),
"ownerClass"));
const Script& script = Script::Handle();
- const Class& owner_class = Class::Handle(
- Class::New(class_name, script, TokenPosition::kNoSource));
const Library& lib = Library::Handle(Library::New(class_name));
- owner_class.set_library(lib);
+ const Class& owner_class = Class::Handle(
+ Class::New(lib, class_name, script, TokenPosition::kNoSource));
const String& function_name = String::ZoneHandle(
Symbols::New(Thread::Current(), name));
Function& function = Function::ZoneHandle(

Powered by Google App Engine
This is Rietveld 408576698