Changeset 87356 in webkit for trunk/Source/JavaScriptCore/assembler/AbstractMacroAssembler.h
- Timestamp:
- May 25, 2011, 9:12:41 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/assembler/AbstractMacroAssembler.h
r86699 r87356 362 362 363 363 Call(AssemblerLabel jmp, Flags flags) 364 : m_ jmp(jmp)364 : m_label(jmp) 365 365 , m_flags(flags) 366 366 { … … 374 374 static Call fromTailJump(Jump jump) 375 375 { 376 return Call(jump.m_ jmp, Linkable);377 } 378 379 AssemblerLabel m_ jmp;376 return Call(jump.m_label, Linkable); 377 } 378 379 AssemblerLabel m_label; 380 380 private: 381 381 Flags m_flags; … … 401 401 // Fixme: this information should be stored in the instruction stream, not in the Jump object. 402 402 Jump(AssemblerLabel jmp, ARMv7Assembler::JumpType type, ARMv7Assembler::Condition condition = ARMv7Assembler::ConditionInvalid) 403 : m_ jmp(jmp)403 : m_label(jmp) 404 404 , m_type(type) 405 405 , m_condition(condition) … … 408 408 #else 409 409 Jump(AssemblerLabel jmp) 410 : m_ jmp(jmp)410 : m_label(jmp) 411 411 { 412 412 } … … 416 416 { 417 417 #if CPU(ARM_THUMB2) 418 masm->m_assembler.linkJump(m_ jmp, masm->m_assembler.label(), m_type, m_condition);418 masm->m_assembler.linkJump(m_label, masm->m_assembler.label(), m_type, m_condition); 419 419 #else 420 masm->m_assembler.linkJump(m_ jmp, masm->m_assembler.label());420 masm->m_assembler.linkJump(m_label, masm->m_assembler.label()); 421 421 #endif 422 422 } … … 425 425 { 426 426 #if CPU(ARM_THUMB2) 427 masm->m_assembler.linkJump(m_ jmp, label.m_label, m_type, m_condition);427 masm->m_assembler.linkJump(m_label, label.m_label, m_type, m_condition); 428 428 #else 429 masm->m_assembler.linkJump(m_ jmp, label.m_label);430 #endif 431 } 432 433 bool isSet() const { return m_ jmp.isSet(); }434 435 private: 436 AssemblerLabel m_ jmp;429 masm->m_assembler.linkJump(m_label, label.m_label); 430 #endif 431 } 432 433 bool isSet() const { return m_label.isSet(); } 434 435 private: 436 AssemblerLabel m_label; 437 437 #if CPU(ARM_THUMB2) 438 438 ARMv7Assembler::JumpType m_type; … … 506 506 } 507 507 508 ptrdiff_t differenceBetween(Label from, Jump to) 509 { 510 return AssemblerType::getDifferenceBetweenLabels(from.m_label, to.m_jmp); 511 } 512 513 ptrdiff_t differenceBetween(Label from, Call to) 514 { 515 return AssemblerType::getDifferenceBetweenLabels(from.m_label, to.m_jmp); 516 } 517 518 ptrdiff_t differenceBetween(Label from, Label to) 508 template<typename T, typename U> 509 ptrdiff_t differenceBetween(T from, U to) 519 510 { 520 511 return AssemblerType::getDifferenceBetweenLabels(from.m_label, to.m_label); 521 }522 523 ptrdiff_t differenceBetween(Label from, DataLabelPtr to)524 {525 return AssemblerType::getDifferenceBetweenLabels(from.m_label, to.m_label);526 }527 528 ptrdiff_t differenceBetween(Label from, DataLabel32 to)529 {530 return AssemblerType::getDifferenceBetweenLabels(from.m_label, to.m_label);531 }532 533 ptrdiff_t differenceBetween(Label from, DataLabelCompact to)534 {535 return AssemblerType::getDifferenceBetweenLabels(from.m_label, to.m_label);536 }537 538 ptrdiff_t differenceBetween(DataLabelPtr from, Jump to)539 {540 return AssemblerType::getDifferenceBetweenLabels(from.m_label, to.m_jmp);541 }542 543 ptrdiff_t differenceBetween(DataLabelPtr from, DataLabelPtr to)544 {545 return AssemblerType::getDifferenceBetweenLabels(from.m_label, to.m_label);546 }547 548 ptrdiff_t differenceBetween(DataLabelPtr from, Call to)549 {550 return AssemblerType::getDifferenceBetweenLabels(from.m_label, to.m_jmp);551 512 } 552 513 … … 571 532 static void linkJump(void* code, Jump jump, CodeLocationLabel target) 572 533 { 573 AssemblerType::linkJump(code, jump.m_ jmp, target.dataLocation());534 AssemblerType::linkJump(code, jump.m_label, target.dataLocation()); 574 535 } 575 536 … … 586 547 static unsigned getLinkerCallReturnOffset(Call call) 587 548 { 588 return AssemblerType::getCallReturnOffset(call.m_ jmp);549 return AssemblerType::getCallReturnOffset(call.m_label); 589 550 } 590 551
Note:
See TracChangeset
for help on using the changeset viewer.