Changeset 292080 in webkit for trunk/Source/JavaScriptCore/offlineasm/arm.rb
- Timestamp:
- Mar 29, 2022, 4:21:12 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/offlineasm/arm.rb
r279343 r292080 32 32 # x0 => t0, a0, r0 33 33 # x1 => t1, a1, r1 34 # x2 => t2, a2, r2 35 # x3 => t3, a3, r3 36 # x6 => (callee-save scratch) 34 # x2 => t2, a2 35 # x3 => t3, a3 36 # x4 => t4 (callee-save, PC) 37 # x5 => t5 (callee-save) 38 # x6 => scratch (callee-save) 37 39 # x7 => cfr 38 # x8 => t 4(callee-save)39 # x9 => t 5(callee-save)40 # x10 => csr 1 (callee-save, PB)41 # x11 => c fr, csr0 (callee-save, metadataTable)42 # x12 => (callee-save scratch)40 # x8 => t6 (callee-save) 41 # x9 => t7, also scratch! (callee-save) 42 # x10 => csr0 (callee-save, metadataTable) 43 # x11 => csr1 (callee-save, PB) 44 # x12 => scratch (callee-save) 43 45 # lr => lr 44 46 # sp => sp … … 70 72 end 71 73 72 ARM_EXTRA_GPRS = [SpecialRegister.new("r6"), SpecialRegister.new("r4"), SpecialRegister.new("r12")] 74 # These are allocated from the end. Use the low order r6 first, ast it's often 75 # cheaper to encode. r12 and r9 are equivalent, but r9 conflicts with t7, so r9 76 # only as last resort. 77 ARM_EXTRA_GPRS = [SpecialRegister.new("r9"), SpecialRegister.new("r12"), SpecialRegister.new("r6")] 73 78 ARM_EXTRA_FPRS = [SpecialRegister.new("d7")] 74 79 ARM_SCRATCH_FPR = SpecialRegister.new("d6") … … 100 105 when "t2", "a2" 101 106 "r2" 102 when " a3"107 when "t3", "a3" 103 108 "r3" 104 when "t3" 105 "r3" 106 when "t4" 107 "r8" 109 when "t4" # LLInt PC 110 "r4" 108 111 when "t5" 109 "r 9"112 "r5" 110 113 when "cfr" 111 114 "r7" 115 when "t6" 116 "r8" 117 when "t7" 118 "r9" # r9 is also a scratch register, so use carefully! 112 119 when "csr0" 120 "r10" 121 when "csr1" 113 122 "r11" 114 when "csr1"115 "r10"116 123 when "lr" 117 124 "lr"
Note:
See TracChangeset
for help on using the changeset viewer.