OLD | NEW |
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 DCHECK_EQ(kWordAligned, next_alignment_); | 82 DCHECK_EQ(kWordAligned, next_alignment_); |
83 int alignment = data - (kAlignmentPrefix - 1); | 83 int alignment = data - (kAlignmentPrefix - 1); |
84 DCHECK_LE(kWordAligned, alignment); | 84 DCHECK_LE(kWordAligned, alignment); |
85 DCHECK_LE(alignment, kSimd128Unaligned); | 85 DCHECK_LE(alignment, kSimd128Unaligned); |
86 next_alignment_ = static_cast<AllocationAlignment>(alignment); | 86 next_alignment_ = static_cast<AllocationAlignment>(alignment); |
87 } | 87 } |
88 | 88 |
89 void DeserializeDeferredObjects(); | 89 void DeserializeDeferredObjects(); |
90 | 90 |
91 void FlushICacheForNewIsolate(); | 91 void FlushICacheForNewIsolate(); |
92 void FlushICacheForNewCodeObjects(); | 92 void FlushICacheForNewCodeObjectsAndRecordEmbeddedObjects(); |
93 | 93 |
94 void CommitPostProcessedObjects(Isolate* isolate); | 94 void CommitPostProcessedObjects(Isolate* isolate); |
95 | 95 |
96 // Fills in some heap data in an area from start to end (non-inclusive). The | 96 // Fills in some heap data in an area from start to end (non-inclusive). The |
97 // space id is used for the write barrier. The object_address is the address | 97 // space id is used for the write barrier. The object_address is the address |
98 // of the object we are writing into, or NULL if we are not writing into an | 98 // of the object we are writing into, or NULL if we are not writing into an |
99 // object, i.e. if we are writing a series of tagged values that are not on | 99 // object, i.e. if we are writing a series of tagged values that are not on |
100 // the heap. Return false if the object content has been deferred. | 100 // the heap. Return false if the object content has been deferred. |
101 bool ReadData(Object** start, Object** end, int space, | 101 bool ReadData(Object** start, Object** end, int space, |
102 Address object_address); | 102 Address object_address); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 141 |
142 AllocationAlignment next_alignment_; | 142 AllocationAlignment next_alignment_; |
143 | 143 |
144 DISALLOW_COPY_AND_ASSIGN(Deserializer); | 144 DISALLOW_COPY_AND_ASSIGN(Deserializer); |
145 }; | 145 }; |
146 | 146 |
147 } // namespace internal | 147 } // namespace internal |
148 } // namespace v8 | 148 } // namespace v8 |
149 | 149 |
150 #endif // V8_SNAPSHOT_DESERIALIZER_H_ | 150 #endif // V8_SNAPSHOT_DESERIALIZER_H_ |
OLD | NEW |