blob: 728094fc6d230c4e17071776ca8af177f889d3cb [file] [log] [blame]
Ben Murdochc5610432016-08-08 18:44:38 +01001// Copyright 2016 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Flags: --allow-natives-syntax
6
7var test = function() {
8 var t = Date.now(); // Just any non-constant double value.
9 var o = {
10 ['p']: 1,
11 t
12 };
13};
14
15function caller() {
16 test();
17}
18caller();
19caller();
20%OptimizeFunctionOnNextCall(caller);
21caller();