Changeset 39440 in webkit for trunk/JavaScriptCore/assembler/MacroAssembler.h
- Timestamp:
- Dec 22, 2008, 1:21:18 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/assembler/MacroAssembler.h
r39428 r39440 149 149 150 150 class Jump; 151 class RepatchBuffer;151 class PatchBuffer; 152 152 153 153 // DataLabelPtr: 154 154 // 155 155 // A DataLabelPtr is used to refer to a location in the code containing a pointer to be 156 // repatched after the code has been generated.156 // patched after the code has been generated. 157 157 class DataLabelPtr { 158 158 friend class MacroAssembler; 159 friend class RepatchBuffer;159 friend class PatchBuffer; 160 160 161 161 public: … … 169 169 } 170 170 171 static void repatch(void* address, void* value)172 { 173 X86Assembler:: repatchPointer(reinterpret_cast<intptr_t>(address), reinterpret_cast<intptr_t>(value));171 static void patch(void* address, void* value) 172 { 173 X86Assembler::patchPointer(reinterpret_cast<intptr_t>(address), reinterpret_cast<intptr_t>(value)); 174 174 } 175 175 … … 181 181 // 182 182 // A DataLabelPtr is used to refer to a location in the code containing a pointer to be 183 // repatched after the code has been generated.183 // patched after the code has been generated. 184 184 class DataLabel32 { 185 185 friend class MacroAssembler; 186 friend class RepatchBuffer;186 friend class PatchBuffer; 187 187 188 188 public: … … 196 196 } 197 197 198 static void repatch(void* address, int32_t value)199 { 200 X86Assembler:: repatchImmediate(reinterpret_cast<intptr_t>(address), value);198 static void patch(void* address, int32_t value) 199 { 200 X86Assembler::patchImmediate(reinterpret_cast<intptr_t>(address), value); 201 201 } 202 202 … … 212 212 friend class Jump; 213 213 friend class MacroAssembler; 214 friend class RepatchBuffer;214 friend class PatchBuffer; 215 215 216 216 public: … … 251 251 // Jumps may also be linked to a Label. 252 252 class Jump { 253 friend class RepatchBuffer;253 friend class PatchBuffer; 254 254 friend class MacroAssembler; 255 255 … … 281 281 } 282 282 283 static void repatch(void* address, void* destination)284 { 285 X86Assembler:: repatchBranchOffset(reinterpret_cast<intptr_t>(address), destination);283 static void patch(void* address, void* destination) 284 { 285 X86Assembler::patchBranchOffset(reinterpret_cast<intptr_t>(address), destination); 286 286 } 287 287 … … 295 295 // All jumps in the set will be linked to the same destination. 296 296 class JumpList { 297 friend class RepatchBuffer;297 friend class PatchBuffer; 298 298 299 299 public: … … 334 334 335 335 336 // RepatchBuffer:336 // PatchBuffer: 337 337 // 338 338 // This class assists in linking code generated by the macro assembler, once code generation … … 351 351 // address of calls, as opposed to a point that can be used to later relink a Jump - 352 352 // possibly wrap the later up in an object that can do just that). 353 class RepatchBuffer {353 class PatchBuffer { 354 354 public: 355 RepatchBuffer(void* code)355 PatchBuffer(void* code) 356 356 : m_code(code) 357 357 { … … 391 391 void setPtr(DataLabelPtr label, void* value) 392 392 { 393 X86Assembler:: repatchAddress(m_code, label.m_label, value);393 X86Assembler::patchAddress(m_code, label.m_label, value); 394 394 } 395 395 … … 666 666 } 667 667 668 DataLabel32 loadPtrWithAddressOffset Repatch(Address address, RegisterID dest)668 DataLabel32 loadPtrWithAddressOffsetPatch(Address address, RegisterID dest) 669 669 { 670 670 #if PLATFORM(X86_64) … … 740 740 } 741 741 742 DataLabel32 storePtrWithAddressOffset Repatch(RegisterID src, Address address)742 DataLabel32 storePtrWithAddressOffsetPatch(RegisterID src, Address address) 743 743 { 744 744 #if PLATFORM(X86_64) … … 770 770 } 771 771 772 DataLabelPtr storePtrWith Repatch(Address address)772 DataLabelPtr storePtrWithPatch(Address address) 773 773 { 774 774 #if PLATFORM(X86_64) … … 1220 1220 #endif 1221 1221 1222 Jump jnePtrWith Repatch(RegisterID reg, DataLabelPtr& dataLabel, ImmPtr initialValue = ImmPtr(0))1222 Jump jnePtrWithPatch(RegisterID reg, DataLabelPtr& dataLabel, ImmPtr initialValue = ImmPtr(0)) 1223 1223 { 1224 1224 #if PLATFORM(X86_64) … … 1233 1233 } 1234 1234 1235 Jump jnePtrWith Repatch(Address address, DataLabelPtr& dataLabel, ImmPtr initialValue = ImmPtr(0))1235 Jump jnePtrWithPatch(Address address, DataLabelPtr& dataLabel, ImmPtr initialValue = ImmPtr(0)) 1236 1236 { 1237 1237 #if PLATFORM(X86_64)
Note:
See TracChangeset
for help on using the changeset viewer.