Changeset 44713 in webkit for trunk/JavaScriptCore/assembler
- Timestamp:
- Jun 15, 2009, 11:52:49 PM (16 years ago)
- Location:
- trunk/JavaScriptCore/assembler
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/assembler/ARMv7Assembler.h
r44554 r44713 1521 1521 } 1522 1522 1523 // bah, this mathod should really be static, since it is used by the PatchBuffer.1523 // bah, this mathod should really be static, since it is used by the LinkBuffer. 1524 1524 // return a bool saying whether the link was successful? 1525 1525 static void linkCall(void* code, JmpSrc from, void* to) -
trunk/JavaScriptCore/assembler/AbstractMacroAssembler.h
r44711 r44713 50 50 51 51 class Jump; 52 class PatchBuffer;52 class LinkBuffer; 53 53 class RepatchBuffer; 54 54 … … 222 222 friend class Jump; 223 223 friend class MacroAssemblerCodeRef; 224 friend class PatchBuffer;224 friend class LinkBuffer; 225 225 226 226 public: … … 247 247 template<class TemplateAssemblerType> 248 248 friend class AbstractMacroAssembler; 249 friend class PatchBuffer;249 friend class LinkBuffer; 250 250 public: 251 251 DataLabelPtr() … … 269 269 template<class TemplateAssemblerType> 270 270 friend class AbstractMacroAssembler; 271 friend class PatchBuffer;271 friend class LinkBuffer; 272 272 public: 273 273 DataLabel32() … … 293 293 template<class TemplateAssemblerType> 294 294 friend class AbstractMacroAssembler; 295 friend class PatchBuffer;295 friend class LinkBuffer; 296 296 public: 297 297 enum Flags { … … 338 338 friend class AbstractMacroAssembler; 339 339 friend class Call; 340 friend class PatchBuffer;340 friend class LinkBuffer; 341 341 public: 342 342 Jump() … … 368 368 // All jumps in the set will be linked to the same destination. 369 369 class JumpList { 370 friend class PatchBuffer;370 friend class LinkBuffer; 371 371 372 372 public: … … 407 407 408 408 409 // Section 3: PatchBuffer - utility to finalize code generation.409 // Section 3: LinkBuffer - utility to finalize code generation. 410 410 411 411 static CodePtr trampolineAt(CodeRef ref, Label label) … … 414 414 } 415 415 416 // PatchBuffer:416 // LinkBuffer: 417 417 // 418 418 // This class assists in linking code generated by the macro assembler, once code generation … … 431 431 // address of calls, as opposed to a point that can be used to later relink a Jump - 432 432 // possibly wrap the later up in an object that can do just that). 433 class PatchBuffer : public Noncopyable {433 class LinkBuffer : public Noncopyable { 434 434 public: 435 435 // Note: Initialization sequence is significant, since executablePool is a PassRefPtr. 436 436 // First, executablePool is copied into m_executablePool, then the initialization of 437 437 // m_code uses m_executablePool, *not* executablePool, since this is no longer valid. 438 PatchBuffer(AbstractMacroAssembler<AssemblerType>* masm, PassRefPtr<ExecutablePool> executablePool)438 LinkBuffer(AbstractMacroAssembler<AssemblerType>* masm, PassRefPtr<ExecutablePool> executablePool) 439 439 : m_executablePool(executablePool) 440 440 , m_code(masm->m_assembler.executableCopy(m_executablePool.get())) … … 446 446 } 447 447 448 ~ PatchBuffer()448 ~LinkBuffer() 449 449 { 450 450 ASSERT(m_completed);
Note:
See TracChangeset
for help on using the changeset viewer.