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

Unified Diff: runtime/vm/flow_graph_compiler.cc

Issue 10886015: Eliminate try-index for deopt stubs. (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/flow_graph_compiler.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 11467)
+++ runtime/vm/flow_graph_compiler.cc (working copy)
@@ -239,8 +239,7 @@
// kDeoptAtCall will not emit code, but will only generate deoptimization
// information.
const intptr_t deopt_index = deopt_stubs_.length();
- const intptr_t kNoTryIndex = -1;
- AddDeoptStub(deopt_id, kNoTryIndex, kDeoptAtCall);
+ AddDeoptStub(deopt_id, kDeoptAtCall);
pc_descriptors_list()->AddDescriptor(PcDescriptors::kDeoptIndex,
assembler()->CodeSize(),
deopt_id,
@@ -260,10 +259,8 @@
Label* FlowGraphCompiler::AddDeoptStub(intptr_t deopt_id,
- intptr_t try_index,
DeoptReasonId reason) {
- DeoptimizationStub* stub =
- new DeoptimizationStub(deopt_id, try_index, reason);
+ DeoptimizationStub* stub = new DeoptimizationStub(deopt_id, reason);
ASSERT(is_optimizing_);
ASSERT(pending_deoptimization_env_ != NULL);
stub->set_deoptimization_env(pending_deoptimization_env_);
« no previous file with comments | « runtime/vm/flow_graph_compiler.h ('k') | runtime/vm/flow_graph_compiler_ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698