// Copyright 2014 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-syntaxfunctiont1(){returnthisinstanceoft1;}functiont2(){returnthisinstanceoft2;}varo1=new(function(){})();Object.defineProperty(o1,"t",{get:function(){returnthisinstanceofo1.constructor;}});varo2=new(function(){})();Object.defineProperty(o2,"t",{get:function(){returnthisinstanceofo1.constructor;}});varo3=new(function(){})();o3.t=true;functionf(o){return1+(o.t?1:2);}f(o1);f(o1);f(o2);%OptimizeFunctionOnNextCall(f);f(o3);