Upload Kmake

This commit is contained in:
Gorochu
2026-05-26 23:36:42 -07:00
parent ba051b2f74
commit 555ec72358
41615 changed files with 13344630 additions and 1 deletions

View File

@ -0,0 +1,23 @@
// Copyright 2019 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.
new BenchmarkSuite('LoadConstantFromPrototype', [1000], [
new Benchmark('LoadConstantFromPrototype', false, false, 0, LoadConstantFromPrototype)
]);
function Foo() {};
Foo.prototype.bar = {};
Foo.prototype.covfefe = function() {};
Foo.prototype.baz = 1;
function LoadConstantFromPrototype() {
let foo = new Foo();
for (let i = 0; i < 1000; ++i) {
foo.bar;
foo.covfefe;
foo.baz;
}
}

24
deps/v8/test/js-perf-test/IC/run.js vendored Normal file
View File

@ -0,0 +1,24 @@
// Copyright 2019 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.
d8.file.execute('../base.js');
d8.file.execute('loadconstantfromprototype.js');
function PrintResult(name, result) {
print(name + '-IC(Score): ' + result);
}
function PrintStep(name) {}
function PrintError(name, error) {
PrintResult(name, error);
}
BenchmarkSuite.config.doWarmup = undefined;
BenchmarkSuite.config.doDeterministic = undefined;
BenchmarkSuite.RunSuites({ NotifyResult: PrintResult,
NotifyError: PrintError,
NotifyStep: PrintStep });