| 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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| 439 // Wipe out a relocation to a fixed value, used for making snapshots |
| 440 // reproducible. |
| 441 INLINE(void WipeOut()); |
| 442 |
| 439 template<typename StaticVisitor> inline void Visit(Heap* heap); | 443 template<typename StaticVisitor> inline void Visit(Heap* heap); |
| 440 inline void Visit(Isolate* isolate, ObjectVisitor* v); | 444 inline void Visit(Isolate* isolate, ObjectVisitor* v); |
| 441 | 445 |
| 442 // Patch the code with some other code. | 446 // Patch the code with some other code. |
| 443 void PatchCode(byte* instructions, int instruction_count); | 447 void PatchCode(byte* instructions, int instruction_count); |
| 444 | 448 |
| 445 // Patch the code with a call. | 449 // Patch the code with a call. |
| 446 void PatchCodeWithCall(Address target, int guard_bytes); | 450 void PatchCodeWithCall(Address target, int guard_bytes); |
| 447 | 451 |
| 448 // Check whether this return sequence has been patched | 452 // Check whether this return sequence has been patched |
| (...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1074 public: | 1078 public: |
| 1075 NullCallWrapper() { } | 1079 NullCallWrapper() { } |
| 1076 virtual ~NullCallWrapper() { } | 1080 virtual ~NullCallWrapper() { } |
| 1077 virtual void BeforeCall(int call_size) const { } | 1081 virtual void BeforeCall(int call_size) const { } |
| 1078 virtual void AfterCall() const { } | 1082 virtual void AfterCall() const { } |
| 1079 }; | 1083 }; |
| 1080 | 1084 |
| 1081 } } // namespace v8::internal | 1085 } } // namespace v8::internal |
| 1082 | 1086 |
| 1083 #endif // V8_ASSEMBLER_H_ | 1087 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |