WebAssembly: miscellaneous spec fixes part deux
authorjfbastien@apple.com <jfbastien@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Feb 2017 16:52:46 +0000 (16:52 +0000)
committerjfbastien@apple.com <jfbastien@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 27 Feb 2017 16:52:46 +0000 (16:52 +0000)
commit67b2c6ef4249c6b70c999d33b8fb1551160c9bfc
tree08f324b4381c91c84126ea9ed03b97fb88ba4f03
parent4ea26d1efeb2aceb5c0e738323dbc531977e56a8
WebAssembly: miscellaneous spec fixes part deux
https://bugs.webkit.org/show_bug.cgi?id=168861

Reviewed by Keith Miller.

JSTests:

* wasm.yaml: more passing tests
* wasm/Builder.js: use a Map instead of an Object for the function
index space, because Number entries such as 0 were colliding with
string entries such as "0". This in turn requires some hashing of
objects which are inserted, because Map uses Object's insertion
order when comparing.
(export.default.Builder):
(export.default.Builder.prototype._functionIndexSpaceKeyHash):
(export.default.Builder.prototype._registerFunctionToIndexSpace):
(export.default.Builder.prototype._getFunctionFromIndexSpace):
* wasm/js-api/test_Instance.js: add a FIXME test
* wasm/spec-tests/memory.wast.js:
(assert_unlinkable):
* wasm/spec-tests/names.wast.js:

Source/JavaScriptCore:

* wasm/WasmFunctionParser.h: add some FIXME

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213067 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JSTests/ChangeLog
JSTests/wasm.yaml
JSTests/wasm/Builder.js
JSTests/wasm/js-api/test_Instance.js
JSTests/wasm/spec-tests/memory.wast.js
JSTests/wasm/spec-tests/names.wast.js
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/wasm/WasmFunctionParser.h