Changeset 86699 in webkit for trunk/Source/JavaScriptCore/assembler/AbstractMacroAssembler.h
- Timestamp:
- May 17, 2011, 1:02:41 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/assembler/AbstractMacroAssembler.h
r85561 r86699 305 305 } 306 306 307 AssemblerLabel label() const { return m_label; } 308 309 private: 310 AssemblerLabel m_label; 311 }; 312 313 // DataLabelCompact: 314 // 315 // A DataLabelCompact is used to refer to a location in the code containing a 316 // compact immediate to be patched after the code has been generated. 317 class DataLabelCompact { 318 template<class TemplateAssemblerType> 319 friend class AbstractMacroAssembler; 320 friend class LinkBuffer; 321 public: 322 DataLabelCompact() 323 { 324 } 325 326 DataLabelCompact(AbstractMacroAssembler<AssemblerType>* masm) 327 : m_label(masm->m_assembler.label()) 328 { 329 } 330 331 DataLabelCompact(AssemblerLabel label) 332 : m_label(label) 333 { 334 } 335 307 336 private: 308 337 AssemblerLabel m_label; … … 501 530 return AssemblerType::getDifferenceBetweenLabels(from.m_label, to.m_label); 502 531 } 532 533 ptrdiff_t differenceBetween(Label from, DataLabelCompact to) 534 { 535 return AssemblerType::getDifferenceBetweenLabels(from.m_label, to.m_label); 536 } 503 537 504 538 ptrdiff_t differenceBetween(DataLabelPtr from, Jump to) … … 565 599 } 566 600 601 static void repatchCompact(CodeLocationDataLabelCompact dataLabelCompact, int32_t value) 602 { 603 AssemblerType::repatchCompact(dataLabelCompact.dataLocation(), value); 604 } 605 567 606 static void repatchInt32(CodeLocationDataLabel32 dataLabel32, int32_t value) 568 607 {
Note:
See TracChangeset
for help on using the changeset viewer.