OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 6707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6718 v8::String::ExternalAsciiStringResource** resource) {} | 6718 v8::String::ExternalAsciiStringResource** resource) {} |
6719 virtual void VisitExternalTwoByteString( | 6719 virtual void VisitExternalTwoByteString( |
6720 v8::String::ExternalStringResource** resource) {} | 6720 v8::String::ExternalStringResource** resource) {} |
6721 | 6721 |
6722 // Visits a debug call target in the instruction stream. | 6722 // Visits a debug call target in the instruction stream. |
6723 virtual void VisitDebugTarget(RelocInfo* rinfo); | 6723 virtual void VisitDebugTarget(RelocInfo* rinfo); |
6724 | 6724 |
6725 // Handy shorthand for visiting a single pointer. | 6725 // Handy shorthand for visiting a single pointer. |
6726 virtual void VisitPointer(Object** p) { VisitPointers(p, p + 1); } | 6726 virtual void VisitPointer(Object** p) { VisitPointers(p, p + 1); } |
6727 | 6727 |
| 6728 // Variant of VisitPointer() can be defined in visitors where |
| 6729 // reloc info is needed (initially defined for mips). |
| 6730 virtual void VisitPointer(Object** p, RelocInfo* rinfo) { |
| 6731 VisitPointers(p, p + 1); |
| 6732 } |
| 6733 |
6728 // Visits a contiguous arrays of external references (references to the C++ | 6734 // Visits a contiguous arrays of external references (references to the C++ |
6729 // heap) in the half-open range [start, end). Any or all of the values | 6735 // heap) in the half-open range [start, end). Any or all of the values |
6730 // may be modified on return. | 6736 // may be modified on return. |
6731 virtual void VisitExternalReferences(Address* start, Address* end) {} | 6737 virtual void VisitExternalReferences(Address* start, Address* end) {} |
6732 | 6738 |
6733 inline void VisitExternalReference(Address* p) { | 6739 inline void VisitExternalReference(Address* p) { |
6734 VisitExternalReferences(p, p + 1); | 6740 VisitExternalReferences(p, p + 1); |
6735 } | 6741 } |
6736 | 6742 |
6737 // Visits a handle that has an embedder-assigned class ID. | 6743 // Visits a handle that has an embedder-assigned class ID. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6778 } else { | 6784 } else { |
6779 value &= ~(1 << bit_position); | 6785 value &= ~(1 << bit_position); |
6780 } | 6786 } |
6781 return value; | 6787 return value; |
6782 } | 6788 } |
6783 }; | 6789 }; |
6784 | 6790 |
6785 } } // namespace v8::internal | 6791 } } // namespace v8::internal |
6786 | 6792 |
6787 #endif // V8_OBJECTS_H_ | 6793 #endif // V8_OBJECTS_H_ |
OLD | NEW |