Ignore:
Timestamp:
Nov 13, 2013, 11:39:30 PM (12 years ago)
Author:
[email protected]
Message:

Change callToJavaScript thunk into an offline assembled stub
https://bugs.webkit.org/show_bug.cgi?id=124251

Reviewed by Geoffrey Garen.

Changed callToJavaScript and throwNotCaught into stubs generated by the offline assembler.
Added popCalleeSaves and pushCalleeSaves pseudo ops to the offline assembler to handle
the saving and restoring of callee save registers. Fixed callFrameRegister differences
between arm traditional (r11) and arm Thumb2 (r7) in GPRInfo.h. Also fixed implementation
of pop & push in arm.rb.

Since the offline assembler and therefore the LLInt don't work on Windows, the Windows stubs
are handled as inline assembly in JITStubsX86.h and JITStubsMSVC64.asm.

  • dfg/DFGDriver.cpp:

(JSC::DFG::compileImpl):

  • jit/GPRInfo.h:

(JSC::GPRInfo::toIndex):
(JSC::GPRInfo::debugName):

  • jit/JITCode.cpp:

(JSC::JITCode::execute):

  • jit/JITExceptions.cpp:

(JSC::genericUnwind):

  • jit/JITStubs.h:
  • jit/JITStubsMSVC64.asm:
  • jit/JITStubsX86.h:
  • jit/ThunkGenerators.cpp:
  • jit/ThunkGenerators.h:
  • llint/LLIntThunks.h:
  • llint/LowLevelInterpreter.asm:
  • llint/LowLevelInterpreter32_64.asm:
  • llint/LowLevelInterpreter64.asm:
  • offlineasm/arm.rb:
  • offlineasm/arm64.rb:
  • offlineasm/instructions.rb:
  • offlineasm/mips.rb:
  • offlineasm/registers.rb:
  • offlineasm/sh4.rb:
  • offlineasm/x86.rb:
  • runtime/VM.cpp:

(JSC::VM::VM):

  • runtime/VM.h:
File:
1 edited

Legend:

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

    r157452 r159276  
    6262        when "a1"
    6363            "r5"
     64        when "a2"
     65            "r6"
     66        when "a3"
     67            "r7"
    6468        when "t0"
    6569            "r0"
     
    7175            "r10"
    7276        when "t4"
    73             "r6"
     77            "r4"
     78        when "t5"
     79            "r5"
    7480        when "cfr"
    7581            "r14"
     
    906912        when "stspr"
    907913            $asm.puts "sts pr, #{sh4Operands(operands)}"
     914        when "popCalleeSaves"
     915            $asm.puts "mov.l @r15+, r8"
     916            $asm.puts "mov.l @r15+, r9"
     917            $asm.puts "mov.l @r15+, r10"
     918            $asm.puts "mov.l @r15+, r11"
     919            $asm.puts "mov.l @r15+, r13"
     920            $asm.puts "lds.l @r15+,pr"
     921            $asm.puts "mov.l @r15+, fp"
     922        when "pushCalleeSaves"
     923            $asm.puts "mov.l fp, @-r15"
     924            $asm.puts "sts.l pr, @-r15"
     925            $asm.puts "mov.l r13, @-r15"
     926            $asm.puts "mov.l r11, @-r15"
     927            $asm.puts "mov.l r10, @-r15"
     928            $asm.puts "mov.l r9, @-r15"
     929            $asm.puts "mov.l r8, @-r15"
    908930        when "break"
    909931            # This special opcode always generates an illegal instruction exception.
Note: See TracChangeset for help on using the changeset viewer.