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

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

Issue 2452333002: [serializer] introduce API to serialize internal fields (Closed)
Patch Set: Created 4 years, 1 month 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
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 void SetAlignment(byte data) { 82 void SetAlignment(byte data) {
83 DCHECK_EQ(kWordAligned, next_alignment_); 83 DCHECK_EQ(kWordAligned, next_alignment_);
84 int alignment = data - (kAlignmentPrefix - 1); 84 int alignment = data - (kAlignmentPrefix - 1);
85 DCHECK_LE(kWordAligned, alignment); 85 DCHECK_LE(kWordAligned, alignment);
86 DCHECK_LE(alignment, kSimd128Unaligned); 86 DCHECK_LE(alignment, kSimd128Unaligned);
87 next_alignment_ = static_cast<AllocationAlignment>(alignment); 87 next_alignment_ = static_cast<AllocationAlignment>(alignment);
88 } 88 }
89 89
90 void DeserializeDeferredObjects(); 90 void DeserializeDeferredObjects();
91 void DeserializeInternalFields();
91 92
92 void FlushICacheForNewIsolate(); 93 void FlushICacheForNewIsolate();
93 void FlushICacheForNewCodeObjectsAndRecordEmbeddedObjects(); 94 void FlushICacheForNewCodeObjectsAndRecordEmbeddedObjects();
94 95
95 void CommitPostProcessedObjects(Isolate* isolate); 96 void CommitPostProcessedObjects(Isolate* isolate);
96 97
97 // Fills in some heap data in an area from start to end (non-inclusive). The 98 // Fills in some heap data in an area from start to end (non-inclusive). The
98 // space id is used for the write barrier. The object_address is the address 99 // space id is used for the write barrier. The object_address is the address
99 // of the object we are writing into, or NULL if we are not writing into an 100 // of the object we are writing into, or NULL if we are not writing into an
100 // object, i.e. if we are writing a series of tagged values that are not on 101 // object, i.e. if we are writing a series of tagged values that are not on
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 145
145 AllocationAlignment next_alignment_; 146 AllocationAlignment next_alignment_;
146 147
147 DISALLOW_COPY_AND_ASSIGN(Deserializer); 148 DISALLOW_COPY_AND_ASSIGN(Deserializer);
148 }; 149 };
149 150
150 } // namespace internal 151 } // namespace internal
151 } // namespace v8 152 } // namespace v8
152 153
153 #endif // V8_SNAPSHOT_DESERIALIZER_H_ 154 #endif // V8_SNAPSHOT_DESERIALIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698