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

Unified Diff: runtime/vm/flow_graph_compiler.cc

Issue 670263007: IR refactoring: consolidate all boxing and unboxing instructions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | « runtime/vm/flow_graph_compiler.h ('k') | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler.cc
diff --git a/runtime/vm/flow_graph_compiler.cc b/runtime/vm/flow_graph_compiler.cc
index d3258f98b9d11c36a6e0f21420fb38afc0882a71..372ec5a0a557ccb5fa843a80442c88236d5f86cf 100644
--- a/runtime/vm/flow_graph_compiler.cc
+++ b/runtime/vm/flow_graph_compiler.cc
@@ -1497,4 +1497,24 @@ intptr_t FlowGraphCompiler::GetOptimizationThreshold() const {
return threshold;
}
+
+const Class& FlowGraphCompiler::BoxClassFor(Representation rep) {
+ switch (rep) {
+ case kUnboxedDouble:
+ return double_class();
+ case kUnboxedFloat32x4:
+ return float32x4_class();
+ case kUnboxedFloat64x2:
+ return float64x2_class();
+ case kUnboxedInt32x4:
+ return int32x4_class();
+ case kUnboxedMint:
+ return mint_class();
+ default:
+ UNREACHABLE();
+ return Class::ZoneHandle();
+ }
+}
+
+
} // namespace dart
« no previous file with comments | « runtime/vm/flow_graph_compiler.h ('k') | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698