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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 23068020: Fix performance regression on Tracer: recognize _doublePow in Math. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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/intermediate_language.h ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.cc
===================================================================
--- runtime/vm/intermediate_language.cc (revision 26445)
+++ runtime/vm/intermediate_language.cc (working copy)
@@ -2528,7 +2528,7 @@
InvokeMathCFunctionInstr::InvokeMathCFunctionInstr(
ZoneGrowableArray<Value*>* inputs,
- InstanceCallInstr* instance_call,
+ intptr_t original_deopt_id,
MethodRecognizer::Kind recognized_kind)
: inputs_(inputs),
locs_(NULL),
@@ -2539,7 +2539,7 @@
(*inputs)[i]->set_instruction(this);
(*inputs)[i]->set_use_index(i);
}
- deopt_id_ = instance_call->deopt_id();
+ deopt_id_ = original_deopt_id;
}
@@ -2555,7 +2555,7 @@
case MethodRecognizer::kDoubleRound:
return 1;
case MethodRecognizer::kDoubleMod:
- case MethodRecognizer::kDoublePow:
+ case MethodRecognizer::kMathDoublePow:
return 2;
default:
UNREACHABLE();
@@ -2602,7 +2602,7 @@
return kFloorRuntimeEntry;
case MethodRecognizer::kDoubleCeil:
return kCeilRuntimeEntry;
- case MethodRecognizer::kDoublePow:
+ case MethodRecognizer::kMathDoublePow:
return kPowRuntimeEntry;
case MethodRecognizer::kDoubleMod:
return kModRuntimeEntry;
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698