Ignore:
Timestamp:
Aug 11, 2014, 8:20:04 PM (11 years ago)
Author:
[email protected]
Message:

Eliminate {push,pop}CalleeSaves in favor of individual pushes & pops
https://bugs.webkit.org/show_bug.cgi?id=127155

Reviewed by Geoffrey Garen.

Eliminated the offline assembler instructions {push,pop}CalleeSaves as well as the
ARM64 specific {push,pop}LRAndFP and replaced them with individual push and pop
instructions. Where the registers referenced by the added push and pop instructions
are not part of the offline assembler register aliases, used a newly added "emit"
offline assembler instruction which takes a string literal and outputs that
string as a native instruction.

  • llint/LowLevelInterpreter.asm:
  • offlineasm/arm.rb:
  • offlineasm/arm64.rb:
  • offlineasm/ast.rb:
  • offlineasm/cloop.rb:
  • offlineasm/instructions.rb:
  • offlineasm/mips.rb:
  • offlineasm/parser.rb:
  • offlineasm/sh4.rb:
  • offlineasm/transform.rb:
  • offlineasm/x86.rb:
File:
1 edited

Legend:

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

    r167566 r172429  
    467467                $asm.puts "push { #{op.armOperand} }"
    468468            }
    469         when "popCalleeSaves"
    470             if isARMv7
    471                 $asm.puts "pop {r4-r6, r8-r11}"               
    472             else
    473                 $asm.puts "pop {r4-r10}"
    474             end
    475         when "pushCalleeSaves"
    476             if isARMv7
    477                 $asm.puts "push {r4-r6, r8-r11}"
    478             else
    479                 $asm.puts "push {r4-r10}"
    480             end
    481469        when "move"
    482470            if operands[0].immediate?
Note: See TracChangeset for help on using the changeset viewer.