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

Unified Diff: runtime/vm/compiler.cc

Issue 203523011: Introduce a lazy-compile stub for functions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: rebased & added MIPS code Created 6 years, 9 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/compiler.cc
===================================================================
--- runtime/vm/compiler.cc (revision 34118)
+++ runtime/vm/compiler.cc (working copy)
@@ -562,7 +562,7 @@
Code::Handle(function.unoptimized_code()).EntryPoint());
}
}
- function.SetCode(code);
+ function.AttachCode(code);
for (intptr_t i = 0;
i < flow_graph->guarded_fields()->length();
@@ -572,7 +572,7 @@
}
} else {
function.set_unoptimized_code(code);
- function.SetCode(code);
+ function.AttachCode(code);
ASSERT(CodePatcher::CodeIsPatchable(code));
}
}
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/gc_marker.cc » ('j') | runtime/vm/raw_object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698