OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 // and written. In this case the target_address_address function above | 574 // and written. In this case the target_address_address function above |
575 // should return the end of the instructions to be patched, allowing the | 575 // should return the end of the instructions to be patched, allowing the |
576 // deserializer to deserialize the instructions as raw bytes and put them in | 576 // deserializer to deserialize the instructions as raw bytes and put them in |
577 // place, ready to be patched with the target. | 577 // place, ready to be patched with the target. |
578 INLINE(int target_address_size()); | 578 INLINE(int target_address_size()); |
579 | 579 |
580 // Read the reference in the instruction this relocation | 580 // Read the reference in the instruction this relocation |
581 // applies to; can only be called if rmode_ is EXTERNAL_REFERENCE. | 581 // applies to; can only be called if rmode_ is EXTERNAL_REFERENCE. |
582 INLINE(Address target_external_reference()); | 582 INLINE(Address target_external_reference()); |
583 | 583 |
584 // Read/modify the reference in the instruction this relocation | 584 // Read the reference in the instruction this relocation |
585 // applies to; can only be called if rmode_ is INTERNAL_REFERENCE. | 585 // applies to; can only be called if rmode_ is INTERNAL_REFERENCE. |
586 INLINE(Address target_internal_reference()); | 586 INLINE(Address target_internal_reference()); |
587 INLINE(void set_target_internal_reference(Address target)); | 587 |
| 588 // Return the reference address this relocation applies to; |
| 589 // can only be called if rmode_ is INTERNAL_REFERENCE. |
| 590 INLINE(Address target_internal_reference_address()); |
588 | 591 |
589 // Read/modify the address of a call instruction. This is used to relocate | 592 // Read/modify the address of a call instruction. This is used to relocate |
590 // the break points where straight-line code is patched with a call | 593 // the break points where straight-line code is patched with a call |
591 // instruction. | 594 // instruction. |
592 INLINE(Address call_address()); | 595 INLINE(Address call_address()); |
593 INLINE(void set_call_address(Address target)); | 596 INLINE(void set_call_address(Address target)); |
594 INLINE(Object* call_object()); | 597 INLINE(Object* call_object()); |
595 INLINE(void set_call_object(Object* target)); | 598 INLINE(void set_call_object(Object* target)); |
596 INLINE(Object** call_object_address()); | 599 INLINE(Object** call_object_address()); |
597 | 600 |
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1165 NullCallWrapper() { } | 1168 NullCallWrapper() { } |
1166 virtual ~NullCallWrapper() { } | 1169 virtual ~NullCallWrapper() { } |
1167 virtual void BeforeCall(int call_size) const { } | 1170 virtual void BeforeCall(int call_size) const { } |
1168 virtual void AfterCall() const { } | 1171 virtual void AfterCall() const { } |
1169 }; | 1172 }; |
1170 | 1173 |
1171 | 1174 |
1172 } } // namespace v8::internal | 1175 } } // namespace v8::internal |
1173 | 1176 |
1174 #endif // V8_ASSEMBLER_H_ | 1177 #endif // V8_ASSEMBLER_H_ |
OLD | NEW |