dcb502a4ee
This makes sure only the %_DeoptimizeNow intrinsic is inlined, and not the %DeoptimizeNow one. It hence re-establishes the invariant that JSIntrinsicLowering only deals with inline intrinsics. R=jarin@chromium.org TEST=mjsunit/compiler/eager-deopt-simple Review URL: https://codereview.chromium.org/988333003 Cr-Commit-Position: refs/heads/master@{#27070}
19 lines
371 B
JavaScript
19 lines
371 B
JavaScript
// Copyright 2015 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
|
|
|
|
function g(a, b, c) {
|
|
return a + b + c;
|
|
}
|
|
|
|
function f() {
|
|
return g(1, (%_DeoptimizeNow(), 2), 3);
|
|
}
|
|
|
|
f();
|
|
f();
|
|
%OptimizeFunctionOnNextCall(f);
|
|
assertEquals(6, f());
|