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

Unified Diff: runtime/vm/flow_graph_type_propagator.cc

Issue 345563007: Add Uint32 representation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 9a68f2600e0f349fc73903d8fee2822da5576a16..e437f997b641c99bc9b08cdec7bcaf0162f992a6 100644
--- a/runtime/vm/flow_graph_type_propagator.cc
+++ b/runtime/vm/flow_graph_type_propagator.cc
@@ -1328,4 +1328,35 @@ CompileType ExtractNthOutputInstr::ComputeType() const {
}
+CompileType BinaryUint32OpInstr::ComputeType() const {
+ return CompileType::Int();
Vyacheslav Egorov (Google) 2014/07/07 16:16:03 On x64 it's actually CompileType::FromCid(kSmiCid)
Cutch 2014/07/07 22:34:28 Done.
+}
+
+
+CompileType ShiftUint32OpInstr::ComputeType() const {
+ return CompileType::Int();
+}
+
+
+CompileType UnaryUint32OpInstr::ComputeType() const {
+ return CompileType::Int();
+}
+
+
+CompileType BoxUint32Instr::ComputeType() const {
+ return CompileType::Int();
+}
+
+
+bool BoxUint32Instr::RecomputeType() {
Vyacheslav Egorov (Google) 2014/07/07 16:16:03 I am not sure why this is needed given that BoxUin
Cutch 2014/07/07 22:34:28 Done.
+ return UpdateType(ComputeType());
+}
+
+
+CompileType UnboxUint32Instr::ComputeType() const {
+ return CompileType::Int();
+}
+
+
+
} // namespace dart

Powered by Google App Engine
This is Rietveld 408576698