Revision: 21959
Author:   [email protected]
Date:     Tue Jun 24 09:33:05 2014 UTC
Log:      Remove bogus assertions in HCompareObjectEqAndBranch.

[email protected], [email protected]
BUG=387636
LOG=Y

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

Added:
 /branches/bleeding_edge/test/mjsunit/regress/regress-crbug-387636.js
Modified:
 /branches/bleeding_edge/src/hydrogen-instructions.h

=======================================
--- /dev/null
+++ /branches/bleeding_edge/test/mjsunit/regress/regress-crbug-387636.js Tue Jun 24 09:33:05 2014 UTC
@@ -0,0 +1,14 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Flags: --allow-natives-syntax
+
+function f() {
+  [].indexOf(0x40000000);
+}
+
+f();
+f();
+%OptimizeFunctionOnNextCall(f);
+f();
=======================================
--- /branches/bleeding_edge/src/hydrogen-instructions.h Mon Jun 23 09:09:05 2014 UTC +++ /branches/bleeding_edge/src/hydrogen-instructions.h Tue Jun 24 09:33:05 2014 UTC
@@ -4383,12 +4383,6 @@
                             HBasicBlock* true_target = NULL,
                             HBasicBlock* false_target = NULL)
       : known_successor_index_(kNoKnownSuccessorIndex) {
-    ASSERT(!left->IsConstant() ||
-           (!HConstant::cast(left)->HasInteger32Value() ||
-            HConstant::cast(left)->HasSmiValue()));
-    ASSERT(!right->IsConstant() ||
-           (!HConstant::cast(right)->HasInteger32Value() ||
-            HConstant::cast(right)->HasSmiValue()));
     SetOperandAt(0, left);
     SetOperandAt(1, right);
     SetSuccessorAt(0, true_target);

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