Changeset 43432 in webkit for trunk/JavaScriptCore/assembler/AbstractMacroAssembler.h
- Timestamp:
- May 9, 2009, 1:35:57 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/assembler/AbstractMacroAssembler.h
r41544 r43432 38 38 class Jump; 39 39 class PatchBuffer; 40 class CodeLocationInstruction; 40 41 class CodeLocationLabel; 41 42 class CodeLocationJump; … … 407 408 // methods may be used to recover a handle that has nopw been 408 409 // retained, based on a known fixed relative offset from one that has. 410 CodeLocationInstruction instructionAtOffset(int offset); 409 411 CodeLocationLabel labelAtOffset(int offset); 410 412 CodeLocationJump jumpAtOffset(int offset); … … 423 425 424 426 void* m_location; 427 }; 428 429 // CodeLocationInstruction: 430 // 431 // An arbitrary instruction in the JIT code. 432 class CodeLocationInstruction : public CodeLocationCommon { 433 friend class CodeLocationCommon; 434 public: 435 CodeLocationInstruction() 436 { 437 } 438 439 void patchLoadToLEA() { 440 AssemblerType::patchLoadToLEA(reinterpret_cast<intptr_t>(this->m_location)); 441 } 442 443 private: 444 explicit CodeLocationInstruction(void* location) 445 : CodeLocationCommon(location) 446 { 447 } 425 448 }; 426 449 … … 805 828 806 829 template <class AssemblerType> 830 typename AbstractMacroAssembler<AssemblerType>::CodeLocationInstruction AbstractMacroAssembler<AssemblerType>::CodeLocationCommon::instructionAtOffset(int offset) 831 { 832 return typename AbstractMacroAssembler::CodeLocationInstruction(reinterpret_cast<char*>(m_location) + offset); 833 } 834 835 template <class AssemblerType> 807 836 typename AbstractMacroAssembler<AssemblerType>::CodeLocationLabel AbstractMacroAssembler<AssemblerType>::CodeLocationCommon::labelAtOffset(int offset) 808 837 {
Note:
See TracChangeset
for help on using the changeset viewer.