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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 void PatchCodeWithCall(Address target, int guard_bytes); | 402 void PatchCodeWithCall(Address target, int guard_bytes); |
403 | 403 |
404 // Check whether this return sequence has been patched | 404 // Check whether this return sequence has been patched |
405 // with a call to the debugger. | 405 // with a call to the debugger. |
406 INLINE(bool IsPatchedReturnSequence()); | 406 INLINE(bool IsPatchedReturnSequence()); |
407 | 407 |
408 // Check whether this debug break slot has been patched with a call to the | 408 // Check whether this debug break slot has been patched with a call to the |
409 // debugger. | 409 // debugger. |
410 INLINE(bool IsPatchedDebugBreakSlotSequence()); | 410 INLINE(bool IsPatchedDebugBreakSlotSequence()); |
411 | 411 |
| 412 #ifdef DEBUG |
| 413 // Check whether the given code contains relocation information that |
| 414 // either is position-relative or movable by the garbage collector. |
| 415 static bool RequiresRelocation(const CodeDesc& desc); |
| 416 #endif |
| 417 |
412 #ifdef ENABLE_DISASSEMBLER | 418 #ifdef ENABLE_DISASSEMBLER |
413 // Printing | 419 // Printing |
414 static const char* RelocModeName(Mode rmode); | 420 static const char* RelocModeName(Mode rmode); |
415 void Print(FILE* out); | 421 void Print(FILE* out); |
416 #endif // ENABLE_DISASSEMBLER | 422 #endif // ENABLE_DISASSEMBLER |
417 #ifdef VERIFY_HEAP | 423 #ifdef VERIFY_HEAP |
418 void Verify(); | 424 void Verify(); |
419 #endif | 425 #endif |
420 | 426 |
421 static const int kCodeTargetMask = (1 << (LAST_CODE_ENUM + 1)) - 1; | 427 static const int kCodeTargetMask = (1 << (LAST_CODE_ENUM + 1)) - 1; |
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
983 public: | 989 public: |
984 NullCallWrapper() { } | 990 NullCallWrapper() { } |
985 virtual ~NullCallWrapper() { } | 991 virtual ~NullCallWrapper() { } |
986 virtual void BeforeCall(int call_size) const { } | 992 virtual void BeforeCall(int call_size) const { } |
987 virtual void AfterCall() const { } | 993 virtual void AfterCall() const { } |
988 }; | 994 }; |
989 | 995 |
990 } } // namespace v8::internal | 996 } } // namespace v8::internal |
991 | 997 |
992 #endif // V8_ASSEMBLER_H_ | 998 #endif // V8_ASSEMBLER_H_ |
OLD | NEW |