Diff
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/constructor-reftypes.tentative.any-expected.txt (272073 => 272074)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/constructor-reftypes.tentative.any-expected.txt 2021-01-29 20:19:59 UTC (rev 272073)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/constructor-reftypes.tentative.any-expected.txt 2021-01-29 20:59:35 UTC (rev 272074)
@@ -1,8 +1,6 @@
-FAIL initialize externref table with default value assert_equals: expected object "[object Object]" but got null
+PASS initialize externref table with default value
PASS initialize table with a wrong element value
-FAIL initialize anyfunc table with default value assert_equals: expected (function) function "function 0() {
- [native code]
-}" but got (object) null
-FAIL initialize anyfunc table with a bad default value assert_throws_js: function "() => new WebAssembly.Table(argument, {})" did not throw
+PASS initialize anyfunc table with default value
+PASS initialize anyfunc table with a bad default value
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/constructor.any-expected.txt (272073 => 272074)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/constructor.any-expected.txt 2021-01-29 20:19:59 UTC (rev 272073)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/constructor.any-expected.txt 2021-01-29 20:59:35 UTC (rev 272074)
@@ -22,7 +22,7 @@
PASS Initial value exceeds maximum
PASS Basic (zero)
PASS Basic (non-zero)
-PASS Stray argument
+FAIL Stray argument WebAssembly.Table.prototype.constructor expects the second argument to be null or an instance of WebAssembly.Function
PASS Proxy descriptor
PASS Type conversion for descriptor.element
PASS Order of evaluation for descriptor
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/constructor.any.worker-expected.txt (272073 => 272074)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/constructor.any.worker-expected.txt 2021-01-29 20:19:59 UTC (rev 272073)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/constructor.any.worker-expected.txt 2021-01-29 20:59:35 UTC (rev 272074)
@@ -22,7 +22,7 @@
PASS Initial value exceeds maximum
PASS Basic (zero)
PASS Basic (non-zero)
-PASS Stray argument
+FAIL Stray argument WebAssembly.Table.prototype.constructor expects the second argument to be null or an instance of WebAssembly.Function
PASS Proxy descriptor
PASS Type conversion for descriptor.element
PASS Order of evaluation for descriptor
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/get-set.any-expected.txt (272073 => 272074)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/get-set.any-expected.txt 2021-01-29 20:19:59 UTC (rev 272073)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/get-set.any-expected.txt 2021-01-29 20:59:35 UTC (rev 272074)
@@ -1,7 +1,7 @@
PASS Missing arguments: get
PASS Branding: get
-PASS Missing arguments: set
+FAIL Missing arguments: set assert_throws_js: function "() => table.set(0)" did not throw
PASS Branding: set
PASS Basic
PASS Growing
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/get-set.any.worker-expected.txt (272073 => 272074)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/get-set.any.worker-expected.txt 2021-01-29 20:19:59 UTC (rev 272073)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/get-set.any.worker-expected.txt 2021-01-29 20:59:35 UTC (rev 272074)
@@ -1,7 +1,7 @@
PASS Missing arguments: get
PASS Branding: get
-PASS Missing arguments: set
+FAIL Missing arguments: set assert_throws_js: function "() => table.set(0)" did not throw
PASS Branding: set
PASS Basic
PASS Growing
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/grow-reftypes.tentative.any-expected.txt (272073 => 272074)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/grow-reftypes.tentative.any-expected.txt 2021-01-29 20:19:59 UTC (rev 272073)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/grow-reftypes.tentative.any-expected.txt 2021-01-29 20:59:35 UTC (rev 272074)
@@ -1,7 +1,5 @@
-FAIL Grow with exported-function argument assert_equals: expected (function) function "function 0() {
- [native code]
-}" but got (object) null
-FAIL Grow with non-function argument assert_throws_js: function "() => table.grow(2, {})" did not throw
-FAIL Grow with JS-function argument assert_throws_js: function "() => table.grow(2, () => true)" did not throw
+PASS Grow with exported-function argument
+PASS Grow with non-function argument
+PASS Grow with JS-function argument
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/set-reftypes.tentative.any-expected.txt (272073 => 272074)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/set-reftypes.tentative.any-expected.txt 2021-01-29 20:19:59 UTC (rev 272073)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/wasm/jsapi/table/set-reftypes.tentative.any-expected.txt 2021-01-29 20:59:35 UTC (rev 272074)
@@ -1,6 +1,4 @@
-FAIL Arguments for anyfunc table set assert_equals: expected (function) function "function 0() {
- [native code]
-}" but got (object) null
-FAIL Arguments for externref table set assert_equals: expected object "[object Object]" but got null
+PASS Arguments for anyfunc table set
+PASS Arguments for externref table set
Modified: trunk/Source/_javascript_Core/ChangeLog (272073 => 272074)
--- trunk/Source/_javascript_Core/ChangeLog 2021-01-29 20:19:59 UTC (rev 272073)
+++ trunk/Source/_javascript_Core/ChangeLog 2021-01-29 20:59:35 UTC (rev 272074)
@@ -1,5 +1,16 @@
2021-01-29 Dmitry Bezhetskov <[email protected]>
+ [WASM-References] Enable reference types by default
+ https://bugs.webkit.org/show_bug.cgi?id=220890
+
+ Reviewed by Yusuke Suzuki.
+
+ Enable wasm reference types by default.
+
+ * runtime/OptionsList.h:
+
+2021-01-29 Dmitry Bezhetskov <[email protected]>
+
[JSC] WebAssembly.Global should support Funcref and Externref
https://bugs.webkit.org/show_bug.cgi?id=220914
Modified: trunk/Source/_javascript_Core/runtime/OptionsList.h (272073 => 272074)
--- trunk/Source/_javascript_Core/runtime/OptionsList.h 2021-01-29 20:19:59 UTC (rev 272073)
+++ trunk/Source/_javascript_Core/runtime/OptionsList.h 2021-01-29 20:59:35 UTC (rev 272074)
@@ -483,7 +483,7 @@
v(Size, webAssemblyBBQAirModeThreshold, isIOS() ? (10 * MB) : 0, Normal, "If 0, we always use BBQ Air. If Wasm module code size hits this threshold, we compile Wasm module with B3 BBQ mode.") \
v(Bool, useWebAssemblyStreaming, true, Normal, "Allow to run WebAssembly's Streaming API") \
v(Bool, useEagerWebAssemblyModuleHashing, false, Normal, "Unnamed WebAssembly modules are identified in backtraces through their hash, if available.") \
- v(Bool, useWebAssemblyReferences, false, Normal, "Allow types from the wasm references spec.") \
+ v(Bool, useWebAssemblyReferences, true, Normal, "Allow types from the wasm references spec.") \
v(Bool, useWebAssemblyMultiValues, true, Normal, "Allow types from the wasm mulit-values spec.") \
v(Bool, useWebAssemblyThreading, true, Normal, "Allow instructions from the wasm threading spec.") \
v(Bool, useWeakRefs, true, Normal, "Expose the WeakRef constructor.") \
Modified: trunk/Tools/ChangeLog (272073 => 272074)
--- trunk/Tools/ChangeLog 2021-01-29 20:19:59 UTC (rev 272073)
+++ trunk/Tools/ChangeLog 2021-01-29 20:59:35 UTC (rev 272074)
@@ -1,3 +1,14 @@
+2021-01-29 Dmitry Bezhetskov <[email protected]>
+
+ [WASM-References] Enable reference types by default
+ https://bugs.webkit.org/show_bug.cgi?id=220890
+
+ Reviewed by Yusuke Suzuki.
+
+ Enable wasm reference types by default.
+
+ * Scripts/run-jsc-stress-tests:
+
2021-01-29 Andres Gonzalez <[email protected]>
Support for aria-current state changed notifications.
Modified: trunk/Tools/Scripts/run-jsc-stress-tests (272073 => 272074)
--- trunk/Tools/Scripts/run-jsc-stress-tests 2021-01-29 20:19:59 UTC (rev 272073)
+++ trunk/Tools/Scripts/run-jsc-stress-tests 2021-01-29 20:59:35 UTC (rev 272074)
@@ -1297,7 +1297,7 @@
end
def runWebAssemblySpecTest(mode)
- runWebAssemblySpecTestBase(mode, "spec-harness")
+ runWebAssemblySpecTestBase(mode, "spec-harness", "--useWebAssemblyReferences=false")
end
def runWebAssemblyReferenceSpecTest(mode)