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

Side by Side Diff: src/snapshot/serializer-common.h

Issue 2010243003: Move hashmap into base/. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 6 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 | « src/snapshot/serializer.h ('k') | src/snapshot/serializer-common.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_SERIALIZER_COMMON_H_ 5 #ifndef V8_SNAPSHOT_SERIALIZER_COMMON_H_
6 #define V8_SNAPSHOT_SERIALIZER_COMMON_H_ 6 #define V8_SNAPSHOT_SERIALIZER_COMMON_H_
7 7
8 #include "src/address-map.h" 8 #include "src/address-map.h"
9 #include "src/external-reference-table.h" 9 #include "src/external-reference-table.h"
10 #include "src/globals.h" 10 #include "src/globals.h"
(...skipping 10 matching lines...) Expand all
21 uint32_t Encode(Address key) const; 21 uint32_t Encode(Address key) const;
22 22
23 const char* NameOfAddress(Isolate* isolate, Address address) const; 23 const char* NameOfAddress(Isolate* isolate, Address address) const;
24 24
25 private: 25 private:
26 static uint32_t Hash(Address key) { 26 static uint32_t Hash(Address key) {
27 return static_cast<uint32_t>(reinterpret_cast<uintptr_t>(key) >> 27 return static_cast<uint32_t>(reinterpret_cast<uintptr_t>(key) >>
28 kPointerSizeLog2); 28 kPointerSizeLog2);
29 } 29 }
30 30
31 HashMap* map_; 31 base::HashMap* map_;
32 32
33 DISALLOW_COPY_AND_ASSIGN(ExternalReferenceEncoder); 33 DISALLOW_COPY_AND_ASSIGN(ExternalReferenceEncoder);
34 }; 34 };
35 35
36 class HotObjectsList { 36 class HotObjectsList {
37 public: 37 public:
38 HotObjectsList() : index_(0) { 38 HotObjectsList() : index_(0) {
39 for (int i = 0; i < kSize; i++) circular_queue_[i] = NULL; 39 for (int i = 0; i < kSize; i++) circular_queue_[i] = NULL;
40 } 40 }
41 41
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 278
279 byte* data_; 279 byte* data_;
280 int size_; 280 int size_;
281 bool owns_data_; 281 bool owns_data_;
282 }; 282 };
283 283
284 } // namespace internal 284 } // namespace internal
285 } // namespace v8 285 } // namespace v8
286 286
287 #endif // V8_SNAPSHOT_SERIALIZER_COMMON_H_ 287 #endif // V8_SNAPSHOT_SERIALIZER_COMMON_H_
OLDNEW
« no previous file with comments | « src/snapshot/serializer.h ('k') | src/snapshot/serializer-common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698