Reviewers: jarin,

Description:
Fix types for SimplifiedLowering.

[email protected]

Please review this at https://codereview.chromium.org/484603003/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+4, -3 lines):
  M src/compiler/simplified-lowering.cc


Index: src/compiler/simplified-lowering.cc
diff --git a/src/compiler/simplified-lowering.cc b/src/compiler/simplified-lowering.cc index 7645addc6971831a859401264bb3e2f0bad81962..0ffbdcc192bdc021bc59942687c3c5c59d81a3c0 100644
--- a/src/compiler/simplified-lowering.cc
+++ b/src/compiler/simplified-lowering.cc
@@ -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:


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to