/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/v8/test/mjsunit/compiler/inline-private-method.js
22 строки
521 B
Michaël Zasso
deps: update V8 to 9.8.177.9
02 фев 2022, 19:23
Не верифицирован
02 фев 2022, 19:23
974ab40
Код
Авторство
О чём код?
// Copyright 2021 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 class A { a() { this.#b() } #b() {} } function InlinePrivateMethod() { for (let i = 0; i < 10; i++) { new A().a(); } } %PrepareFunctionForOptimization(A); %PrepareFunctionForOptimization(InlinePrivateMethod); InlinePrivateMethod(); %OptimizeFunctionOnNextCall(InlinePrivateMethod); InlinePrivateMethod();