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

Unified Diff: runtime/vm/flow_graph_optimizer.cc

Issue 10937030: Make some static helpers into member functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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/lib/integers.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_optimizer.cc
diff --git a/runtime/vm/flow_graph_optimizer.cc b/runtime/vm/flow_graph_optimizer.cc
index 750aa86005828711fccfab4de93abe37097f57ad..db507772c0c579098dcee2f6bceae1a0beceb19a 100644
--- a/runtime/vm/flow_graph_optimizer.cc
+++ b/runtime/vm/flow_graph_optimizer.cc
@@ -2197,9 +2197,8 @@ void ConstantPropagator::VisitBinarySmiOp(BinarySmiOpInstr* instr) {
case Token::kTRUNCDIV:
case Token::kMOD: {
const Object& result =
- Integer::ZoneHandle(Integer::BinaryOp(instr->op_kind(),
- Smi::Cast(left),
- Smi::Cast(right)));
+ Integer::ZoneHandle(Smi::Cast(left).BinaryOp(instr->op_kind(),
+ Smi::Cast(right)));
SetValue(instr, result);
break;
}
« no previous file with comments | « runtime/lib/integers.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698