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

Unified Diff: runtime/vm/opt_code_generator_ia32.cc

Issue 8430007: Proper reg for deoptiomization. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 2 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 | tests/language/src/DeoptimizationTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/opt_code_generator_ia32.cc
diff --git a/runtime/vm/opt_code_generator_ia32.cc b/runtime/vm/opt_code_generator_ia32.cc
index 2175b9d034fd7b90967b5f54e04940ce5b9a31d1..7fcdd3c72f56119cf2c47b648789123f3a62fc53 100644
--- a/runtime/vm/opt_code_generator_ia32.cc
+++ b/runtime/vm/opt_code_generator_ia32.cc
@@ -657,7 +657,7 @@ void OptimizingCodeGenerator::GenerateSmiBinaryOp(BinaryOpNode* node) {
Label* overflow_label = NULL;
Label two_smis, call_operator;
if (left_info.IsClass(smi_class_) || right_info.IsClass(smi_class_)) {
- DeoptimizationBlob* deopt_blob = AddDeoptimizationBlob(node, EAX, EDX);
+ DeoptimizationBlob* deopt_blob = AddDeoptimizationBlob(node, ECX, EDX);
overflow_label = deopt_blob->label();
__ movl(ECX, EAX); // Save if overflow (needs original value).
if (!left_info.IsClass(smi_class_) || !right_info.IsClass(smi_class_)) {
« no previous file with comments | « no previous file | tests/language/src/DeoptimizationTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698