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

Unified Diff: runtime/vm/deopt_instructions.cc

Issue 10885039: Deoptimization can occur at Dart calls (includes native calls to C) but not at runtime calls. This … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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/deopt_instructions.cc
===================================================================
--- runtime/vm/deopt_instructions.cc (revision 11533)
+++ runtime/vm/deopt_instructions.cc (working copy)
@@ -100,7 +100,8 @@
deopt_id_as_smi ^= deopt_context->ObjectAt(object_table_index_ + 1);
const Code& code =
Code::Handle(deopt_context->isolate(), function.unoptimized_code());
- uword continue_at_pc = code.GetDeoptPcAtDeoptId(deopt_id_as_smi.Value());
+ uword continue_at_pc =
+ code.GetDeoptBeforePcAtDeoptId(deopt_id_as_smi.Value());
siva 2012/08/30 01:37:30 Ditto question about unoptimized code having a Deo
srdjan 2012/08/30 17:16:16 Ditto answer
intptr_t* to_addr = deopt_context->GetToFrameAddressAt(to_index);
*to_addr = continue_at_pc;
}

Powered by Google App Engine
This is Rietveld 408576698