| 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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 // instruction bits the size of the target will be zero, indicating that the | 418 // instruction bits the size of the target will be zero, indicating that the |
| 419 // serializer should not step forwards in memory after a target is resolved | 419 // serializer should not step forwards in memory after a target is resolved |
| 420 // and written. In this case the target_address_address function above | 420 // and written. In this case the target_address_address function above |
| 421 // should return the end of the instructions to be patched, allowing the | 421 // should return the end of the instructions to be patched, allowing the |
| 422 // deserializer to deserialize the instructions as raw bytes and put them in | 422 // deserializer to deserialize the instructions as raw bytes and put them in |
| 423 // place, ready to be patched with the target. | 423 // place, ready to be patched with the target. |
| 424 INLINE(int target_address_size()); | 424 INLINE(int target_address_size()); |
| 425 | 425 |
| 426 // Read/modify the reference in the instruction this relocation | 426 // Read/modify the reference in the instruction this relocation |
| 427 // applies to; can only be called if rmode_ is external_reference | 427 // applies to; can only be called if rmode_ is external_reference |
| 428 INLINE(Address* target_reference_address()); | 428 INLINE(Address target_reference()); |
| 429 | 429 |
| 430 // Read/modify the address of a call instruction. This is used to relocate | 430 // Read/modify the address of a call instruction. This is used to relocate |
| 431 // the break points where straight-line code is patched with a call | 431 // the break points where straight-line code is patched with a call |
| 432 // instruction. | 432 // instruction. |
| 433 INLINE(Address call_address()); | 433 INLINE(Address call_address()); |
| 434 INLINE(void set_call_address(Address target)); | 434 INLINE(void set_call_address(Address target)); |
| 435 INLINE(Object* call_object()); | 435 INLINE(Object* call_object()); |
| 436 INLINE(void set_call_object(Object* target)); | 436 INLINE(void set_call_object(Object* target)); |
| 437 INLINE(Object** call_object_address()); | 437 INLINE(Object** call_object_address()); |
| 438 | 438 |
| (...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1074 public: | 1074 public: |
| 1075 NullCallWrapper() { } | 1075 NullCallWrapper() { } |
| 1076 virtual ~NullCallWrapper() { } | 1076 virtual ~NullCallWrapper() { } |
| 1077 virtual void BeforeCall(int call_size) const { } | 1077 virtual void BeforeCall(int call_size) const { } |
| 1078 virtual void AfterCall() const { } | 1078 virtual void AfterCall() const { } |
| 1079 }; | 1079 }; |
| 1080 | 1080 |
| 1081 } } // namespace v8::internal | 1081 } } // namespace v8::internal |
| 1082 | 1082 |
| 1083 #endif // V8_ASSEMBLER_H_ | 1083 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |