summaryrefslogtreecommitdiff
path: root/deps/v8/test/message
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/message')
-rw-r--r--deps/v8/test/message/fail/wasm-async-compile-fail.out4
-rw-r--r--deps/v8/test/message/fail/wasm-async-instantiate-fail.out4
-rw-r--r--deps/v8/test/message/fail/wasm-module-name.js2
-rw-r--r--deps/v8/test/message/fail/wasm-no-name.out2
-rw-r--r--deps/v8/test/message/fail/wasm-streaming-compile-fail.out4
-rw-r--r--deps/v8/test/message/fail/wasm-streaming-instantiate-fail.out4
-rw-r--r--deps/v8/test/message/fail/wasm-sync-compile-fail.out4
-rw-r--r--deps/v8/test/message/message.status18
-rw-r--r--deps/v8/test/message/testcfg.py15
-rw-r--r--deps/v8/test/message/wasm-module-name-async.js2
-rw-r--r--deps/v8/test/message/wasm-no-name-async.out2
-rw-r--r--deps/v8/test/message/wasm-no-name-streaming.out2
-rw-r--r--deps/v8/test/message/wasm-trace-memory-liftoff.js1
-rw-r--r--deps/v8/test/message/wasm-trace-memory-liftoff.out28
-rw-r--r--deps/v8/test/message/wasm-trace-memory.js1
-rw-r--r--deps/v8/test/message/wasm-trace-memory.out28
16 files changed, 65 insertions, 56 deletions
diff --git a/deps/v8/test/message/fail/wasm-async-compile-fail.out b/deps/v8/test/message/fail/wasm-async-compile-fail.out
index 0ecf9b1968..322b872976 100644
--- a/deps/v8/test/message/fail/wasm-async-compile-fail.out
+++ b/deps/v8/test/message/fail/wasm-async-compile-fail.out
@@ -1,5 +1,5 @@
-*%(basename)s:9: CompileError: WebAssembly.compile(): Compiling function #0:"f" failed: expected 1 elements on the stack for fallthru to @1, found 0 @+24
+*%(basename)s:9: CompileError: WebAssembly.compile(): Compiling function #0:"f" failed: expected 1 elements on the stack for fallthru, found 0 @+24
let rethrow = e => setTimeout(_ => {throw e}, 0);
^
-CompileError: WebAssembly.compile(): Compiling function #0:"f" failed: expected 1 elements on the stack for fallthru to @1, found 0 @+24
+CompileError: WebAssembly.compile(): Compiling function #0:"f" failed: expected 1 elements on the stack for fallthru, found 0 @+24
diff --git a/deps/v8/test/message/fail/wasm-async-instantiate-fail.out b/deps/v8/test/message/fail/wasm-async-instantiate-fail.out
index ebe2760dd2..fd5193de2c 100644
--- a/deps/v8/test/message/fail/wasm-async-instantiate-fail.out
+++ b/deps/v8/test/message/fail/wasm-async-instantiate-fail.out
@@ -1,5 +1,5 @@
-*%(basename)s:9: CompileError: WebAssembly.instantiate(): Compiling function #0:"f" failed: expected 1 elements on the stack for fallthru to @1, found 0 @+24
+*%(basename)s:9: CompileError: WebAssembly.instantiate(): Compiling function #0:"f" failed: expected 1 elements on the stack for fallthru, found 0 @+24
let rethrow = e => setTimeout(_ => {throw e}, 0);
^
-CompileError: WebAssembly.instantiate(): Compiling function #0:"f" failed: expected 1 elements on the stack for fallthru to @1, found 0 @+24
+CompileError: WebAssembly.instantiate(): Compiling function #0:"f" failed: expected 1 elements on the stack for fallthru, found 0 @+24
diff --git a/deps/v8/test/message/fail/wasm-module-name.js b/deps/v8/test/message/fail/wasm-module-name.js
index c872c32cb8..9fa60789b1 100644
--- a/deps/v8/test/message/fail/wasm-module-name.js
+++ b/deps/v8/test/message/fail/wasm-module-name.js
@@ -8,7 +8,7 @@ load("test/mjsunit/wasm/wasm-module-builder.js");
var builder = new WasmModuleBuilder();
builder.setName('test-module');
-builder.addFunction(undefined, kSig_i_v)
+builder.addFunction('main', kSig_i_v)
.addBody([kExprUnreachable])
.exportAs('main');
builder.instantiate().exports.main();
diff --git a/deps/v8/test/message/fail/wasm-no-name.out b/deps/v8/test/message/fail/wasm-no-name.out
index 182b15dc87..c39dff6310 100644
--- a/deps/v8/test/message/fail/wasm-no-name.out
+++ b/deps/v8/test/message/fail/wasm-no-name.out
@@ -1,4 +1,4 @@
wasm-function[0]:0x22: RuntimeError: unreachable
RuntimeError: unreachable
- at main (<anonymous>:wasm-function[0]:0x22)
+ at <anonymous>:wasm-function[0]:0x22
at *%(basename)s:{NUMBER}:31
diff --git a/deps/v8/test/message/fail/wasm-streaming-compile-fail.out b/deps/v8/test/message/fail/wasm-streaming-compile-fail.out
index d11d5ebf84..94719c6695 100644
--- a/deps/v8/test/message/fail/wasm-streaming-compile-fail.out
+++ b/deps/v8/test/message/fail/wasm-streaming-compile-fail.out
@@ -1,5 +1,5 @@
-*%(basename)s:11: CompileError: WebAssembly.compileStreaming(): Compiling function #0:"f" failed: expected 1 elements on the stack for fallthru to @1, found 0 @+24
+*%(basename)s:11: CompileError: WebAssembly.compileStreaming(): Compiling function #0:"f" failed: expected 1 elements on the stack for fallthru, found 0 @+24
let rethrow = e => setTimeout(_ => {throw e}, 0);
^
-CompileError: WebAssembly.compileStreaming(): Compiling function #0:"f" failed: expected 1 elements on the stack for fallthru to @1, found 0 @+24
+CompileError: WebAssembly.compileStreaming(): Compiling function #0:"f" failed: expected 1 elements on the stack for fallthru, found 0 @+24
diff --git a/deps/v8/test/message/fail/wasm-streaming-instantiate-fail.out b/deps/v8/test/message/fail/wasm-streaming-instantiate-fail.out
index d8cd334de0..b9eda93704 100644
--- a/deps/v8/test/message/fail/wasm-streaming-instantiate-fail.out
+++ b/deps/v8/test/message/fail/wasm-streaming-instantiate-fail.out
@@ -1,5 +1,5 @@
-*%(basename)s:11: CompileError: WebAssembly.instantiateStreaming(): Compiling function #0:"f" failed: expected 1 elements on the stack for fallthru to @1, found 0 @+24
+*%(basename)s:11: CompileError: WebAssembly.instantiateStreaming(): Compiling function #0:"f" failed: expected 1 elements on the stack for fallthru, found 0 @+24
let rethrow = e => setTimeout(_ => {throw e}, 0);
^
-CompileError: WebAssembly.instantiateStreaming(): Compiling function #0:"f" failed: expected 1 elements on the stack for fallthru to @1, found 0 @+24
+CompileError: WebAssembly.instantiateStreaming(): Compiling function #0:"f" failed: expected 1 elements on the stack for fallthru, found 0 @+24
diff --git a/deps/v8/test/message/fail/wasm-sync-compile-fail.out b/deps/v8/test/message/fail/wasm-sync-compile-fail.out
index 849fc202ee..c22bb032a0 100644
--- a/deps/v8/test/message/fail/wasm-sync-compile-fail.out
+++ b/deps/v8/test/message/fail/wasm-sync-compile-fail.out
@@ -1,6 +1,6 @@
-*%(basename)s:9: CompileError: WebAssembly.Module(): Compiling function #0:"f" failed: expected 1 elements on the stack for fallthru to @1, found 0 @+24
+*%(basename)s:9: CompileError: WebAssembly.Module(): Compiling function #0:"f" failed: expected 1 elements on the stack for fallthru, found 0 @+24
new WebAssembly.Module(builder.toBuffer());
^
-CompileError: WebAssembly.Module(): Compiling function #0:"f" failed: expected 1 elements on the stack for fallthru to @1, found 0 @+24
+CompileError: WebAssembly.Module(): Compiling function #0:"f" failed: expected 1 elements on the stack for fallthru, found 0 @+24
at *%(basename)s:9:1
diff --git a/deps/v8/test/message/message.status b/deps/v8/test/message/message.status
index 4301867fdf..4a6e1176bc 100644
--- a/deps/v8/test/message/message.status
+++ b/deps/v8/test/message/message.status
@@ -70,11 +70,6 @@
}],
################################################################################
-['arch == ppc64', {
- # Tests that require Simd enabled.
- 'wasm-trace-memory': [SKIP],
-}],
-
['arch == mips64el or arch == mipsel', {
# Tests that require Simd enabled.
'wasm-trace-memory': [SKIP],
@@ -84,4 +79,17 @@
# Tests that require Simd enabled.
'wasm-trace-memory': [SKIP],
}],
+
+##############################################################################
+['no_simd_hardware == True', {
+ 'wasm-trace-memory': [SKIP],
+ 'wasm-trace-memory-liftoff': [SKIP],
+}], # no_simd_hardware == True
+
+################################################################################
+['third_party_heap', {
+ # Performs GC
+ 'weakref-finalizationregistry-error': [SKIP],
+}], # third_party_heap
+
]
diff --git a/deps/v8/test/message/testcfg.py b/deps/v8/test/message/testcfg.py
index f99c377661..7bc5ddf52f 100644
--- a/deps/v8/test/message/testcfg.py
+++ b/deps/v8/test/message/testcfg.py
@@ -49,6 +49,8 @@ class TestCase(testcase.D8TestCase):
def __init__(self, *args, **kwargs):
super(TestCase, self).__init__(*args, **kwargs)
+ # get_source() relies on this being set.
+ self._base_path = os.path.join(self.suite.root, self.path)
source = self.get_source()
self._source_files = self._parse_source_files(source)
self._source_flags = self._parse_source_flags(source)
@@ -78,13 +80,12 @@ class TestCase(testcase.D8TestCase):
return self._source_flags
def _get_source_path(self):
- base_path = os.path.join(self.suite.root, self.path)
# Try .js first, and fall back to .mjs.
# TODO(v8:9406): clean this up by never separating the path from
# the extension in the first place.
- if os.path.exists(base_path + self._get_suffix()):
- return base_path + self._get_suffix()
- return base_path + '.mjs'
+ if os.path.exists(self._base_path + self._get_suffix()):
+ return self._base_path + self._get_suffix()
+ return self._base_path + '.mjs'
def skip_predictable(self):
# Message tests expected to fail don't print allocation output for
@@ -94,8 +95,10 @@ class TestCase(testcase.D8TestCase):
@property
def output_proc(self):
return message.OutProc(self.expected_outcomes,
- os.path.join(self.suite.root, self.path),
- self._expected_fail())
+ self._base_path,
+ self._expected_fail(),
+ self._base_path + '.out',
+ self.suite.test_config.regenerate_expected_files)
def GetSuite(*args, **kwargs):
diff --git a/deps/v8/test/message/wasm-module-name-async.js b/deps/v8/test/message/wasm-module-name-async.js
index a0d501fc25..48a7183ede 100644
--- a/deps/v8/test/message/wasm-module-name-async.js
+++ b/deps/v8/test/message/wasm-module-name-async.js
@@ -9,7 +9,7 @@ load('test/mjsunit/wasm/wasm-module-builder.js');
var builder = new WasmModuleBuilder();
builder.setName('test-module');
-builder.addFunction(undefined, kSig_i_v)
+builder.addFunction('main', kSig_i_v)
.addBody([kExprUnreachable])
.exportAs('main');
let buffer = builder.toBuffer();
diff --git a/deps/v8/test/message/wasm-no-name-async.out b/deps/v8/test/message/wasm-no-name-async.out
index ad003ef227..b35991d7fa 100644
--- a/deps/v8/test/message/wasm-no-name-async.out
+++ b/deps/v8/test/message/wasm-no-name-async.out
@@ -1,4 +1,4 @@
RuntimeError: unreachable
- at main (<anonymous>:wasm-function[0]:0x22)
+ at <anonymous>:wasm-function[0]:0x22
at *%(basename)s:{NUMBER}:27
at test/mjsunit/mjsunit.js:*
diff --git a/deps/v8/test/message/wasm-no-name-streaming.out b/deps/v8/test/message/wasm-no-name-streaming.out
index 987952db8b..182d3c552b 100644
--- a/deps/v8/test/message/wasm-no-name-streaming.out
+++ b/deps/v8/test/message/wasm-no-name-streaming.out
@@ -1,4 +1,4 @@
RuntimeError: unreachable
- at main (<anonymous>:wasm-function[0]:0x22)
+ at <anonymous>:wasm-function[0]:0x22
at test/message/wasm-no-name-async.js:{NUMBER}:27
at test/mjsunit/mjsunit.js:*
diff --git a/deps/v8/test/message/wasm-trace-memory-liftoff.js b/deps/v8/test/message/wasm-trace-memory-liftoff.js
index ad1b9e4042..1050123c59 100644
--- a/deps/v8/test/message/wasm-trace-memory-liftoff.js
+++ b/deps/v8/test/message/wasm-trace-memory-liftoff.js
@@ -4,7 +4,6 @@
// Flags: --no-stress-opt --trace-wasm-memory --liftoff
// Flags: --no-wasm-tier-up --experimental-wasm-simd
-// Flags: --enable-sse3 --enable-sse4-1
// Force enable sse3 and sse4-1, since that will determine which execution tier
// we use, and thus the expected output message will differ.
diff --git a/deps/v8/test/message/wasm-trace-memory-liftoff.out b/deps/v8/test/message/wasm-trace-memory-liftoff.out
index 7228cb4607..43de995348 100644
--- a/deps/v8/test/message/wasm-trace-memory-liftoff.out
+++ b/deps/v8/test/message/wasm-trace-memory-liftoff.out
@@ -1,14 +1,14 @@
-liftoff func: 0+0x3 load from 0000000000000004 val: i32:0 / 00000000
-liftoff func: 1+0x3 load from 0000000000000001 val: i8:0 / 00
-liftoff func: 3+0x5 store to 0000000000000004 val: i32:305419896 / 12345678
-liftoff func: 0+0x3 load from 0000000000000002 val: i32:1450704896 / 56780000
-liftoff func: 1+0x3 load from 0000000000000006 val: i8:52 / 34
-liftoff func: 2+0x3 load from 0000000000000002 val: f32:68169720922112.000000 / 56780000
-liftoff func: 4+0x5 store to 0000000000000004 val: i8:171 / ab
-liftoff func: 0+0x3 load from 0000000000000002 val: i32:1454047232 / 56ab0000
-liftoff func: 2+0x3 load from 0000000000000002 val: f32:94008244174848.000000 / 56ab0000
-liftoff func: 6+0x7 store to 0000000000000004 val: s128:48879 48879 48879 48879 / 0000beef 0000beef 0000beef 0000beef
-liftoff func: 5+0x3 load from 0000000000000002 val: s128:-1091633152 -1091633152 -1091633152 -1091633152 / beef0000 beef0000 beef0000 beef0000
-liftoff func: 7+0x3 load from 0000000000000004 val: i16:48879 / beef
-liftoff func: 8+0x3 load from 0000000000000002 val: i64:-4688528683866062848 / beef0000beef0000
-liftoff func: 9+0x3 load from 0000000000000002 val: f64:-0.000015 / beef0000beef0000
+liftoff func: 0:0xab load from 0000000000000004 val: i32:0 / 00000000
+liftoff func: 1:0xb4 load from 0000000000000001 val: i8:0 / 00
+liftoff func: 3:0xc8 store to 0000000000000004 val: i32:305419896 / 12345678
+liftoff func: 0:0xab load from 0000000000000002 val: i32:1450704896 / 56780000
+liftoff func: 1:0xb4 load from 0000000000000006 val: i8:52 / 34
+liftoff func: 2:0xbd load from 0000000000000002 val: f32:68169720922112.000000 / 56780000
+liftoff func: 4:0xd2 store to 0000000000000004 val: i8:171 / ab
+liftoff func: 0:0xab load from 0000000000000002 val: i32:1454047232 / 56ab0000
+liftoff func: 2:0xbd load from 0000000000000002 val: f32:94008244174848.000000 / 56ab0000
+liftoff func: 6:0xe8 store to 0000000000000004 val: s128:48879 48879 48879 48879 / 0000beef 0000beef 0000beef 0000beef
+liftoff func: 5:0xda load from 0000000000000002 val: s128:-1091633152 -1091633152 -1091633152 -1091633152 / beef0000 beef0000 beef0000 beef0000
+liftoff func: 7:0xf1 load from 0000000000000004 val: i16:48879 / beef
+liftoff func: 8:0xfa load from 0000000000000002 val: i64:-4688528683866062848 / beef0000beef0000
+liftoff func: 9:0x103 load from 0000000000000002 val: f64:-0.000015 / beef0000beef0000
diff --git a/deps/v8/test/message/wasm-trace-memory.js b/deps/v8/test/message/wasm-trace-memory.js
index e1091ad4c7..b31dbb8e1f 100644
--- a/deps/v8/test/message/wasm-trace-memory.js
+++ b/deps/v8/test/message/wasm-trace-memory.js
@@ -4,7 +4,6 @@
// Flags: --no-stress-opt --trace-wasm-memory --no-liftoff
// Flags: --experimental-wasm-simd
-// Flags: --enable-sse3 --enable-sse4-1
load("test/mjsunit/wasm/wasm-module-builder.js");
diff --git a/deps/v8/test/message/wasm-trace-memory.out b/deps/v8/test/message/wasm-trace-memory.out
index 373ff8f78b..e3491fdb1c 100644
--- a/deps/v8/test/message/wasm-trace-memory.out
+++ b/deps/v8/test/message/wasm-trace-memory.out
@@ -1,14 +1,14 @@
-turbofan func: 0+0x3 load from 0000000000000004 val: i32:0 / 00000000
-turbofan func: 1+0x3 load from 0000000000000001 val: i8:0 / 00
-turbofan func: 3+0x5 store to 0000000000000004 val: i32:305419896 / 12345678
-turbofan func: 0+0x3 load from 0000000000000002 val: i32:1450704896 / 56780000
-turbofan func: 1+0x3 load from 0000000000000006 val: i8:52 / 34
-turbofan func: 2+0x3 load from 0000000000000002 val: f32:68169720922112.000000 / 56780000
-turbofan func: 4+0x5 store to 0000000000000004 val: i8:171 / ab
-turbofan func: 0+0x3 load from 0000000000000002 val: i32:1454047232 / 56ab0000
-turbofan func: 2+0x3 load from 0000000000000002 val: f32:94008244174848.000000 / 56ab0000
-turbofan func: 6+0x7 store to 0000000000000004 val: s128:48879 48879 48879 48879 / 0000beef 0000beef 0000beef 0000beef
-turbofan func: 5+0x3 load from 0000000000000002 val: s128:-1091633152 -1091633152 -1091633152 -1091633152 / beef0000 beef0000 beef0000 beef0000
-turbofan func: 7+0x3 load from 0000000000000004 val: i16:48879 / beef
-turbofan func: 8+0x3 load from 0000000000000002 val: i64:-4688528683866062848 / beef0000beef0000
-turbofan func: 9+0x3 load from 0000000000000002 val: f64:-0.000015 / beef0000beef0000
+turbofan func: 0:0xab load from 0000000000000004 val: i32:0 / 00000000
+turbofan func: 1:0xb4 load from 0000000000000001 val: i8:0 / 00
+turbofan func: 3:0xc8 store to 0000000000000004 val: i32:305419896 / 12345678
+turbofan func: 0:0xab load from 0000000000000002 val: i32:1450704896 / 56780000
+turbofan func: 1:0xb4 load from 0000000000000006 val: i8:52 / 34
+turbofan func: 2:0xbd load from 0000000000000002 val: f32:68169720922112.000000 / 56780000
+turbofan func: 4:0xd2 store to 0000000000000004 val: i8:171 / ab
+turbofan func: 0:0xab load from 0000000000000002 val: i32:1454047232 / 56ab0000
+turbofan func: 2:0xbd load from 0000000000000002 val: f32:94008244174848.000000 / 56ab0000
+turbofan func: 6:0xe8 store to 0000000000000004 val: s128:48879 48879 48879 48879 / 0000beef 0000beef 0000beef 0000beef
+turbofan func: 5:0xda load from 0000000000000002 val: s128:-1091633152 -1091633152 -1091633152 -1091633152 / beef0000 beef0000 beef0000 beef0000
+turbofan func: 7:0xf1 load from 0000000000000004 val: i16:48879 / beef
+turbofan func: 8:0xfa load from 0000000000000002 val: i64:-4688528683866062848 / beef0000beef0000
+turbofan func: 9:0x103 load from 0000000000000002 val: f64:-0.000015 / beef0000beef0000