Ignore:
Timestamp:
Oct 26, 2018, 4:34:01 PM (7 years ago)
Author:
[email protected]
Message:

Unreviewed, rolling out r237479 and r237484.
https://bugs.webkit.org/show_bug.cgi?id=190978

broke JSC on iOS (Requested by tadeuzagallo on #webkit).

Reverted changesets:

"New bytecode format for JSC"
https://bugs.webkit.org/show_bug.cgi?id=187373
https://trac.webkit.org/changeset/237479

"Gardening: Build fix after r237479."
https://bugs.webkit.org/show_bug.cgi?id=187373
https://trac.webkit.org/changeset/237484

File:
1 edited

Legend:

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

    r237479 r237486  
    284284                isWin ? "r10" : "r8"
    285285            when "t5"
    286                 isWin ? "ecx" : "r10"
     286                raise "cannot use register #{name} on X86-64 Windows" unless not isWin
     287                "r10"
    287288            when "csr0"
    288289                "ebx"
     
    465466        # FIXME: Implement this on platforms that aren't Mach-O.
    466467        # https://bugs.webkit.org/show_bug.cgi?id=175104
    467         used
    468         if !isIntelSyntax
    469             $asm.puts "movq #{asmLabel}@GOTPCREL(%rip), #{dst.x86Operand(:ptr)}"
    470         else
    471             $asm.puts "lea #{dst.x86Operand(:ptr)}, #{asmLabel}"
    472         end
     468        $asm.puts "movq #{asmLabel}@GOTPCREL(%rip), #{dst.x86Operand(:ptr)}"
    473469        "#{offset}(#{dst.x86Operand(kind)})"
    474470    end
     
    589585    def emitX86Lea(src, dst, kind)
    590586        if src.is_a? LabelReference
    591             src.used
    592             if !isIntelSyntax
    593                 $asm.puts "movq #{src.asmLabel}@GOTPCREL(%rip), #{dst.x86Operand(:ptr)}"
    594             else
    595                 $asm.puts "lea #{dst.x86Operand(:ptr)}, #{src.asmLabel}"
    596             end
     587            $asm.puts "movq #{src.asmLabel}@GOTPCREL(%rip), #{dst.x86Operand(:ptr)}"
    597588        else
    598589            $asm.puts "lea#{x86Suffix(kind)} #{orderOperands(src.x86AddressOperand(kind), dst.x86Operand(kind))}"
     
    957948        when "xorq"
    958949            handleX86Op("xor#{x86Suffix(:quad)}", :quad)
    959         when "leap"
    960             emitX86Lea(operands[0], operands[1], :ptr)
    961950        when "loadi"
    962951            $asm.puts "mov#{x86Suffix(:int)} #{x86LoadOperands(:int, :int)}"
     
    992981            else
    993982                $asm.puts "movsx #{x86LoadOperands(:byte, :int)}"
    994             end
    995         when "loadbsp"
    996             if !isIntelSyntax
    997                 $asm.puts "movsb#{x86Suffix(:ptr)} #{x86LoadOperands(:byte, :ptr)}"
    998             else
    999                 $asm.puts "movsx #{x86LoadOperands(:byte, :ptr)}"
    1000983            end
    1001984        when "loadh"
Note: See TracChangeset for help on using the changeset viewer.