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 // Read/modify the address of a call instruction. This is used to relocate | 418 // Read/modify the address of a call instruction. This is used to relocate |
419 // the break points where straight-line code is patched with a call | 419 // the break points where straight-line code is patched with a call |
420 // instruction. | 420 // instruction. |
421 INLINE(Address call_address()); | 421 INLINE(Address call_address()); |
422 INLINE(void set_call_address(Address target)); | 422 INLINE(void set_call_address(Address target)); |
423 INLINE(Object* call_object()); | 423 INLINE(Object* call_object()); |
424 INLINE(void set_call_object(Object* target)); | 424 INLINE(void set_call_object(Object* target)); |
425 INLINE(Object** call_object_address()); | 425 INLINE(Object** call_object_address()); |
426 | 426 |
427 template<typename StaticVisitor> inline void Visit(Heap* heap); | 427 template<typename StaticVisitor> inline void Visit(Heap* heap); |
428 inline void Visit(ObjectVisitor* v); | 428 inline void Visit(Isolate* isolate, ObjectVisitor* v); |
429 | 429 |
430 // Patch the code with some other code. | 430 // Patch the code with some other code. |
431 void PatchCode(byte* instructions, int instruction_count); | 431 void PatchCode(byte* instructions, int instruction_count); |
432 | 432 |
433 // Patch the code with a call. | 433 // Patch the code with a call. |
434 void PatchCodeWithCall(Address target, int guard_bytes); | 434 void PatchCodeWithCall(Address target, int guard_bytes); |
435 | 435 |
436 // Check whether this return sequence has been patched | 436 // Check whether this return sequence has been patched |
437 // with a call to the debugger. | 437 // with a call to the debugger. |
438 INLINE(bool IsPatchedReturnSequence()); | 438 INLINE(bool IsPatchedReturnSequence()); |
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1057 public: | 1057 public: |
1058 NullCallWrapper() { } | 1058 NullCallWrapper() { } |
1059 virtual ~NullCallWrapper() { } | 1059 virtual ~NullCallWrapper() { } |
1060 virtual void BeforeCall(int call_size) const { } | 1060 virtual void BeforeCall(int call_size) const { } |
1061 virtual void AfterCall() const { } | 1061 virtual void AfterCall() const { } |
1062 }; | 1062 }; |
1063 | 1063 |
1064 } } // namespace v8::internal | 1064 } } // namespace v8::internal |
1065 | 1065 |
1066 #endif // V8_ASSEMBLER_H_ | 1066 #endif // V8_ASSEMBLER_H_ |
OLD | NEW |