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_PARTIAL_SERIALIZER_H_ | 5 #ifndef V8_SNAPSHOT_PARTIAL_SERIALIZER_H_ |
6 #define V8_SNAPSHOT_PARTIAL_SERIALIZER_H_ | 6 #define V8_SNAPSHOT_PARTIAL_SERIALIZER_H_ |
7 | 7 |
8 #include "src/address-map.h" | 8 #include "src/address-map.h" |
9 #include "src/snapshot/serializer.h" | 9 #include "src/snapshot/serializer.h" |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 DISALLOW_COPY_AND_ASSIGN(PartialCacheIndexMap); | 43 DISALLOW_COPY_AND_ASSIGN(PartialCacheIndexMap); |
44 }; | 44 }; |
45 | 45 |
46 void SerializeObject(HeapObject* o, HowToCode how_to_code, | 46 void SerializeObject(HeapObject* o, HowToCode how_to_code, |
47 WhereToPoint where_to_point, int skip) override; | 47 WhereToPoint where_to_point, int skip) override; |
48 | 48 |
49 int PartialSnapshotCacheIndex(HeapObject* o); | 49 int PartialSnapshotCacheIndex(HeapObject* o); |
50 bool ShouldBeInThePartialSnapshotCache(HeapObject* o); | 50 bool ShouldBeInThePartialSnapshotCache(HeapObject* o); |
51 | 51 |
52 Serializer* startup_serializer_; | 52 Serializer* startup_serializer_; |
53 Object* global_object_; | |
54 PartialCacheIndexMap partial_cache_index_map_; | 53 PartialCacheIndexMap partial_cache_index_map_; |
55 int next_partial_cache_index_; | 54 int next_partial_cache_index_; |
56 DISALLOW_COPY_AND_ASSIGN(PartialSerializer); | 55 DISALLOW_COPY_AND_ASSIGN(PartialSerializer); |
57 }; | 56 }; |
58 | 57 |
59 } // namespace internal | 58 } // namespace internal |
60 } // namespace v8 | 59 } // namespace v8 |
61 | 60 |
62 #endif // V8_SNAPSHOT_PARTIAL_SERIALIZER_H_ | 61 #endif // V8_SNAPSHOT_PARTIAL_SERIALIZER_H_ |
OLD | NEW |