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

Unified Diff: vm/code_generator.cc

Issue 10375059: Use a reserved stack local variable to store the Code object so that it can be looked up easily whe… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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: vm/code_generator.cc
===================================================================
--- vm/code_generator.cc (revision 7576)
+++ vm/code_generator.cc (working copy)
@@ -1442,7 +1442,13 @@
OS::Print(" Line: %d Column: %d ", line, column);
OS::Print(">> %s\n", String::Handle(script.GetLine(line)).ToCString());
}
+ // Patch the return PC and saved PC marker in frame to point to the
+ // unoptimized version.
caller_frame->set_pc(continue_at_pc);
+ caller_frame->SetEntrypointMarker(
+ unoptimized_code.EntryPoint() +
+ AssemblerMacros::kOffsetOfSavedPCfromEntrypoint);
+
// Clear invocation counter so that the function gets optimized after
// types/classes have been collected.
function.set_usage_counter(0);

Powered by Google App Engine
This is Rietveld 408576698