Changeset 189293 in webkit for trunk/Source/JavaScriptCore/offlineasm/sh4.rb
- Timestamp:
- Sep 3, 2015, 3:16:23 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/offlineasm/sh4.rb
r172429 r189293 25 25 require 'risc' 26 26 27 # GPR conventions, to match the baseline JIT 28 # 29 # r0 => t0, r0 30 # r1 => t1, r1 31 # r2 => t4 32 # r3 => t5 33 # r4 => a0 34 # r5 => a1 35 # r6 => t2, a2 36 # r7 => t3, a3 37 # r10 => (scratch) 38 # r11 => (scratch) 39 # r13 => (scratch) 40 # r14 => cfr 41 # r15 => sp 42 # pr => lr 43 44 # FPR conventions, to match the baseline JIT 45 # We don't have fa2 or fa3! 46 # dr0 => ft0, fr 47 # dr2 => ft1 48 # dr4 => ft2, fa0 49 # dr6 => ft3, fa1 50 # dr8 => ft4 51 # dr10 => ft5 52 # dr12 => (scratch) 53 27 54 class Node 28 55 def sh4SingleHi … … 52 79 end 53 80 54 SH4_TMP_GPRS = [ SpecialRegister.new("r 3"), SpecialRegister.new("r11"), SpecialRegister.new("r13") ]55 SH4_TMP_FPRS = [ SpecialRegister.new("dr1 0") ]81 SH4_TMP_GPRS = [ SpecialRegister.new("r10"), SpecialRegister.new("r11"), SpecialRegister.new("r13") ] 82 SH4_TMP_FPRS = [ SpecialRegister.new("dr12") ] 56 83 57 84 class RegisterID 58 85 def sh4Operand 59 86 case name 60 when "t0" 87 when "a0" 88 "r4" 89 when "a1" 90 "r5" 91 when "r0", "t0" 61 92 "r0" 62 when " t1"93 when "r1", "t1" 63 94 "r1" 64 when "t2" 95 when "a2", "t2" 96 "r6" 97 when "a3", "t3" 98 "r7" 99 when "t4" 65 100 "r2" 66 when "t3" 67 "r10" 68 when "t4", "a0" 69 "r4" 70 when "t5", "a1" 71 "r5" 72 when "t6", "a2" 73 "r6" 74 when "t7", "a3" 75 "r7" 76 when "t8" 77 "r8" 78 when "t9" 79 "r9" 101 when "t5" 102 "r3" 80 103 when "cfr" 81 104 "r14" … … 97 120 when "ft1" 98 121 "dr2" 99 when "ft2" 122 when "ft2", "fa0" 100 123 "dr4" 101 when "ft3" 124 when "ft3", "fa1" 102 125 "dr6" 103 126 when "ft4" 104 127 "dr8" 105 when "f a0"106 "dr1 2"128 when "ft5" 129 "dr10" 107 130 else 108 131 raise "Bad register #{name} for SH4 at #{codeOriginString}"
Note:
See TracChangeset
for help on using the changeset viewer.