2016-05-20 15:18:43 +00: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
|
|
|
|
|
|
|
|
var test = function() {
|
|
|
|
var t = Date.now(); // Just any non-constant double value.
|
2019-06-12 14:00:50 +00:00
|
|
|
var o = {['p']: 1, t};
|
2016-05-20 15:18:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
function caller() {
|
|
|
|
test();
|
2019-06-12 14:00:50 +00:00
|
|
|
};
|
|
|
|
%PrepareFunctionForOptimization(caller);
|
2016-05-20 15:18:43 +00:00
|
|
|
caller();
|
|
|
|
caller();
|
|
|
|
%OptimizeFunctionOnNextCall(caller);
|
|
|
|
caller();
|