Ignore:
Timestamp:
Oct 31, 2017, 1:29:55 PM (8 years ago)
Author:
[email protected]
Message:

StructureStubInfo should have GPRReg members not int8_ts
https://bugs.webkit.org/show_bug.cgi?id=179071

Reviewed by Michael Saboff.

This patch makes the various RegisterID enums be backed by
uint8_t. This means that we can remove the old int8_t members in
StructureStubInfo and replace them with the correct enum types.

Also, this fixes an indentation issue in ARMv7Assembler.h.

  • assembler/ARM64Assembler.h:
  • assembler/ARMAssembler.h:
  • assembler/ARMv7Assembler.h:

(JSC::ARMRegisters::asSingle):
(JSC::ARMRegisters::asDouble):

  • assembler/MIPSAssembler.h:
  • assembler/X86Assembler.h:
  • bytecode/InlineAccess.cpp:

(JSC::InlineAccess::generateSelfPropertyAccess):
(JSC::getScratchRegister):

  • bytecode/PolymorphicAccess.cpp:

(JSC::PolymorphicAccess::regenerate):

  • bytecode/StructureStubInfo.h:

(JSC::StructureStubInfo::valueRegs const):

  • dfg/DFGSpeculativeJIT.cpp:

(JSC::DFG::SpeculativeJIT::compileIn):

  • ftl/FTLLowerDFGToB3.cpp:

(JSC::FTL::DFG::LowerDFGToB3::compileIn):

  • jit/JITInlineCacheGenerator.cpp:

(JSC::JITByIdGenerator::JITByIdGenerator):
(JSC::JITGetByIdWithThisGenerator::JITGetByIdWithThisGenerator):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/bytecode/StructureStubInfo.h

    r218794 r224243  
    175175        int32_t deltaFromStartToSlowPathStart;
    176176
    177         int8_t baseGPR;
    178         int8_t valueGPR;
    179         int8_t thisGPR;
     177        GPRReg baseGPR;
     178        GPRReg valueGPR;
     179        GPRReg thisGPR;
    180180#if USE(JSVALUE32_64)
    181         int8_t valueTagGPR;
    182         int8_t baseTagGPR;
    183         int8_t thisTagGPR;
     181        GPRReg valueTagGPR;
     182        GPRReg baseTagGPR;
     183        GPRReg thisTagGPR;
    184184#endif
    185185    } patch;
     
    198198        return JSValueRegs(
    199199#if USE(JSVALUE32_64)
    200             static_cast<GPRReg>(patch.valueTagGPR),
     200            patch.valueTagGPR,
    201201#endif
    202             static_cast<GPRReg>(patch.valueGPR));
     202            patch.valueGPR);
    203203    }
    204204
Note: See TracChangeset for help on using the changeset viewer.