OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 10205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10216 | 10216 |
10217 // Visits an external reference embedded into a code object. | 10217 // Visits an external reference embedded into a code object. |
10218 virtual void VisitExternalReference(RelocInfo* rinfo); | 10218 virtual void VisitExternalReference(RelocInfo* rinfo); |
10219 | 10219 |
10220 // Visits an external reference. | 10220 // Visits an external reference. |
10221 virtual void VisitExternalReference(Address* p) {} | 10221 virtual void VisitExternalReference(Address* p) {} |
10222 | 10222 |
10223 // Visits an (encoded) internal reference. | 10223 // Visits an (encoded) internal reference. |
10224 virtual void VisitInternalReference(RelocInfo* rinfo) {} | 10224 virtual void VisitInternalReference(RelocInfo* rinfo) {} |
10225 | 10225 |
10226 // Visits a handle that has an embedder-assigned class ID. | |
10227 virtual void VisitEmbedderReference(Object** p, uint16_t class_id) {} | |
10228 | |
10229 // Intended for serialization/deserialization checking: insert, or | 10226 // Intended for serialization/deserialization checking: insert, or |
10230 // check for the presence of, a tag at this position in the stream. | 10227 // check for the presence of, a tag at this position in the stream. |
10231 // Also used for marking up GC roots in heap snapshots. | 10228 // Also used for marking up GC roots in heap snapshots. |
10232 virtual void Synchronize(VisitorSynchronization::SyncTag tag) {} | 10229 virtual void Synchronize(VisitorSynchronization::SyncTag tag) {} |
10233 }; | 10230 }; |
10234 | 10231 |
10235 | 10232 |
10236 // BooleanBit is a helper class for setting and getting a bit in an integer. | 10233 // BooleanBit is a helper class for setting and getting a bit in an integer. |
10237 class BooleanBit : public AllStatic { | 10234 class BooleanBit : public AllStatic { |
10238 public: | 10235 public: |
(...skipping 11 matching lines...) Expand all Loading... |
10250 } | 10247 } |
10251 }; | 10248 }; |
10252 | 10249 |
10253 | 10250 |
10254 } // NOLINT, false-positive due to second-order macros. | 10251 } // NOLINT, false-positive due to second-order macros. |
10255 } // NOLINT, false-positive due to second-order macros. | 10252 } // NOLINT, false-positive due to second-order macros. |
10256 | 10253 |
10257 #include "src/objects/object-macros-undef.h" | 10254 #include "src/objects/object-macros-undef.h" |
10258 | 10255 |
10259 #endif // V8_OBJECTS_H_ | 10256 #endif // V8_OBJECTS_H_ |
OLD | NEW |