4af80298b6
This adds a missing lazy bailout point when defining data properties with computed property names in object literals. The runtime call to Runtime::kDefineDataPropertyInLiteral can trigger deopts. The necessary bailout ID already exists and is now properly used. R=jarin@chromium.org TEST=mjsunit/regress/regress-crbug-621816 BUG=chromium:621816 Review-Url: https://codereview.chromium.org/2099133003 Cr-Commit-Position: refs/heads/master@{#37294}
19 lines
358 B
JavaScript
19 lines
358 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 --turbo
|
|
|
|
function f() {
|
|
var o = {};
|
|
o.a = 1;
|
|
}
|
|
function g() {
|
|
var o = { ['a']: function(){} };
|
|
f();
|
|
}
|
|
f();
|
|
f();
|
|
%OptimizeFunctionOnNextCall(g);
|
|
g();
|