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/dfg/DFGSpeculativeJIT.cpp

    r223715 r224243  
    10511051            stubInfo->callSiteIndex = m_jit.addCallSite(node->origin.semantic);
    10521052            stubInfo->codeOrigin = node->origin.semantic;
    1053             stubInfo->patch.baseGPR = static_cast<int8_t>(baseGPR);
    1054             stubInfo->patch.valueGPR = static_cast<int8_t>(resultGPR);
    1055             stubInfo->patch.thisGPR = static_cast<int8_t>(InvalidGPRReg);
     1053            stubInfo->patch.baseGPR = baseGPR;
     1054            stubInfo->patch.valueGPR = resultGPR;
     1055            stubInfo->patch.thisGPR = InvalidGPRReg;
    10561056#if USE(JSVALUE32_64)
    1057             stubInfo->patch.valueTagGPR = static_cast<int8_t>(InvalidGPRReg);
    1058             stubInfo->patch.baseTagGPR = static_cast<int8_t>(InvalidGPRReg);
    1059             stubInfo->patch.thisTagGPR = static_cast<int8_t>(InvalidGPRReg);
     1057            stubInfo->patch.valueTagGPR = InvalidGPRReg;
     1058            stubInfo->patch.baseTagGPR = InvalidGPRReg;
     1059            stubInfo->patch.thisTagGPR = InvalidGPRReg;
    10601060#endif
    10611061            stubInfo->patch.usedRegisters = usedRegisters();
Note: See TracChangeset for help on using the changeset viewer.