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

Unified Diff: runtime/vm/flow_graph_type_propagator.cc

Issue 68663003: Merge TRUNCDIV and MOD into TRUNCDIV_MOD single operation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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
Index: runtime/vm/flow_graph_type_propagator.cc
===================================================================
--- runtime/vm/flow_graph_type_propagator.cc (revision 30236)
+++ runtime/vm/flow_graph_type_propagator.cc (working copy)
@@ -987,7 +987,12 @@
CompileType BinarySmiOpInstr::ComputeType() const {
- return CompileType::FromCid(kSmiCid);
+ if ((op_kind() == Token::kTRUNCDIVMOD) ||
+ (op_kind() == Token::kTRUNCDIVREM)) {
+ return CompileType::FromCid(kArrayCid);
+ } else {
+ return CompileType::FromCid(kSmiCid);
+ }
}

Powered by Google App Engine
This is Rietveld 408576698