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/sh4.rb

    r167269 r172429  
    10921092                $asm.puts "mov.l #{sh4Operands(operands)}, @-r15"
    10931093            end
    1094         when "popCalleeSaves"
    1095             $asm.puts "mov.l @r15+, r8"
    1096             $asm.puts "mov.l @r15+, r9"
    1097             $asm.puts "mov.l @r15+, r10"
    1098             $asm.puts "mov.l @r15+, r11"
    1099             $asm.puts "mov.l @r15+, r13"
    1100         when "pushCalleeSaves"
    1101             $asm.puts "mov.l r13, @-r15"
    1102             $asm.puts "mov.l r11, @-r15"
    1103             $asm.puts "mov.l r10, @-r15"
    1104             $asm.puts "mov.l r9, @-r15"
    1105             $asm.puts "mov.l r8, @-r15"
    11061094        when "break"
    11071095            # This special opcode always generates an illegal instruction exception.
Note: See TracChangeset for help on using the changeset viewer.