Home | History | Annotate | Download | only in regress
      1 // 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 
      7 var test = function() {
      8   var t = Date.now();  // Just any non-constant double value.
      9   var o = {
     10     ['p']: 1,
     11     t
     12   };
     13 };
     14 
     15 function caller() {
     16   test();
     17 }
     18 caller();
     19 caller();
     20 %OptimizeFunctionOnNextCall(caller);
     21 caller();
     22