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

Unified Diff: runtime/vm/flow_graph_compiler.cc

Issue 10543111: Optimize StoreIndexedComp on ia32&x64. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: disable store indexed specialization if FLAG_enable_type_checks Created 8 years, 6 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 | « no previous file | runtime/vm/flow_graph_compiler_ia32.h » ('j') | runtime/vm/flow_graph_compiler_ia32.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler.cc
diff --git a/runtime/vm/flow_graph_compiler.cc b/runtime/vm/flow_graph_compiler.cc
index f5cd3f3231f6bb91e6d9282c7d53498449cdc41a..d127ee4dec0a9707d3f1126da1d1b19f428a1cef 100644
--- a/runtime/vm/flow_graph_compiler.cc
+++ b/runtime/vm/flow_graph_compiler.cc
@@ -154,11 +154,13 @@ Label* FlowGraphCompiler::AddDeoptStub(intptr_t deopt_id,
intptr_t try_index,
DeoptReasonId reason,
Register reg1,
- Register reg2) {
+ Register reg2,
+ Register reg3) {
DeoptimizationStub* stub =
new DeoptimizationStub(deopt_id, deopt_token_index, try_index, reason);
stub->Push(reg1);
srdjan 2012/06/12 16:43:46 I think we need to guard reg2 as well for kNoRegis
stub->Push(reg2);
+ if (reg3 != kNoRegister) stub->Push(reg3);
deopt_stubs_.Add(stub);
return stub->entry_label();
}
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler_ia32.h » ('j') | runtime/vm/flow_graph_compiler_ia32.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698