v8/test/mjsunit/regress/regress-373283.js
jarin@chromium.org 58a130da6e Reland "Fix Heap::IsHeapIterable."
This relands r21388 (+ handlification of an offending function).

BUG=373283
LOG=N
R=hpayer@chromium.org

Review URL: https://codereview.chromium.org/294903003

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21397 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-05-21 06:44:38 +00:00

19 lines
464 B
JavaScript

// 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 --deopt-every-n-times=1
function __f_0() {
var x = [];
x[21] = 1;
x[21] + 0;
}
for (var i = 0; i < 3; i++) __f_0();
%OptimizeFunctionOnNextCall(__f_0);
for (var i = 0; i < 10; i++) __f_0();
%OptimizeFunctionOnNextCall(__f_0);
__f_0();
%GetScript("foo");