REGRESSION (r160094): Fix lots of crashes for sh4 architecture.

https://bugs.webkit.org/show_bug.cgi?id=125227

Patch by Julien Brianceau <jbriance@cisco.com> on 2013-12-04
Reviewed by Michael Saboff.

* llint/LowLevelInterpreter32_64.asm: Do not use t4 and t5 as they match a0 and a1.
* offlineasm/registers.rb: Add t7, t8 and t9 in register list for sh4 port.
* offlineasm/sh4.rb: Rearrange RegisterID list and add the missing ones.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160100 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent d2ecf37f
2013-12-04 Julien Brianceau <jbriance@cisco.com>
REGRESSION (r160094): Fix lots of crashes for sh4 architecture.
https://bugs.webkit.org/show_bug.cgi?id=125227
Reviewed by Michael Saboff.
* llint/LowLevelInterpreter32_64.asm: Do not use t4 and t5 as they match a0 and a1.
* offlineasm/registers.rb: Add t7, t8 and t9 in register list for sh4 port.
* offlineasm/sh4.rb: Rearrange RegisterID list and add the missing ones.
2013-12-03 Joseph Pecoraro <pecoraro@apple.com>
Web Inspector: Push Remote Inspector debugging connection management into JavaScriptCore
......
......@@ -233,8 +233,8 @@ macro doCallToJavaScript(makeCall, doReturn)
const previousPC = lr
const temp1 = t3 # Same as previousCFR
const temp2 = a3 # Same as topOfStack
const temp3 = t4
const temp4 = t5
const temp3 = t8
const temp4 = t9
end
if X86
......
......@@ -31,6 +31,10 @@ GPRS =
"t3",
"t4",
"t5",
"t6",
"t7",
"t8",
"t9",
"cfr",
"a0",
"a1",
......@@ -42,7 +46,6 @@ GPRS =
"lr",
# 64-bit only registers:
"t6",
"csr1", # tag type number register
"csr2" # tag mask register
]
......
......@@ -57,14 +57,6 @@ SH4_TMP_FPRS = [ SpecialRegister.new("dr10") ]
class RegisterID
def sh4Operand
case name
when "a0"
"r4"
when "a1"
"r5"
when "a2"
"r6"
when "a3"
"r7"
when "t0"
"r0"
when "t1"
......@@ -73,10 +65,18 @@ class RegisterID
"r2"
when "t3"
"r10"
when "t4"
when "t4", "a0"
"r4"
when "t5"
when "t5", "a1"
"r5"
when "t6", "a2"
"r6"
when "t7", "a3"
"r7"
when "t8"
"r8"
when "t9"
"r9"
when "cfr"
"r14"
when "sp"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment