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

Unified Diff: runtime/vm/compiler.cc

Issue 216383004: Merge initial implementation of deferred handling in the VM: (Closed) Base URL: http://dart.googlecode.com/svn/trunk/dart/
Patch Set: 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
« no previous file with comments | « runtime/vm/bootstrap_natives.h ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compiler.cc
===================================================================
--- runtime/vm/compiler.cc (revision 34495)
+++ runtime/vm/compiler.cc (working copy)
@@ -579,6 +579,14 @@
function.SetCode(code);
ASSERT(CodePatcher::CodeIsPatchable(code));
}
+ if (parsed_function->HasDeferredPrefixes()) {
+ GrowableObjectArray* prefixes = parsed_function->DeferredPrefixes();
+ LibraryPrefix& prefix = LibraryPrefix::Handle();
+ for (intptr_t i = 0; i < prefixes->Length(); i++) {
+ prefix ^= prefixes->At(i);
+ prefix.RegisterDependentCode(code);
+ }
+ }
}
is_compiled = true;
done = true;
« no previous file with comments | « runtime/vm/bootstrap_natives.h ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698