Ignore:
Timestamp:
Sep 11, 2015, 11:40:53 AM (10 years ago)
Author:
[email protected]
Message:

Add initial support for floats in WebAsssembly
https://bugs.webkit.org/show_bug.cgi?id=149062

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

Implement the ConstantPoolIndex, Immediate, GetLocal, and GetGlobal
instructions for floats (float32) in WebAssembly.

  • tests/stress/wasm-arithmetic-float32.js: Added.

(shouldBe):

  • tests/stress/wasm-globals.js:
  • tests/stress/wasm-type-conversion.js:
  • tests/stress/wasm/arithmetic-float32.wasm: Added.
  • tests/stress/wasm/globals.wasm:
  • tests/stress/wasm/type-conversion.wasm:
  • wasm/WASMConstants.h:
  • wasm/WASMFunctionCompiler.h:

(JSC::WASMFunctionCompiler::buildSetLocal):
(JSC::WASMFunctionCompiler::buildReturn):
(JSC::WASMFunctionCompiler::buildImmediateF32):
(JSC::WASMFunctionCompiler::buildGetLocal):

  • wasm/WASMFunctionParser.cpp:

(JSC::WASMFunctionParser::parseExpression):
(JSC::WASMFunctionParser::parseExpressionF32):
(JSC::WASMFunctionParser::parseConstantPoolIndexExpressionF32):
(JSC::WASMFunctionParser::parseImmediateExpressionF32):
(JSC::WASMFunctionParser::parseGetLocalExpressionF32):
(JSC::WASMFunctionParser::parseGetGlobalExpressionF32):

  • wasm/WASMFunctionParser.h:
  • wasm/WASMFunctionSyntaxChecker.h:

(JSC::WASMFunctionSyntaxChecker::buildImmediateF32):

  • wasm/WASMReader.cpp:

(JSC::WASMReader::readOpExpressionF32):

  • wasm/WASMReader.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r189623 r189624  
     12015-09-11  Sukolsak Sakshuwong  <[email protected]>
     2
     3        Add initial support for floats in WebAsssembly
     4        https://bugs.webkit.org/show_bug.cgi?id=149062
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        Implement the ConstantPoolIndex, Immediate, GetLocal, and GetGlobal
     9        instructions for floats (float32) in WebAssembly.
     10
     11        * tests/stress/wasm-arithmetic-float32.js: Added.
     12        (shouldBe):
     13        * tests/stress/wasm-globals.js:
     14        * tests/stress/wasm-type-conversion.js:
     15        * tests/stress/wasm/arithmetic-float32.wasm: Added.
     16        * tests/stress/wasm/globals.wasm:
     17        * tests/stress/wasm/type-conversion.wasm:
     18        * wasm/WASMConstants.h:
     19        * wasm/WASMFunctionCompiler.h:
     20        (JSC::WASMFunctionCompiler::buildSetLocal):
     21        (JSC::WASMFunctionCompiler::buildReturn):
     22        (JSC::WASMFunctionCompiler::buildImmediateF32):
     23        (JSC::WASMFunctionCompiler::buildGetLocal):
     24        * wasm/WASMFunctionParser.cpp:
     25        (JSC::WASMFunctionParser::parseExpression):
     26        (JSC::WASMFunctionParser::parseExpressionF32):
     27        (JSC::WASMFunctionParser::parseConstantPoolIndexExpressionF32):
     28        (JSC::WASMFunctionParser::parseImmediateExpressionF32):
     29        (JSC::WASMFunctionParser::parseGetLocalExpressionF32):
     30        (JSC::WASMFunctionParser::parseGetGlobalExpressionF32):
     31        * wasm/WASMFunctionParser.h:
     32        * wasm/WASMFunctionSyntaxChecker.h:
     33        (JSC::WASMFunctionSyntaxChecker::buildImmediateF32):
     34        * wasm/WASMReader.cpp:
     35        (JSC::WASMReader::readOpExpressionF32):
     36        * wasm/WASMReader.h:
     37
    1382015-09-11  Geoffrey Garen  <[email protected]>
    239
Note: See TracChangeset for help on using the changeset viewer.