summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/offlineasm/instructions.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/offlineasm/instructions.rb')
-rw-r--r--Source/JavaScriptCore/offlineasm/instructions.rb19
1 files changed, 17 insertions, 2 deletions
diff --git a/Source/JavaScriptCore/offlineasm/instructions.rb b/Source/JavaScriptCore/offlineasm/instructions.rb
index 4e70625c2..eb394afab 100644
--- a/Source/JavaScriptCore/offlineasm/instructions.rb
+++ b/Source/JavaScriptCore/offlineasm/instructions.rb
@@ -257,7 +257,7 @@ X86_INSTRUCTIONS =
"idivi"
]
-ARMv7_INSTRUCTIONS =
+ARM_INSTRUCTIONS =
[
"smulli",
"addis",
@@ -275,6 +275,21 @@ MIPS_INSTRUCTIONS =
"pichdrra"
]
+SH4_INSTRUCTIONS =
+ [
+ "shllx",
+ "shlrx",
+ "shld",
+ "shad",
+ "bdnan",
+ "loaddReversedAndIncrementAddress",
+ "storedReversedAndDecrementAddress",
+ "ldspr",
+ "stspr",
+ "callf",
+ "jmpf"
+ ]
+
CXX_INSTRUCTIONS =
[
"cloopCrash", # no operands
@@ -291,7 +306,7 @@ CXX_INSTRUCTIONS =
"cloopDo", # no operands
]
-INSTRUCTIONS = MACRO_INSTRUCTIONS + X86_INSTRUCTIONS + ARMv7_INSTRUCTIONS + MIPS_INSTRUCTIONS + CXX_INSTRUCTIONS
+INSTRUCTIONS = MACRO_INSTRUCTIONS + X86_INSTRUCTIONS + ARM_INSTRUCTIONS + MIPS_INSTRUCTIONS + SH4_INSTRUCTIONS + CXX_INSTRUCTIONS
INSTRUCTION_PATTERN = Regexp.new('\\A((' + INSTRUCTIONS.join(')|(') + '))\\Z')