| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
| 6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 10925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10936 // Visits the byte sequence in a function's prologue that contains information | 10936 // Visits the byte sequence in a function's prologue that contains information |
| 10937 // about the code's age. | 10937 // about the code's age. |
| 10938 virtual void VisitCodeAgeSequence(RelocInfo* rinfo); | 10938 virtual void VisitCodeAgeSequence(RelocInfo* rinfo); |
| 10939 | 10939 |
| 10940 // Visit pointer embedded into a code object. | 10940 // Visit pointer embedded into a code object. |
| 10941 virtual void VisitEmbeddedPointer(RelocInfo* rinfo); | 10941 virtual void VisitEmbeddedPointer(RelocInfo* rinfo); |
| 10942 | 10942 |
| 10943 // Visits an external reference embedded into a code object. | 10943 // Visits an external reference embedded into a code object. |
| 10944 virtual void VisitExternalReference(RelocInfo* rinfo); | 10944 virtual void VisitExternalReference(RelocInfo* rinfo); |
| 10945 | 10945 |
| 10946 // Visits an external reference. The value may be modified on return. | 10946 // Visits an external reference. |
| 10947 virtual void VisitExternalReference(Address* p) {} | 10947 virtual void VisitExternalReference(Address* p) {} |
| 10948 | 10948 |
| 10949 // Visits an (encoded) internal reference. |
| 10950 virtual void VisitInternalReference(RelocInfo* rinfo) {} |
| 10951 |
| 10949 // Visits a handle that has an embedder-assigned class ID. | 10952 // Visits a handle that has an embedder-assigned class ID. |
| 10950 virtual void VisitEmbedderReference(Object** p, uint16_t class_id) {} | 10953 virtual void VisitEmbedderReference(Object** p, uint16_t class_id) {} |
| 10951 | 10954 |
| 10952 // Intended for serialization/deserialization checking: insert, or | 10955 // Intended for serialization/deserialization checking: insert, or |
| 10953 // check for the presence of, a tag at this position in the stream. | 10956 // check for the presence of, a tag at this position in the stream. |
| 10954 // Also used for marking up GC roots in heap snapshots. | 10957 // Also used for marking up GC roots in heap snapshots. |
| 10955 virtual void Synchronize(VisitorSynchronization::SyncTag tag) {} | 10958 virtual void Synchronize(VisitorSynchronization::SyncTag tag) {} |
| 10956 }; | 10959 }; |
| 10957 | 10960 |
| 10958 | 10961 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 10987 } else { | 10990 } else { |
| 10988 value &= ~(1 << bit_position); | 10991 value &= ~(1 << bit_position); |
| 10989 } | 10992 } |
| 10990 return value; | 10993 return value; |
| 10991 } | 10994 } |
| 10992 }; | 10995 }; |
| 10993 | 10996 |
| 10994 } } // namespace v8::internal | 10997 } } // namespace v8::internal |
| 10995 | 10998 |
| 10996 #endif // V8_OBJECTS_H_ | 10999 #endif // V8_OBJECTS_H_ |
| OLD | NEW |