Fix types for SimplifiedLowering.
authorbmeurer@chromium.org <bmeurer@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 19 Aug 2014 09:17:00 +0000 (09:17 +0000)
committerbmeurer@chromium.org <bmeurer@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 19 Aug 2014 09:17:00 +0000 (09:17 +0000)
TBR=jarin@chromium.org

Review URL: https://codereview.chromium.org/484603003

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23186 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/compiler/simplified-lowering.cc

index 7645add..0ffbdcc 100644 (file)
@@ -629,12 +629,13 @@ class RepresentationSelector {
 
       case IrOpcode::kChangeInt32ToInt64:
         return VisitUnop(node, kTypeInt32 | kRepWord32,
-                         kTypeInt64 | kRepWord64);
+                         kTypeInt32 | kRepWord64);
       case IrOpcode::kChangeUint32ToUint64:
         return VisitUnop(node, kTypeUint32 | kRepWord32,
-                         kTypeUint64 | kRepWord64);
+                         kTypeUint32 | kRepWord64);
       case IrOpcode::kTruncateInt64ToInt32:
-        return VisitUnop(node, kTypeInt64 | kRepWord64,
+        // TODO(titzer): Is kTypeInt32 correct here?
+        return VisitUnop(node, kTypeInt32 | kRepWord64,
                          kTypeInt32 | kRepWord32);
 
       case IrOpcode::kChangeInt32ToFloat64: