| 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 6710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6721 v8::String::ExternalAsciiStringResource** resource) {} | 6721 v8::String::ExternalAsciiStringResource** resource) {} |
| 6722 virtual void VisitExternalTwoByteString( | 6722 virtual void VisitExternalTwoByteString( |
| 6723 v8::String::ExternalStringResource** resource) {} | 6723 v8::String::ExternalStringResource** resource) {} |
| 6724 | 6724 |
| 6725 // Visits a debug call target in the instruction stream. | 6725 // Visits a debug call target in the instruction stream. |
| 6726 virtual void VisitDebugTarget(RelocInfo* rinfo); | 6726 virtual void VisitDebugTarget(RelocInfo* rinfo); |
| 6727 | 6727 |
| 6728 // Handy shorthand for visiting a single pointer. | 6728 // Handy shorthand for visiting a single pointer. |
| 6729 virtual void VisitPointer(Object** p) { VisitPointers(p, p + 1); } | 6729 virtual void VisitPointer(Object** p) { VisitPointers(p, p + 1); } |
| 6730 | 6730 |
| 6731 // Variant of VisitPointer() can be defined in visitors where |
| 6732 // reloc info is needed (initially defined for mips). |
| 6733 virtual void VisitPointer(Object** p, RelocInfo* rinfo) { |
| 6734 VisitPointers(p, p + 1); |
| 6735 } |
| 6736 |
| 6731 // Visits a contiguous arrays of external references (references to the C++ | 6737 // Visits a contiguous arrays of external references (references to the C++ |
| 6732 // heap) in the half-open range [start, end). Any or all of the values | 6738 // heap) in the half-open range [start, end). Any or all of the values |
| 6733 // may be modified on return. | 6739 // may be modified on return. |
| 6734 virtual void VisitExternalReferences(Address* start, Address* end) {} | 6740 virtual void VisitExternalReferences(Address* start, Address* end) {} |
| 6735 | 6741 |
| 6736 inline void VisitExternalReference(Address* p) { | 6742 inline void VisitExternalReference(Address* p) { |
| 6737 VisitExternalReferences(p, p + 1); | 6743 VisitExternalReferences(p, p + 1); |
| 6738 } | 6744 } |
| 6739 | 6745 |
| 6740 // Visits a handle that has an embedder-assigned class ID. | 6746 // Visits a handle that has an embedder-assigned class ID. |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6781 } else { | 6787 } else { |
| 6782 value &= ~(1 << bit_position); | 6788 value &= ~(1 << bit_position); |
| 6783 } | 6789 } |
| 6784 return value; | 6790 return value; |
| 6785 } | 6791 } |
| 6786 }; | 6792 }; |
| 6787 | 6793 |
| 6788 } } // namespace v8::internal | 6794 } } // namespace v8::internal |
| 6789 | 6795 |
| 6790 #endif // V8_OBJECTS_H_ | 6796 #endif // V8_OBJECTS_H_ |
| OLD | NEW |