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

Unified Diff: runtime/vm/flow_graph_compiler.cc

Issue 10880079: Emit deoptimization information at static calls (preparation for full deoptimization). … (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
« no previous file with comments | « runtime/vm/code_generator.h ('k') | runtime/vm/flow_graph_compiler_ia32.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler.cc
===================================================================
--- runtime/vm/flow_graph_compiler.cc (revision 11424)
+++ runtime/vm/flow_graph_compiler.cc (working copy)
@@ -233,6 +233,21 @@
}
+void FlowGraphCompiler::AddDeoptIndexAtCall(intptr_t deopt_id,
+ intptr_t token_pos) {
+ // TODO(srdjan): Temporary use deopt stubs to maintain deopt-indexes.
+ // kDeoptAtCall will not emit code, but will only generate deoptimization
+ // information.
+ const intptr_t deopt_index = deopt_stubs_.length();
+ AddDeoptStub(deopt_id, -1, kDeoptAtCall);
Florian Schneider 2012/08/28 16:00:57 Maybe kNoTryIndex instead of -1. Can you also eli
srdjan 2012/08/28 17:08:25 Using kNoTryIndex, will eliminate try_index from A
+ pc_descriptors_list()->AddDescriptor(PcDescriptors::kDeoptIndex,
+ assembler()->CodeSize(),
+ deopt_id,
+ token_pos,
+ deopt_index);
+}
+
+
void FlowGraphCompiler::RecordSafepoint(LocationSummary* locs) {
if (is_optimizing()) {
BitmapBuilder* bitmap = locs->stack_bitmap();
« no previous file with comments | « runtime/vm/code_generator.h ('k') | runtime/vm/flow_graph_compiler_ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698