OLD | NEW |
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 Loading... |
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 AddressToIndexHashMap* map_; | 26 AddressToIndexHashMap* map_; |
27 #ifdef DEBUG | 27 #ifdef DEBUG |
28 ExternalReferenceTable* table_; | 28 ExternalReferenceTable* table_; |
29 #endif // DEBUG | 29 #endif // DEBUG |
30 | 30 |
| 31 Isolate* isolate_; |
| 32 |
31 DISALLOW_COPY_AND_ASSIGN(ExternalReferenceEncoder); | 33 DISALLOW_COPY_AND_ASSIGN(ExternalReferenceEncoder); |
32 }; | 34 }; |
33 | 35 |
34 class HotObjectsList { | 36 class HotObjectsList { |
35 public: | 37 public: |
36 HotObjectsList() : index_(0) { | 38 HotObjectsList() : index_(0) { |
37 for (int i = 0; i < kSize; i++) circular_queue_[i] = NULL; | 39 for (int i = 0; i < kSize; i++) circular_queue_[i] = NULL; |
38 } | 40 } |
39 | 41 |
40 void Add(HeapObject* object) { | 42 void Add(HeapObject* object) { |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 | 296 |
295 byte* data_; | 297 byte* data_; |
296 int size_; | 298 int size_; |
297 bool owns_data_; | 299 bool owns_data_; |
298 }; | 300 }; |
299 | 301 |
300 } // namespace internal | 302 } // namespace internal |
301 } // namespace v8 | 303 } // namespace v8 |
302 | 304 |
303 #endif // V8_SNAPSHOT_SERIALIZER_COMMON_H_ | 305 #endif // V8_SNAPSHOT_SERIALIZER_COMMON_H_ |
OLD | NEW |