1// Copyright 2014 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 o = {a: undefined}; 8 9function store(o, v) { 10 o.a = v; 11} 12 13store(o, undefined); 14store(o, undefined); 15 16function f(bool) { 17 var o = {a: undefined}; 18 if (bool) { 19 store(o, 1); 20 } 21 return o; 22} 23 24f(false); 25f(false); 26%OptimizeFunctionOnNextCall(f); 27f(true); 28