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 2868103002: [deserializer] Make large object deserialization GC safe (Closed)
Patch Set: 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
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 DCHECK_LE(alignment, kDoubleUnaligned); 86 DCHECK_LE(alignment, kDoubleUnaligned);
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 DeserializeEmbedderFields( 91 void DeserializeEmbedderFields(
92 v8::DeserializeEmbedderFieldsCallback embedder_fields_deserializer); 92 v8::DeserializeEmbedderFieldsCallback embedder_fields_deserializer);
93 93
94 void FlushICacheForNewIsolate(); 94 void FlushICacheForNewIsolate();
95 void FlushICacheForNewCodeObjectsAndRecordEmbeddedObjects(); 95 void FlushICacheForNewCodeObjectsAndRecordEmbeddedObjects();
96 void RecordWritesForLargeObjects();
96 97
97 void CommitPostProcessedObjects(Isolate* isolate); 98 void CommitPostProcessedObjects(Isolate* isolate);
98 99
99 void PrintDisassembledCodeObjects(); 100 void PrintDisassembledCodeObjects();
100 101
101 // Fills in some heap data in an area from start to end (non-inclusive). The 102 // 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 103 // 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 104 // 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 105 // object, i.e. if we are writing a series of tagged values that are not on
105 // the heap. Return false if the object content has been deferred. 106 // the heap. Return false if the object content has been deferred.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 148
148 AllocationAlignment next_alignment_; 149 AllocationAlignment next_alignment_;
149 150
150 DISALLOW_COPY_AND_ASSIGN(Deserializer); 151 DISALLOW_COPY_AND_ASSIGN(Deserializer);
151 }; 152 };
152 153
153 } // namespace internal 154 } // namespace internal
154 } // namespace v8 155 } // namespace v8
155 156
156 #endif // V8_SNAPSHOT_DESERIALIZER_H_ 157 #endif // V8_SNAPSHOT_DESERIALIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698