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

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
« no previous file with comments | « vm/assembler_macros_x64.cc ('k') | vm/code_generator_ia32.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/code_generator.cc
===================================================================
--- vm/code_generator.cc (revision 7669)
+++ vm/code_generator.cc (working copy)
@@ -4,6 +4,7 @@
#include "vm/code_generator.h"
+#include "vm/assembler_macros.h"
#include "vm/code_patcher.h"
#include "vm/compiler.h"
#include "vm/dart_api_impl.h"
@@ -1442,7 +1443,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);
« no previous file with comments | « vm/assembler_macros_x64.cc ('k') | vm/code_generator_ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698