Revision: 16164
Author:   [email protected]
Date:     Mon Aug 12 17:45:24 2013
Log:      MIPS: Make assert more accurate

Port r16147 (1ced433a)

BUG=

Review URL: https://codereview.chromium.org/22956002
http://code.google.com/p/v8/source/detail?r=16164

Modified:
 /branches/bleeding_edge/src/mips/lithium-mips.cc

=======================================
--- /branches/bleeding_edge/src/mips/lithium-mips.cc Mon Aug 12 08:02:57 2013 +++ /branches/bleeding_edge/src/mips/lithium-mips.cc Mon Aug 12 17:45:24 2013
@@ -1628,9 +1628,8 @@
     HCompareNumericAndBranch* instr) {
   Representation r = instr->representation();
   if (r.IsSmiOrInteger32()) {
-    ASSERT(instr->left()->representation().IsSmiOrInteger32());
-    ASSERT(instr->left()->representation().Equals(
-        instr->right()->representation()));
+    ASSERT(instr->left()->representation().Equals(r));
+    ASSERT(instr->right()->representation().Equals(r));
     LOperand* left = UseRegisterOrConstantAtStart(instr->left());
     LOperand* right = UseRegisterOrConstantAtStart(instr->right());
     return new(zone()) LCompareNumericAndBranch(left, right);

--
--
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/groups/opt_out.

Reply via email to