v8/test/mjsunit/compiler/deopt-accessors6.js
bmeurer 986b04a62a [turbofan] Fix various bailout points for AstGraphBuilder.
This introduces a bunch of new tests that test various aspects of
accessor inlining in TurboFan (without the actual inlining), and does
the appropriate fixes to the AstGraphBuilder. The actual inlining CL
will land separately (so we don't need to revert the tests and fixes
if the accessor CL has to be reverted).

R=jarin@chromium.org

Review-Url: https://codereview.chromium.org/2197913002
Cr-Commit-Position: refs/heads/master@{#38191}
2016-08-01 06:18:48 +00:00

25 lines
465 B
JavaScript

// Copyright 2016 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 --harmony-tailcalls
"use strict";
function f(v) {
%DeoptimizeFunction(test);
return 153;
}
function test() {
var o = {};
var q = "q";
o.__defineSetter__(q, f);
assertEquals(1, o[q] = 1);
}
test();
test();
%OptimizeFunctionOnNextCall(test);
test();