Ignore:
Timestamp:
Feb 18, 2014, 5:07:29 PM (11 years ago)
Author:
[email protected]
Message:

FTL should build on ARM64
https://bugs.webkit.org/show_bug.cgi?id=129010

Reviewed by Sam Weinig.

  • disassembler/X86Disassembler.cpp: Just because we have the LLVM disassembler doesn't mean we're on X86.
  • ftl/FTLLocation.cpp: DWARF parsing for ARM64 is super easy.

(JSC::FTL::Location::isGPR):
(JSC::FTL::Location::gpr):
(JSC::FTL::Location::isFPR):
(JSC::FTL::Location::fpr):
(JSC::FTL::Location::restoreInto): This function wasn't even X86-specific to begin with so move it out of the #if stuff.

  • ftl/FTLUnwindInfo.cpp: They're called q not d.

(JSC::FTL::UnwindInfo::parse):

  • jit/GPRInfo.h:

(JSC::GPRInfo::toArgumentRegister): Add this method; we alraedy had it on X86.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/jit/GPRInfo.h

    r164269 r164333  
    534534    typedef GPRReg RegisterType;
    535535    static const unsigned numberOfRegisters = 16;
     536    static const unsigned numberOfArgumentRegisters = 8;
    536537
    537538    // Note: regT3 is required to be callee-preserved.
     
    604605    }
    605606
     607    static GPRReg toArgumentRegister(unsigned index)
     608    {
     609        ASSERT(index < numberOfArgumentRegisters);
     610        return toRegister(index);
     611    }
     612
    606613    static const char* debugName(GPRReg reg)
    607614    {
Note: See TracChangeset for help on using the changeset viewer.