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 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 } | 469 } |
470 static inline bool IsInternalReference(Mode mode) { | 470 static inline bool IsInternalReference(Mode mode) { |
471 return mode == INTERNAL_REFERENCE; | 471 return mode == INTERNAL_REFERENCE; |
472 } | 472 } |
473 static inline bool IsInternalReferenceEncoded(Mode mode) { | 473 static inline bool IsInternalReferenceEncoded(Mode mode) { |
474 return mode == INTERNAL_REFERENCE_ENCODED; | 474 return mode == INTERNAL_REFERENCE_ENCODED; |
475 } | 475 } |
476 static inline bool IsDebugBreakSlot(Mode mode) { | 476 static inline bool IsDebugBreakSlot(Mode mode) { |
477 return mode == DEBUG_BREAK_SLOT; | 477 return mode == DEBUG_BREAK_SLOT; |
478 } | 478 } |
| 479 static inline bool IsDebuggerStatement(Mode mode) { |
| 480 return mode == DEBUG_BREAK; |
| 481 } |
479 static inline bool IsNone(Mode mode) { | 482 static inline bool IsNone(Mode mode) { |
480 return mode == NONE32 || mode == NONE64; | 483 return mode == NONE32 || mode == NONE64; |
481 } | 484 } |
482 static inline bool IsCodeAgeSequence(Mode mode) { | 485 static inline bool IsCodeAgeSequence(Mode mode) { |
483 return mode == CODE_AGE_SEQUENCE; | 486 return mode == CODE_AGE_SEQUENCE; |
484 } | 487 } |
485 static inline int ModeMask(Mode mode) { return 1 << mode; } | 488 static inline int ModeMask(Mode mode) { return 1 << mode; } |
486 | 489 |
487 // Returns true if the first RelocInfo has the same mode and raw data as the | 490 // Returns true if the first RelocInfo has the same mode and raw data as the |
488 // second one. | 491 // second one. |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 INLINE(void set_call_object(Object* target)); | 591 INLINE(void set_call_object(Object* target)); |
589 INLINE(Object** call_object_address()); | 592 INLINE(Object** call_object_address()); |
590 | 593 |
591 // Wipe out a relocation to a fixed value, used for making snapshots | 594 // Wipe out a relocation to a fixed value, used for making snapshots |
592 // reproducible. | 595 // reproducible. |
593 INLINE(void WipeOut()); | 596 INLINE(void WipeOut()); |
594 | 597 |
595 template<typename StaticVisitor> inline void Visit(Heap* heap); | 598 template<typename StaticVisitor> inline void Visit(Heap* heap); |
596 inline void Visit(Isolate* isolate, ObjectVisitor* v); | 599 inline void Visit(Isolate* isolate, ObjectVisitor* v); |
597 | 600 |
598 // Patch the code with some other code. | |
599 void PatchCode(byte* instructions, int instruction_count); | |
600 | |
601 // Patch the code with a call. | 601 // Patch the code with a call. |
602 void PatchCodeWithCall(Address target, int guard_bytes); | 602 void PatchCodeWithCall(Address target, int guard_bytes); |
603 | 603 |
604 // Check whether this return sequence has been patched | 604 // Check whether this return sequence has been patched |
605 // with a call to the debugger. | 605 // with a call to the debugger. |
606 INLINE(bool IsPatchedReturnSequence()); | 606 INLINE(bool IsPatchedReturnSequence()); |
607 | 607 |
608 // Check whether this debug break slot has been patched with a call to the | 608 // Check whether this debug break slot has been patched with a call to the |
609 // debugger. | 609 // debugger. |
610 INLINE(bool IsPatchedDebugBreakSlotSequence()); | 610 INLINE(bool IsPatchedDebugBreakSlotSequence()); |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1163 NullCallWrapper() { } | 1163 NullCallWrapper() { } |
1164 virtual ~NullCallWrapper() { } | 1164 virtual ~NullCallWrapper() { } |
1165 virtual void BeforeCall(int call_size) const { } | 1165 virtual void BeforeCall(int call_size) const { } |
1166 virtual void AfterCall() const { } | 1166 virtual void AfterCall() const { } |
1167 }; | 1167 }; |
1168 | 1168 |
1169 | 1169 |
1170 } } // namespace v8::internal | 1170 } } // namespace v8::internal |
1171 | 1171 |
1172 #endif // V8_ASSEMBLER_H_ | 1172 #endif // V8_ASSEMBLER_H_ |
OLD | NEW |