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

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

Issue 2200333004: [serializer][heap] Record references in deserialized code objects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Comments Created 4 years, 4 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 | « no previous file | 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/snapshot/deserializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698