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

Side by Side Diff: src/value-serializer.h

Issue 2336973004: ValueDeserializer: Pretenure objects while deserializing large objects. (Closed)
Patch Set: remove the anonymous namespace; it is superfluous here Created 4 years, 3 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/value-serializer.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_VALUE_SERIALIZER_H_ 5 #ifndef V8_VALUE_SERIALIZER_H_
6 #define V8_VALUE_SERIALIZER_H_ 6 #define V8_VALUE_SERIALIZER_H_
7 7
8 #include <cstdint> 8 #include <cstdint>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 SerializationTag end_tag); 217 SerializationTag end_tag);
218 218
219 // Manipulating the map from IDs to reified objects. 219 // Manipulating the map from IDs to reified objects.
220 bool HasObjectWithID(uint32_t id); 220 bool HasObjectWithID(uint32_t id);
221 MaybeHandle<JSReceiver> GetObjectWithID(uint32_t id); 221 MaybeHandle<JSReceiver> GetObjectWithID(uint32_t id);
222 void AddObjectWithID(uint32_t id, Handle<JSReceiver> object); 222 void AddObjectWithID(uint32_t id, Handle<JSReceiver> object);
223 223
224 Isolate* const isolate_; 224 Isolate* const isolate_;
225 const uint8_t* position_; 225 const uint8_t* position_;
226 const uint8_t* const end_; 226 const uint8_t* const end_;
227 PretenureFlag pretenure_;
227 uint32_t version_ = 0; 228 uint32_t version_ = 0;
228 uint32_t next_id_ = 0; 229 uint32_t next_id_ = 0;
229 230
230 // Always global handles. 231 // Always global handles.
231 Handle<SeededNumberDictionary> id_map_; 232 Handle<SeededNumberDictionary> id_map_;
232 MaybeHandle<SeededNumberDictionary> array_buffer_transfer_map_; 233 MaybeHandle<SeededNumberDictionary> array_buffer_transfer_map_;
233 234
234 DISALLOW_COPY_AND_ASSIGN(ValueDeserializer); 235 DISALLOW_COPY_AND_ASSIGN(ValueDeserializer);
235 }; 236 };
236 237
237 } // namespace internal 238 } // namespace internal
238 } // namespace v8 239 } // namespace v8
239 240
240 #endif // V8_VALUE_SERIALIZER_H_ 241 #endif // V8_VALUE_SERIALIZER_H_
OLDNEW
« no previous file with comments | « no previous file | src/value-serializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698