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

Unified Diff: runtime/vm/flow_graph_type_propagator.cc

Issue 13872020: Inline Float32x4 Getters (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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
Index: runtime/vm/flow_graph_type_propagator.cc
diff --git a/runtime/vm/flow_graph_type_propagator.cc b/runtime/vm/flow_graph_type_propagator.cc
index 827f9e47b194bc5f01b4835f50c9823b4ccfd580..397d35c48184c5d4818dbf4b70792df0da365b19 100644
--- a/runtime/vm/flow_graph_type_propagator.cc
+++ b/runtime/vm/flow_graph_type_propagator.cc
@@ -965,6 +965,17 @@ CompileType BinaryFloat32x4OpInstr::ComputeType() const {
}
+CompileType Float32x4ShuffleInstr::ComputeType() const {
+ if (op_kind() == MethodRecognizer::kFloat32x4ShuffleX ||
+ op_kind() == MethodRecognizer::kFloat32x4ShuffleY ||
+ op_kind() == MethodRecognizer::kFloat32x4ShuffleZ ||
+ op_kind() == MethodRecognizer::kFloat32x4ShuffleW) {
+ return CompileType::FromCid(kDoubleCid);
+ }
+ return CompileType::FromCid(kFloat32x4Cid);
+}
+
+
CompileType MathSqrtInstr::ComputeType() const {
return CompileType::FromCid(kDoubleCid);
}

Powered by Google App Engine
This is Rietveld 408576698