0be88a57e5
This is the second reland of https://chromium-review.googlesource.com/c/v8/v8/+/2487122 , this time without RuntimeCallStats in the tests. Generalize the existing property lookup machinery (JSNCS::ReduceNamedAccess) to handle the case where the lookup_start_object and the receiver are different objects. Design doc: https://docs.google.com/document/d/1b_wgtExmJDLb8206jpJol-g4vJAxPs1XjEx95hwRboI/edit#heading=h.xqthbgih7l2l Bug: v8:9237 Change-Id: I782df6e032ff8191082b425e68d68b69cef0a560 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2527092 Auto-Submit: Marja Hölttä <marja@chromium.org> Commit-Queue: Georg Neis <neis@chromium.org> Reviewed-by: Georg Neis <neis@chromium.org> Cr-Commit-Position: refs/heads/master@{#71077}
19 lines
457 B
JavaScript
19 lines
457 B
JavaScript
// Copyright 2020 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 --concurrent-inlining --no-use-ic --super-ic
|
|
|
|
class A {
|
|
bar() { }
|
|
}
|
|
class B extends A {
|
|
foo() {
|
|
return super.bar();
|
|
}
|
|
}
|
|
%PrepareFunctionForOptimization(B.prototype.foo);
|
|
new B().foo();
|
|
%OptimizeFunctionOnNextCall(B.prototype.foo);
|
|
new B().foo();
|