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

Side by Side Diff: src/snapshot/deserializer.h

Issue 2741683004: [rename] Rename internal field to embedder field. (Closed)
Patch Set: [rename] Rename internal field to embedder field. Created 3 years, 9 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/runtime/runtime-typedarray.cc ('k') | src/snapshot/deserializer.cc » ('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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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_SNAPSHOT_DESERIALIZER_H_ 5 #ifndef V8_SNAPSHOT_DESERIALIZER_H_
6 #define V8_SNAPSHOT_DESERIALIZER_H_ 6 #define V8_SNAPSHOT_DESERIALIZER_H_
7 7
8 #include "src/heap/heap.h" 8 #include "src/heap/heap.h"
9 #include "src/objects.h" 9 #include "src/objects.h"
10 #include "src/snapshot/serializer-common.h" 10 #include "src/snapshot/serializer-common.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 45
46 ~Deserializer() override; 46 ~Deserializer() override;
47 47
48 // Deserialize the snapshot into an empty heap. 48 // Deserialize the snapshot into an empty heap.
49 void Deserialize(Isolate* isolate); 49 void Deserialize(Isolate* isolate);
50 50
51 // Deserialize a single object and the objects reachable from it. 51 // Deserialize a single object and the objects reachable from it.
52 MaybeHandle<Object> DeserializePartial( 52 MaybeHandle<Object> DeserializePartial(
53 Isolate* isolate, Handle<JSGlobalProxy> global_proxy, 53 Isolate* isolate, Handle<JSGlobalProxy> global_proxy,
54 v8::DeserializeInternalFieldsCallback internal_fields_deserializer); 54 v8::DeserializeEmbedderFieldsCallback embedder_fields_deserializer);
55 55
56 // Deserialize an object graph. Fail gracefully. 56 // Deserialize an object graph. Fail gracefully.
57 MaybeHandle<HeapObject> DeserializeObject(Isolate* isolate); 57 MaybeHandle<HeapObject> DeserializeObject(Isolate* isolate);
58 58
59 // Add an object to back an attached reference. The order to add objects must 59 // Add an object to back an attached reference. The order to add objects must
60 // mirror the order they are added in the serializer. 60 // mirror the order they are added in the serializer.
61 void AddAttachedObject(Handle<HeapObject> attached_object) { 61 void AddAttachedObject(Handle<HeapObject> attached_object) {
62 attached_objects_.Add(attached_object); 62 attached_objects_.Add(attached_object);
63 } 63 }
64 64
(...skipping 18 matching lines...) Expand all
83 83
84 void SetAlignment(byte data) { 84 void SetAlignment(byte data) {
85 DCHECK_EQ(kWordAligned, next_alignment_); 85 DCHECK_EQ(kWordAligned, next_alignment_);
86 int alignment = data - (kAlignmentPrefix - 1); 86 int alignment = data - (kAlignmentPrefix - 1);
87 DCHECK_LE(kWordAligned, alignment); 87 DCHECK_LE(kWordAligned, alignment);
88 DCHECK_LE(alignment, kDoubleUnaligned); 88 DCHECK_LE(alignment, kDoubleUnaligned);
89 next_alignment_ = static_cast<AllocationAlignment>(alignment); 89 next_alignment_ = static_cast<AllocationAlignment>(alignment);
90 } 90 }
91 91
92 void DeserializeDeferredObjects(); 92 void DeserializeDeferredObjects();
93 void DeserializeInternalFields( 93 void DeserializeEmbedderFields(
94 v8::DeserializeInternalFieldsCallback internal_fields_deserializer); 94 v8::DeserializeEmbedderFieldsCallback embedder_fields_deserializer);
95 95
96 void FlushICacheForNewIsolate(); 96 void FlushICacheForNewIsolate();
97 void FlushICacheForNewCodeObjectsAndRecordEmbeddedObjects(); 97 void FlushICacheForNewCodeObjectsAndRecordEmbeddedObjects();
98 98
99 void CommitPostProcessedObjects(Isolate* isolate); 99 void CommitPostProcessedObjects(Isolate* isolate);
100 100
101 // Fills in some heap data in an area from start to end (non-inclusive). The 101 // Fills in some heap data in an area from start to end (non-inclusive). The
102 // space id is used for the write barrier. The object_address is the address 102 // space id is used for the write barrier. The object_address is the address
103 // of the object we are writing into, or NULL if we are not writing into an 103 // of the object we are writing into, or NULL if we are not writing into an
104 // object, i.e. if we are writing a series of tagged values that are not on 104 // object, i.e. if we are writing a series of tagged values that are not on
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 150
151 AllocationAlignment next_alignment_; 151 AllocationAlignment next_alignment_;
152 152
153 DISALLOW_COPY_AND_ASSIGN(Deserializer); 153 DISALLOW_COPY_AND_ASSIGN(Deserializer);
154 }; 154 };
155 155
156 } // namespace internal 156 } // namespace internal
157 } // namespace v8 157 } // namespace v8
158 158
159 #endif // V8_SNAPSHOT_DESERIALIZER_H_ 159 #endif // V8_SNAPSHOT_DESERIALIZER_H_
OLDNEW
« no previous file with comments | « src/runtime/runtime-typedarray.cc ('k') | src/snapshot/deserializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698