Ignore:
Timestamp:
Sep 10, 2014, 1:14:11 PM (11 years ago)
Author:
Julien Brianceau
Message:

[mips] Add missing parts and fix LLINT mips backend
https://bugs.webkit.org/show_bug.cgi?id=136706

Reviewed by Michael Saboff.

  • llint/LowLevelInterpreter.asm: Fix invalid CalleeSave register number.

Implement initPCRelative and setEntryAddress macros.

  • llint/LowLevelInterpreter32_64.asm: Fix register distribution in

doVMEntry macro.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/llint/LowLevelInterpreter.asm

    r172978 r173480  
    254254elsif ARM or ARMv7_TRADITIONAL or ARMv7
    255255    const CalleeSaveRegisterCount = 7
    256 elsif ARM64 or MIPS
     256elsif ARM64
    257257    const CalleeSaveRegisterCount = 10
    258 elsif SH4 or X86_64
     258elsif SH4 or X86_64 or MIPS
    259259    const CalleeSaveRegisterCount = 5
    260260elsif X86 or X86_WIN
     
    790790            subp 8, pcBase
    791791        elsif MIPS
    792             crash()  # Need to replace with any initialization steps needed to step up PC relative address calculation
     792            la _relativePCBase, pcBase
     793        _relativePCBase:
    793794        elsif SH4
    794795            mova _relativePCBase, t0
     
    828829        flushcp # Force constant pool flush to avoid "pcrel too far" link error.
    829830    elsif MIPS
    830         crash()  # Need to replace with code to turn label into and absolute address and save at index
     831        la label, t2
     832        la _relativePCBase, t3
     833        subp t3, t2
     834        addp t2, t1, t2
     835        move index, t3
     836        storep t2, [a0, t3, 4]
    831837    end
    832838end
Note: See TracChangeset for help on using the changeset viewer.