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/ftl/FTLLowerDFGToB3.cpp

    r223919 r224243  
    88658865                            state->jitCode->common.addCodeOrigin(node->origin.semantic);
    88668866                        stubInfo->codeOrigin = node->origin.semantic;
    8867                         stubInfo->patch.baseGPR = static_cast<int8_t>(baseGPR);
    8868                         stubInfo->patch.valueGPR = static_cast<int8_t>(resultGPR);
    8869                         stubInfo->patch.thisGPR = static_cast<int8_t>(InvalidGPRReg);
     8867                        stubInfo->patch.baseGPR = baseGPR;
     8868                        stubInfo->patch.valueGPR = resultGPR;
     8869                        stubInfo->patch.thisGPR = InvalidGPRReg;
    88708870                        stubInfo->patch.usedRegisters = params.unavailableRegisters();
    88718871
Note: See TracChangeset for help on using the changeset viewer.