Changeset 209966 in webkit


Ignore:
Timestamp:
Dec 17, 2016 10:44:17 AM (7 years ago)
Author:
sbarati@apple.com
Message:

WebAssembly: WasmB3IRGenerator uses WarmAny as a ValueRep but expects the incoming value to be a register
https://bugs.webkit.org/show_bug.cgi?id=165989

Reviewed by Mark Lam.

The input should be constrained to a register to match what
the patchpoint code expects.

  • wasm/WasmB3IRGenerator.cpp:
Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r209963 r209966  
     12016-12-17  Saam Barati  <sbarati@apple.com>
     2
     3        WebAssembly: WasmB3IRGenerator uses WarmAny as a ValueRep but expects the incoming value to be a register
     4        https://bugs.webkit.org/show_bug.cgi?id=165989
     5
     6        Reviewed by Mark Lam.
     7
     8        The input should be constrained to a register to match what
     9        the patchpoint code expects.
     10
     11        * wasm/WasmB3IRGenerator.cpp:
     12
    1132016-12-17  Saam Barati  <sbarati@apple.com>
    214
  • trunk/Source/JavaScriptCore/wasm/WasmB3IRGenerator.cpp

    r209928 r209966  
    989989    if (isX86())
    990990        patchpoint->numGPScratchRegisters = 1;
    991     patchpoint->append(ConstrainedValue(arg, ValueRep::WarmAny));
     991    patchpoint->append(ConstrainedValue(arg, ValueRep::SomeRegister));
    992992    patchpoint->setGenerator([=] (CCallHelpers& jit, const StackmapGenerationParams& params) {
    993993        AllowMacroScratchRegisterUsage allowScratch(jit);
     
    10091009    if (isX86())
    10101010        patchpoint->numGPScratchRegisters = 1;
    1011     patchpoint->append(ConstrainedValue(arg, ValueRep::WarmAny));
     1011    patchpoint->append(ConstrainedValue(arg, ValueRep::SomeRegister));
    10121012    patchpoint->setGenerator([=] (CCallHelpers& jit, const StackmapGenerationParams& params) {
    10131013        AllowMacroScratchRegisterUsage allowScratch(jit);
Note: See TracChangeset for help on using the changeset viewer.