Ignore:
Timestamp:
Sep 10, 2015, 6:37:09 PM (10 years ago)
Author:
[email protected]
Message:

Implement switch statements in WebAssembly
https://bugs.webkit.org/show_bug.cgi?id=149051

Patch by Sukolsak Sakshuwong <Sukolsak Sakshuwong> on 2015-09-10
Reviewed by Geoffrey Garen.

This patch implements switch statements in WebAssembly using the
JSC::BinarySwitch class.

  • tests/stress/wasm-control-flow.js:
  • tests/stress/wasm/control-flow.wasm:
  • wasm/WASMFunctionCompiler.h:

(JSC::WASMFunctionCompiler::buildSwitch):

  • wasm/WASMFunctionParser.cpp:

(JSC::WASMFunctionParser::parseSwitchStatement):

  • wasm/WASMFunctionSyntaxChecker.h:

(JSC::WASMFunctionSyntaxChecker::buildSwitch):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r189596 r189599  
     12015-09-10  Sukolsak Sakshuwong  <[email protected]>
     2
     3        Implement switch statements in WebAssembly
     4        https://bugs.webkit.org/show_bug.cgi?id=149051
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        This patch implements switch statements in WebAssembly using the
     9        JSC::BinarySwitch class.
     10
     11        * tests/stress/wasm-control-flow.js:
     12        * tests/stress/wasm/control-flow.wasm:
     13        * wasm/WASMFunctionCompiler.h:
     14        (JSC::WASMFunctionCompiler::buildSwitch):
     15        * wasm/WASMFunctionParser.cpp:
     16        (JSC::WASMFunctionParser::parseSwitchStatement):
     17        * wasm/WASMFunctionSyntaxChecker.h:
     18        (JSC::WASMFunctionSyntaxChecker::buildSwitch):
     19
    1202015-09-10  Filip Pizlo  <[email protected]>
    221
Note: See TracChangeset for help on using the changeset viewer.