204babf5a0
This ensures the deoptimization triggered due to materialization of objects by the {TranslatedState} works in conjunction with OSR. The optimized code used for OSR is not installed on the function, hence needs to be specified explicitly when requesting deoptimization for specific stack frames. R=jarin@chromium.org TEST=mjsunit/regress/regress-crbug-668795 BUG=chromium:668795 Review-Url: https://codereview.chromium.org/2534143002 Cr-Commit-Position: refs/heads/master@{#41348}
22 lines
458 B
JavaScript
22 lines
458 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 --ignition
|
|
|
|
function g() {
|
|
return g.arguments;
|
|
}
|
|
|
|
function f() {
|
|
var result = "R:";
|
|
for (var i = 0; i < 3; ++i) {
|
|
if (i == 1) %OptimizeOsr();
|
|
result += g([1])[0];
|
|
result += g([2])[0];
|
|
}
|
|
return result;
|
|
}
|
|
|
|
assertEquals("R:121212", f());
|