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

Unified Diff: runtime/vm/flow_graph_optimizer.cc

Issue 10440082: Fix a bug in ia32 shift left , implemented more inlined binary operations in x64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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/constants_x64.h ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_optimizer.cc
===================================================================
--- runtime/vm/flow_graph_optimizer.cc (revision 8116)
+++ runtime/vm/flow_graph_optimizer.cc (working copy)
@@ -39,17 +39,6 @@
}
-static Token::Kind GetBinaryOp(const String& name) {
- if (name.Length() == 1) {
- switch (name.CharAt(0)) {
- case '+' : return Token::kADD;
- default: return Token::kILLEGAL;
- }
- }
- return Token::kILLEGAL;
-}
-
-
static bool ICDataHasTwoReceiverClasses(const ICData& ic_data,
const Class& cls1,
const Class& cls2) {
@@ -81,7 +70,7 @@
void FlowGraphOptimizer::VisitInstanceCall(InstanceCallComp* comp) {
if ((comp->ic_data() != NULL) && (!comp->ic_data()->IsNull())) {
- Token::Kind op_kind = GetBinaryOp(comp->function_name());
+ Token::Kind op_kind = Token::GetBinaryOp(comp->function_name());
if (op_kind == Token::kILLEGAL) {
// Not a recognized binary operation.
return;
« no previous file with comments | « runtime/vm/constants_x64.h ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698