312dbdd5db
Bug: chromium:904417, v8:7790 Change-Id: Ie1edc179c88747a2515f2c42b4820ce3126bfe43 Reviewed-on: https://chromium-review.googlesource.com/c/1331478 Reviewed-by: Jaroslav Sevcik <jarin@chromium.org> Commit-Queue: Georg Neis <neis@chromium.org> Cr-Commit-Position: refs/heads/master@{#57491}
19 lines
395 B
JavaScript
19 lines
395 B
JavaScript
// Copyright 2018 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-syntax
|
|
|
|
function bar(o) {
|
|
return o.hello, Object.getPrototypeOf(o);
|
|
}
|
|
|
|
var y = { __proto__: {}, hello: 44 };
|
|
var z = { hello: 45 };
|
|
|
|
bar(y);
|
|
bar(z);
|
|
bar(y);
|
|
%OptimizeFunctionOnNextCall(bar);
|
|
bar(y);
|