2016-10-24 12:52:33 +02:00
|
|
|
// 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 --verify-heap
|
|
|
|
|
|
|
|
function f(a) { // First parameter is tagged.
|
|
|
|
var n = 1 + a;
|
|
|
|
}
|
|
|
|
|
|
|
|
function g() {
|
|
|
|
f();
|
2019-08-16 11:32:46 +02:00
|
|
|
var d = {x: f()};
|
2016-10-24 12:52:33 +02:00
|
|
|
return [d];
|
2019-08-16 11:32:46 +02:00
|
|
|
};
|
|
|
|
%PrepareFunctionForOptimization(g);
|
2016-10-24 12:52:33 +02:00
|
|
|
g();
|
|
|
|
g();
|
|
|
|
%OptimizeFunctionOnNextCall(g);
|
|
|
|
g();
|