Reviewers: jarin,

Description:
Fix bug in representation-change.h.

[email protected]
BUG=

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

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

Affected files (+1, -1 lines):
  M src/compiler/representation-change.h


Index: src/compiler/representation-change.h
diff --git a/src/compiler/representation-change.h b/src/compiler/representation-change.h index bb3e357325b28b0334d5d69589bb520e9414a4fc..f50a7ef1e374701c0b41bcc8f22cb69595387526 100644
--- a/src/compiler/representation-change.h
+++ b/src/compiler/representation-change.h
@@ -220,9 +220,9 @@ class RepresentationChanger {
     switch (node->opcode()) {
       case IrOpcode::kInt32Constant:
         return node;  // No change necessary.
-      case IrOpcode::kNumberConstant:
       case IrOpcode::kFloat32Constant:
         return MakeInt32Constant(OpParameter<float>(node));
+      case IrOpcode::kNumberConstant:
       case IrOpcode::kFloat64Constant:
         return MakeInt32Constant(OpParameter<double>(node));
       default:


--
--
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