Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(522)

Side by Side Diff: src/visitors.h

Issue 2810653002: Add a host parameter to ObjectVisitor methods. (Closed)
Patch Set: rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/snapshot/serializer.cc ('k') | src/x64/assembler-x64-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 the V8 project authors. All rights reserved. 1 // Copyright 2017 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_VISITORS_H_ 5 #ifndef V8_VISITORS_H_
6 #define V8_VISITORS_H_ 6 #define V8_VISITORS_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 28 matching lines...) Expand all
39 39
40 static const char* const kTags[kNumberOfSyncTags]; 40 static const char* const kTags[kNumberOfSyncTags];
41 static const char* const kTagNames[kNumberOfSyncTags]; 41 static const char* const kTagNames[kNumberOfSyncTags];
42 }; 42 };
43 43
44 enum class Root { 44 enum class Root {
45 #define DECLARE_ENUM(enum_item, ignore1, ignore2) enum_item, 45 #define DECLARE_ENUM(enum_item, ignore1, ignore2) enum_item,
46 ROOT_ID_LIST(DECLARE_ENUM) 46 ROOT_ID_LIST(DECLARE_ENUM)
47 #undef DECLARE_ENUM 47 #undef DECLARE_ENUM
48 // TODO(ulan): Merge with the ROOT_ID_LIST. 48 // TODO(ulan): Merge with the ROOT_ID_LIST.
49 kCodeFlusher,
49 kPartialSnapshotCache, 50 kPartialSnapshotCache,
50 kWeakCollections 51 kWeakCollections
51 }; 52 };
52 53
53 // Abstract base class for visiting, and optionally modifying, the 54 // Abstract base class for visiting, and optionally modifying, the
54 // pointers contained in roots. Used in GC and serialization/deserialization. 55 // pointers contained in roots. Used in GC and serialization/deserialization.
55 class RootVisitor BASE_EMBEDDED { 56 class RootVisitor BASE_EMBEDDED {
56 public: 57 public:
57 virtual ~RootVisitor() {} 58 virtual ~RootVisitor() {}
58 59
(...skipping 10 matching lines...) Expand all
69 // check for the presence of, a tag at this position in the stream. 70 // check for the presence of, a tag at this position in the stream.
70 // Also used for marking up GC roots in heap snapshots. 71 // Also used for marking up GC roots in heap snapshots.
71 // TODO(ulan): Remove this. 72 // TODO(ulan): Remove this.
72 virtual void Synchronize(VisitorSynchronization::SyncTag tag) {} 73 virtual void Synchronize(VisitorSynchronization::SyncTag tag) {}
73 }; 74 };
74 75
75 } // namespace internal 76 } // namespace internal
76 } // namespace v8 77 } // namespace v8
77 78
78 #endif // V8_VISITORS_H_ 79 #endif // V8_VISITORS_H_
OLDNEW
« no previous file with comments | « src/snapshot/serializer.cc ('k') | src/x64/assembler-x64-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698