Revision: 19689
Author:   [email protected]
Date:     Thu Mar  6 12:13:49 2014 UTC
Log:      Let HTransitionElementsKind take part in RestoreActualValues phase

BUG=chromium:349853
LOG=n
[email protected]

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

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

=======================================
--- /dev/null
+++ /branches/bleeding_edge/test/mjsunit/regress/regress-crbug-349853.js Thu Mar 6 12:13:49 2014 UTC
@@ -0,0 +1,21 @@
+// 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
+
+var a = ["string"];
+function funky(array) { return array[0] = 1; }
+funky(a);
+
+function crash() {
+  var q = [0];
+  // The failing ASSERT was only triggered when compiling for OSR.
+  for (var i = 0; i < 100000; i++) {
+    funky(q);
+  }
+  q[0] = 0;
+  funky(q)
+}
+
+crash();
=======================================
--- /branches/bleeding_edge/src/hydrogen-instructions.h Tue Mar 4 12:48:17 2014 UTC +++ /branches/bleeding_edge/src/hydrogen-instructions.h Thu Mar 6 12:13:49 2014 UTC
@@ -6884,6 +6884,8 @@
     return original_map_ == instr->original_map_ &&
            transitioned_map_ == instr->transitioned_map_;
   }
+
+  virtual int RedefinedOperandIndex() { return 0; }

  private:
   HTransitionElementsKind(HValue* context,

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