Ignore:
Timestamp:
Jan 10, 2019, 12:04:32 PM (6 years ago)
Author:
[email protected]
Message:

Unreviewed, rolling out r239825.
https://bugs.webkit.org/show_bug.cgi?id=193330

Broke tests on armv7/linux bots (Requested by guijemont on
#webkit).

Reverted changeset:

"Enable DFG on ARM/Linux again"
https://bugs.webkit.org/show_bug.cgi?id=192496
https://trac.webkit.org/changeset/239825

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/offlineasm/arm.rb

    r239825 r239838  
    3535#  x3 => t3, a3, r3
    3636#  x6 =>            (callee-save scratch)
    37 #  x7 => cfr
     37#  x7 => cfr        (ARMv7 only)
    3838#  x8 => t4         (callee-save)
    3939#  x9 => t5         (callee-save)
     
    5656# d7 =>              (scratch)
    5757
     58def isARMv7
     59    case $activeBackend
     60    when "ARMv7"
     61        true
     62    else
     63        raise "bad value for $activeBackend: #{$activeBackend}"
     64    end
     65end
     66
    5867class Node
    5968    def armSingle
     
    8392    elsif (~value) >= 0 && (~value) < 256
    8493        $asm.puts "mvn #{register.armOperand}, \##{~value}"
    85     else
     94    elsif isARMv7
    8695        $asm.puts "movw #{register.armOperand}, \##{value & 0xffff}"
    8796        if (value & 0xffff0000) != 0
    8897            $asm.puts "movt #{register.armOperand}, \##{(value >> 16) & 0xffff}"
    8998        end
     99    else
     100        $asm.puts "ldr #{register.armOperand}, =#{value}"
    90101    end
    91102end
     
    109120            "r9"
    110121        when "cfr"
    111             "r7"
     122            isARMv7 ?  "r7" : "r11"
    112123        when "csr0"
    113124            "r11"
     
    599610                $asm.puts "mov pc, #{operands[0].armOperand}"
    600611            end
     612            if not isARMv7 and not isARMv7Traditional
     613                $asm.puts ".ltorg"
     614            end
    601615        when "call"
    602616            if operands[0].label?
     
    679693            $asm.puts "ldr #{dest.armOperand}, [#{dest.armOperand}, #{temp.armOperand}]"
    680694
    681             offset = 4
     695            offset = $activeBackend == "ARMv7" ? 4 : 8
    682696
    683697            $asm.deferNextLabelAction {
Note: See TracChangeset for help on using the changeset viewer.