Changeset 148653 in webkit


Ignore:
Timestamp:
Apr 17, 2013 6:08:49 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Fix SH4 build (broken since r148639).
https://bugs.webkit.org/show_bug.cgi?id=114773.

Allow longer displacements for specific branches in SH4 LLINT.

Patch by Julien Brianceau <jbrianceau@nds.com> on 2013-04-17
Reviewed by Oliver Hunt.

  • offlineasm/sh4.rb:
Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r148650 r148653  
     12013-04-17  Julien Brianceau  <jbrianceau@nds.com>
     2
     3        Fix SH4 build (broken since r148639).
     4        https://bugs.webkit.org/show_bug.cgi?id=114773.
     5
     6        Allow longer displacements for specific branches in SH4 LLINT.
     7
     8        Reviewed by Oliver Hunt.
     9
     10        * offlineasm/sh4.rb:
     11
    1122013-04-14  Roger Fong  <roger_fong@apple.com>
    213
  • trunk/Source/JavaScriptCore/offlineasm/sh4.rb

    r148474 r148653  
    458458
    459459def emitSH4BranchIfT(label, neg)
    460     sh4opcode = neg ? "bf" : "bt"
    461     $asm.puts "#{sh4opcode} #{label.asmLabel}"
     460    outlabel = LocalLabel.unique("branchIfT")
     461    sh4opcode = neg ? "bt" : "bf"
     462    $asm.puts "#{sh4opcode} #{LocalLabelReference.new(codeOrigin, outlabel).asmLabel}"
     463    if label.is_a? LocalLabelReference
     464        $asm.puts "bra #{label.asmLabel}"
     465        $asm.puts "nop"
     466    else
     467        $asm.puts ".balign 4"
     468        $asm.puts "mov.l @(8, PC), #{SH4_TMP_GPRS[0].sh4Operand}"
     469        $asm.puts "jmp @#{SH4_TMP_GPRS[0].sh4Operand}"
     470        $asm.puts "nop"
     471        $asm.puts "nop"
     472        $asm.puts ".long #{label.asmLabel}"
     473    end
     474    outlabel.lower("SH4")
    462475end
    463476
Note: See TracChangeset for help on using the changeset viewer.