[WebAssembly] I64 arguments / return value check should be moved from callWebAssemblyFunction to JSToWasm wrapper
Created attachment 352139 [details] Patch
The goal of this is eliminating callWebAssemblyFunction, making the current wrapper the same to JS JITCode entry, calling wasm code smoothly from the rest of the world.
Created attachment 352142 [details] Patch
Comment on attachment 352142 [details] Patch Attachment 352142 [details] did not pass mac-wk2-ews (mac-wk2): Output: https://webkit-queues.webkit.org/results/9548028 New failing tests: css3/filters/backdrop/add-remove-add-backdrop-filter.html
Created attachment 352149 [details] Archive of layout-test-results from ews107 for mac-sierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-sierra-wk2 Platform: Mac OS X 10.12.6
Comment on attachment 352142 [details] Patch Attachment 352142 [details] did not pass jsc-ews (mac): Output: https://webkit-queues.webkit.org/results/9548138 New failing tests: wasm.yaml/wasm/function-tests/i64-from-js-exceptions.js.wasm-no-cjit-yes-tls-context wasm.yaml/wasm/function-tests/function-import-return-value.js.wasm-no-cjit-yes-tls-context wasm.yaml/wasm/function-tests/i64-from-js-exceptions.js.wasm-no-call-ic wasm.yaml/wasm/function-tests/function-import-return-value.js.wasm-slow-memory wasm.yaml/wasm/function-tests/function-import-return-value.js.default-wasm wasm.yaml/wasm/function-tests/i64-from-js-exceptions.js.wasm-eager-jettison wasm.yaml/wasm/function-tests/function-import-return-value.js.wasm-no-tls-context wasm.yaml/wasm/function-tests/i64-from-js-exceptions.js.wasm-no-tls-context wasm.yaml/wasm/function-tests/function-import-return-value.js.wasm-no-call-ic wasm.yaml/wasm/function-tests/i64-from-js-exceptions.js.default-wasm wasm.yaml/wasm/function-tests/i64-from-js-exceptions.js.wasm-slow-memory wasm.yaml/wasm/function-tests/function-import-return-value.js.wasm-eager-jettison apiTests
Created attachment 352166 [details] Patch
Comment on attachment 352166 [details] Patch Attachment 352166 [details] did not pass jsc-ews (mac): Output: https://webkit-queues.webkit.org/results/9551414 New failing tests: wasm.yaml/wasm/function-tests/i64-from-js-exceptions.js.wasm-no-cjit-yes-tls-context wasm.yaml/wasm/function-tests/function-import-return-value.js.wasm-no-cjit-yes-tls-context wasm.yaml/wasm/function-tests/i64-from-js-exceptions.js.wasm-no-call-ic wasm.yaml/wasm/function-tests/function-import-return-value.js.wasm-slow-memory wasm.yaml/wasm/function-tests/function-import-return-value.js.default-wasm wasm.yaml/wasm/function-tests/i64-from-js-exceptions.js.wasm-eager-jettison wasm.yaml/wasm/function-tests/function-import-return-value.js.wasm-no-tls-context wasm.yaml/wasm/function-tests/i64-from-js-exceptions.js.wasm-no-tls-context wasm.yaml/wasm/function-tests/function-import-return-value.js.wasm-no-call-ic wasm.yaml/wasm/function-tests/i64-from-js-exceptions.js.default-wasm wasm.yaml/wasm/function-tests/i64-from-js-exceptions.js.wasm-slow-memory wasm.yaml/wasm/function-tests/function-import-return-value.js.wasm-eager-jettison apiTests
Created attachment 352171 [details] Patch
Created attachment 353594 [details] Patch
Created attachment 353600 [details] Patch
Ping?
Comment on attachment 353600 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=353600&action=review > Source/JavaScriptCore/wasm/js/WebAssemblyFunction.cpp:84 > + arg = JSValue::decode(0); Nit I think you can just do: arg = JSValue()
Comment on attachment 353600 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=353600&action=review >> Source/JavaScriptCore/wasm/js/WebAssemblyFunction.cpp:84 >> + arg = JSValue::decode(0); > > Nit I think you can just do: > > arg = JSValue() Nice, fixed.
Committed r238376: <https://trac.webkit.org/changeset/238376>
<rdar://problem/46169779>