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/InlineAccess.cpp

    r220441 r224243  
    162162    CCallHelpers jit;
    163163   
    164     GPRReg base = static_cast<GPRReg>(stubInfo.patch.baseGPR);
     164    GPRReg base = stubInfo.patch.baseGPR;
    165165    JSValueRegs value = stubInfo.valueRegs();
    166166
     
    190190{
    191191    ScratchRegisterAllocator allocator(stubInfo.patch.usedRegisters);
    192     allocator.lock(static_cast<GPRReg>(stubInfo.patch.baseGPR));
    193     allocator.lock(static_cast<GPRReg>(stubInfo.patch.valueGPR));
     192    allocator.lock(stubInfo.patch.baseGPR);
     193    allocator.lock(stubInfo.patch.valueGPR);
    194194#if USE(JSVALUE32_64)
    195     allocator.lock(static_cast<GPRReg>(stubInfo.patch.baseTagGPR));
    196     allocator.lock(static_cast<GPRReg>(stubInfo.patch.valueTagGPR));
     195    allocator.lock(stubInfo.patch.baseTagGPR);
     196    allocator.lock(stubInfo.patch.valueTagGPR);
    197197#endif
    198198    GPRReg scratch = allocator.allocateScratchGPR();
Note: See TracChangeset for help on using the changeset viewer.