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

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

Issue 2342293003: Use a plain FixedArray rather than a SeededNumberDictionary for ValueDeserializer::id_map_. (Closed)
Patch Set: IsTheHole 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 246
247 Isolate* const isolate_; 247 Isolate* const isolate_;
248 v8::ValueDeserializer::Delegate* const delegate_; 248 v8::ValueDeserializer::Delegate* const delegate_;
249 const uint8_t* position_; 249 const uint8_t* position_;
250 const uint8_t* const end_; 250 const uint8_t* const end_;
251 PretenureFlag pretenure_; 251 PretenureFlag pretenure_;
252 uint32_t version_ = 0; 252 uint32_t version_ = 0;
253 uint32_t next_id_ = 0; 253 uint32_t next_id_ = 0;
254 254
255 // Always global handles. 255 // Always global handles.
256 Handle<SeededNumberDictionary> id_map_; 256 Handle<FixedArray> id_map_;
257 MaybeHandle<SeededNumberDictionary> array_buffer_transfer_map_; 257 MaybeHandle<SeededNumberDictionary> array_buffer_transfer_map_;
258 258
259 DISALLOW_COPY_AND_ASSIGN(ValueDeserializer); 259 DISALLOW_COPY_AND_ASSIGN(ValueDeserializer);
260 }; 260 };
261 261
262 } // namespace internal 262 } // namespace internal
263 } // namespace v8 263 } // namespace v8
264 264
265 #endif // V8_VALUE_SERIALIZER_H_ 265 #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