Add more missing trivial wasm ops.
authorkeith_miller@apple.com <keith_miller@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Dec 2016 01:13:40 +0000 (01:13 +0000)
committerkeith_miller@apple.com <keith_miller@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Dec 2016 01:13:40 +0000 (01:13 +0000)
commit5b75ceb4989f679d20a0de93f7b8e6a280beb8b0
tree3b26336303038ca1ef67d3e8c453348824a049f6
parent8c97fa433faf07bc2c9bd62f3d26e65f53153858
Add more missing trivial wasm ops.
https://bugs.webkit.org/show_bug.cgi?id=165564

JSTests:

Add tests for drop and tee_local.

Reviewed by Geoffrey Garen.

* wasm/function-tests/drop.js: Added.
* wasm/function-tests/nop.js: Added.
* wasm/function-tests/tee-local.js: Added.

Source/JavaScriptCore:

Reviewed by Geoffrey Garen.

This patch adds the nop, drop, and tee_local opcodes.
It also fixes an issue where we were not generating
the proper enums for the grow_memory and current_memory
opcodes.

* wasm/WasmFunctionParser.h:
(JSC::Wasm::FunctionParser<Context>::parseExpression):
* wasm/generateWasmOpsHeader.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@209503 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JSTests/ChangeLog
JSTests/wasm/function-tests/drop.js [new file with mode: 0644]
JSTests/wasm/function-tests/nop.js [new file with mode: 0644]
JSTests/wasm/function-tests/tee-local.js [new file with mode: 0644]
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/wasm/WasmFunctionParser.h
Source/JavaScriptCore/wasm/generateWasmOpsHeader.py