2015-01-14 13:56:55 +00:00
|
|
|
// Copyright 2015 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.
|
|
|
|
|
2016-03-21 19:39:16 +00:00
|
|
|
// Flags: --allow-natives-syntax
|
2015-01-14 13:56:55 +00:00
|
|
|
|
|
|
|
function bar() {}
|
2015-11-13 14:13:50 +00:00
|
|
|
bar({ a: new Proxy({}, {}) });
|
2015-01-14 13:56:55 +00:00
|
|
|
function foo(x) { x.a.b == ""; }
|
|
|
|
var x = {a: {b: "" }};
|
2019-04-30 13:39:53 +00:00
|
|
|
%PrepareFunctionForOptimization(foo);
|
2015-01-14 13:56:55 +00:00
|
|
|
foo(x);
|
|
|
|
foo(x);
|
|
|
|
%OptimizeFunctionOnNextCall(foo);
|
|
|
|
foo(x);
|