Ignore:
Timestamp:
Nov 17, 2020, 3:49:01 PM (5 years ago)
Author:
[email protected]
Message:

Add support for the Wasm i32 sign-extension-ops proposal
https://bugs.webkit.org/show_bug.cgi?id=210302

Patch by Sergey Rubanov <Sergey Rubanov> on 2020-11-17
Reviewed by Yusuke Suzuki.

JSTests:

  • wasm/spec-tests/i32.wast.js:
  • wasm/spec-tests/i64.wast.js:
  • wasm/wasm.json:

Source/JavaScriptCore:

  • llint/LowLevelInterpreter.asm:
  • llint/WebAssembly.asm:
  • offlineasm/arm64.rb:
  • offlineasm/cloop.rb:
  • offlineasm/instructions.rb:
  • offlineasm/x86.rb:
  • wasm/WasmAirIRGenerator.cpp:

(JSC::Wasm::AirIRGenerator::addOp<OpType::I32Extend8S>):
(JSC::Wasm::AirIRGenerator::addOp<OpType::I32Extend16S>):

  • wasm/wasm.json:

LayoutTests:

  • workers/wasm-references/test.js:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/offlineasm/cloop.rb

    r267371 r269929  
    743743        when "zxi2q"
    744744            $asm.putc "#{operands[1].clLValue(:uint64)} = #{operands[0].clValue(:uint32)};"
     745        when "sxb2i"
     746            $asm.putc "#{operands[1].clLValue(:int32)} = #{operands[0].clValue(:int8)};"
     747        when "sxh2i"
     748            $asm.putc "#{operands[1].clLValue(:int32)} = #{operands[0].clValue(:int16)};"
    745749        when "nop"
    746750            $asm.putc "// nop"
Note: See TracChangeset for help on using the changeset viewer.