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

16
deps/v8/test/wasm-spec-tests/BUILD.gn vendored Normal file
View File

@ -0,0 +1,16 @@
# 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.
group("v8_wasm_spec_tests") {
testonly = true
data_deps = [
"../..:d8",
"../../tools:v8_testrunner",
]
data = [
"./",
]
}

View File

@ -0,0 +1,14 @@
# Metadata information for this directory.
#
# For more information on DIR_METADATA files, see:
# https://source.chromium.org/chromium/infra/infra/+/master:go/src/infra/tools/dirmd/README.md
#
# For the schema of this file, see Metadata message:
# https://source.chromium.org/chromium/infra/infra/+/master:go/src/infra/tools/dirmd/proto/dir_metadata.proto
monorail {
component: "Blink>JavaScript>WebAssembly"
}
buganizer_public: {
component_id: 1456332
}

1
deps/v8/test/wasm-spec-tests/OWNERS vendored Normal file
View File

@ -0,0 +1 @@
file:../../src/wasm/OWNERS

89
deps/v8/test/wasm-spec-tests/testcfg.py vendored Normal file
View File

@ -0,0 +1,89 @@
# Copyright 2017 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.
from testrunner.local import testsuite
from testrunner.objects import testcase
# We use the 'wasm-3.0' branch on the main spec repo, so enable all proposals
# that were merged into that branch.
default_flags = ['--experimental-wasm-exnref']
proposal_flags = [
{
'name': 'js-types',
'flags': ['--experimental-wasm-type-reflection']
},
{
'name': 'tail-call',
'flags': []
},
{
'name':
'memory64',
'flags': [
# The memory64 repository is rebased on the upstream 'wasm-3.0'
# branch, which contains exnref.
'--experimental-wasm-exnref'
]
},
{
'name': 'extended-const',
'flags': []
},
{
'name': 'function-references',
'flags': []
},
{
'name': 'gc',
'flags': []
},
{
'name': 'multi-memory',
'flags': ['--experimental-wasm-multi-memory']
},
{
'name': 'exception-handling',
# This flag enables the *new* exception handling proposal. The legacy
# proposal is enabled by default.
'flags': ['--experimental-wasm-exnref']
},
{
'name':
'js-promise-integration',
'flags': [
'--experimental-wasm-jspi',
# The jspi repository is rebased on the upstream 'wasm-3.0'
# branch, which contains exnref.
'--experimental-wasm-exnref'
]
}
]
class TestLoader(testsuite.JSTestLoader):
pass
class TestSuite(testsuite.TestSuite):
def __init__(self, ctx, *args, **kwargs):
super(TestSuite, self).__init__(ctx, *args, **kwargs)
self.test_root = self.root / "tests"
self._test_loader.test_root = self.test_root
def _test_loader_class(self):
return TestLoader
def _test_class(self):
return TestCase
class TestCase(testcase.D8TestCase):
def _get_files_params(self):
return [self.suite.test_root / self.path_js]
def _get_source_flags(self):
for proposal in proposal_flags:
if f"proposals/{proposal['name']}" in self.name:
return proposal['flags']
return default_flags

View File

@ -0,0 +1 @@
e8f855c3f80301e3f127eaf18ba426dd6208c4bb

View File

@ -0,0 +1,127 @@
# Copyright 2016 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.
[
[ALWAYS, {
'skip-stack-guard-page': [PASS, ['((arch == ppc64 or arch == s390x) and simulator_run)', SKIP]],
# Tests that need to run sequentially (e.g. due to memory consumption).
'simd/simd_f32x4*': [PASS, HEAVY],
'simd/simd_f64x2*': [PASS, HEAVY],
'f32*': [PASS, HEAVY],
'f64*': [PASS, HEAVY],
# The test is incorrect as it exports a function with an exnref in the
# signature, which is a runtime type error.
'ref_null': [FAIL],
# TODO(clemensb/evih): Resolve https://github.com/WebAssembly/memory64/pull/103#issuecomment-2548870034
'memory64': [FAIL],
'table': [FAIL],
}], # ALWAYS
['arch == arm and not simulator_run', {
# See https://crbug.com/v8/10938 denormals not handled correctly on ARM.
'simd/simd_f32x4': [PASS, FAIL],
'simd/simd_f32x4_arith': [PASS, FAIL],
'simd/simd_f32x4_cmp': [PASS, FAIL],
# This test only has 1 problematic use of f32x4.min and f32x4.div, consider
# removing it from upstream, then we can run this test.
'simd/simd_splat' : [PASS, FAIL],
'simd/simd_f32x4_pmin_pmax' : [PASS, FAIL],
}], # arch == arm and not simulator_run
['arch == mips64el or arch == mips64', {
# These tests fail because mips does not support the correct NaN bit patterns.
'float_misc': [SKIP],
'float_exprs': [SKIP],
'f32': [SKIP],
'f64': [SKIP],
# MIPS64 doesn't support JSPI yet.
'proposals/js-promise-integration/*': [SKIP],
}], # 'arch == mips64el or arch == mips64'
['(arch == mips64el or arch == mips64) and not simulator_run', {
# This test fail because mips does not support the correct NaN bit patterns.
# But it doesn't fail in simulator.
'conversions': [SKIP],
}], # '(arch == mips64el or arch == mips64) and not simulator_run'
['(arch == mips64el or arch == loong64) and simulator_run', {
# These tests need larger stack size on simulator.
'skip-stack-guard-page': '--sim-stack-size=8192',
}], # '(arch == mips64el or arch == loong64) and simulator_run'
['arch == riscv64', {
# These tests need larger stack size on simulator.
'skip-stack-guard-page': '--sim-stack-size=8192',
}], # 'arch == riscv64'
['arch == riscv32', {
# These tests need larger stack size on simulator.
'skip-stack-guard-page': '--sim-stack-size=8192',
'func': ['variant == stress', SKIP],
}], # 'arch == riscv32'
['arch == ppc64', {
# These tests fail because ppc float min and max doesn't convert sNaN to qNaN.
'f32': [SKIP],
'f64': [SKIP],
# This test fails because ppc float to double doesn't convert sNaN to qNaN.
'conversions': [SKIP],
}], # 'arch == ppc64'
['arch == s390x', {
# These tests fail because s390x float min and max doesn't convert sNaN to qNaN.
'f32': [SKIP],
'f64': [SKIP],
}], # 'arch == s390x'
##############################################################################
# TODO(v8:7777): Change this once wasm is supported in jitless mode.
['not has_webassembly or variant == jitless', {
'*': [SKIP],
}], # not has_webassembly or variant == jitless
##############################################################################
['variant == stress_snapshot', {
'*': [SKIP], # only relevant for mjsunit tests.
}], # variant == stress_snapshot
##############################################################################
['no_simd_hardware == True', {
'linking': [SKIP],
'relaxed-simd*': [SKIP],
'simd*': [SKIP],
'proposals/exception-handling/simd*': [SKIP],
'proposals/extended-const/simd*': [SKIP],
'proposals/gc/simd*': [SKIP],
'proposals/js-promise-integration/simd*': [SKIP],
'proposals/js-types/simd*': [SKIP],
'proposals/memory64/relaxed-simd*': [SKIP],
'proposals/memory64/simd*': [SKIP],
'proposals/multi-memory/simd*': [SKIP],
'proposals/tail-call/simd*': [SKIP],
}], # no_simd_hardware == True
##############################################################################
['variant == stress', {
# Spec tests are executing long enough even without stress mode.
# As stress mode is unlikely to flush out bugs, skip the tests there.
'*': [SKIP],
}], # variant == stress
##############################################################################
# Skip tests that require a large amount of virtual address space (inside the
# sandbox if that is enabled) if tsan is enabled.
['tsan == True', {
'memory_copy': [SKIP],
}], # tsan == True
]