5d16e866e7
This reverts commit ec6da23bfe
.
Reason for revert: Requires infrastructure changes first. Will reland after changes have happened.
Original change's description:
> [flags] Remove some dead Crankshaft flags.
>
> R=bmeurer@chromium.org
> BUG=v8:6408
>
> Change-Id: I34abbcdc2fc47df44938bac0e59f9982c935c657
> Reviewed-on: https://chromium-review.googlesource.com/569963
> Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
> Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#46631}
TBR=mstarzinger@chromium.org,bmeurer@chromium.org
Change-Id: Iee077911ae7d877c6a9d2edb548e3c04345b47ce
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: v8:6408
Reviewed-on: https://chromium-review.googlesource.com/570049
Reviewed-by: Michael Starzinger <mstarzinger@chromium.org>
Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#46632}
30 lines
655 B
JavaScript
30 lines
655 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=5 --nodead-code-elimination
|
|
|
|
var array = [];
|
|
|
|
function push(array, value) {
|
|
array.push(value);
|
|
}
|
|
|
|
push(array, 0);
|
|
push(array, 1);
|
|
push(array, 2);
|
|
%OptimizeFunctionOnNextCall(push);
|
|
push(array, 3);
|
|
|
|
var v = 0;
|
|
Object.defineProperty(Array.prototype, "4", {
|
|
get: function() { return 100; },
|
|
set: function(value) { v = value; }
|
|
});
|
|
|
|
push(array, 4);
|
|
|
|
assertEquals(5, array.length);
|
|
assertEquals(100, array[4]);
|
|
assertEquals(4, v);
|