| 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_DESERIALIZER_H_ | 5 #ifndef V8_SNAPSHOT_DESERIALIZER_H_ |
| 6 #define V8_SNAPSHOT_DESERIALIZER_H_ | 6 #define V8_SNAPSHOT_DESERIALIZER_H_ |
| 7 | 7 |
| 8 #include "src/heap/heap.h" | 8 #include "src/heap/heap.h" |
| 9 #include "src/objects.h" | 9 #include "src/objects.h" |
| 10 #include "src/snapshot/serializer-common.h" | 10 #include "src/snapshot/serializer-common.h" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 void ReadObject(int space_number, Object** write_back); | 110 void ReadObject(int space_number, Object** write_back); |
| 111 Address Allocate(int space_index, int size); | 111 Address Allocate(int space_index, int size); |
| 112 | 112 |
| 113 // Special handling for serialized code like hooking up internalized strings. | 113 // Special handling for serialized code like hooking up internalized strings. |
| 114 HeapObject* PostProcessNewObject(HeapObject* obj, int space); | 114 HeapObject* PostProcessNewObject(HeapObject* obj, int space); |
| 115 | 115 |
| 116 // This returns the address of an object that has been described in the | 116 // This returns the address of an object that has been described in the |
| 117 // snapshot by chunk index and offset. | 117 // snapshot by chunk index and offset. |
| 118 HeapObject* GetBackReferencedObject(int space); | 118 HeapObject* GetBackReferencedObject(int space); |
| 119 | 119 |
| 120 Object** CopyInNativesSource(Vector<const char> source_vector, | |
| 121 Object** current); | |
| 122 | |
| 123 // Cached current isolate. | 120 // Cached current isolate. |
| 124 Isolate* isolate_; | 121 Isolate* isolate_; |
| 125 | 122 |
| 126 // Objects from the attached object descriptions in the serialized user code. | 123 // Objects from the attached object descriptions in the serialized user code. |
| 127 List<Handle<HeapObject> > attached_objects_; | 124 List<Handle<HeapObject> > attached_objects_; |
| 128 | 125 |
| 129 SnapshotByteSource source_; | 126 SnapshotByteSource source_; |
| 130 uint32_t magic_number_; | 127 uint32_t magic_number_; |
| 131 uint32_t num_extra_references_; | 128 uint32_t num_extra_references_; |
| 132 | 129 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 152 | 149 |
| 153 AllocationAlignment next_alignment_; | 150 AllocationAlignment next_alignment_; |
| 154 | 151 |
| 155 DISALLOW_COPY_AND_ASSIGN(Deserializer); | 152 DISALLOW_COPY_AND_ASSIGN(Deserializer); |
| 156 }; | 153 }; |
| 157 | 154 |
| 158 } // namespace internal | 155 } // namespace internal |
| 159 } // namespace v8 | 156 } // namespace v8 |
| 160 | 157 |
| 161 #endif // V8_SNAPSHOT_DESERIALIZER_H_ | 158 #endif // V8_SNAPSHOT_DESERIALIZER_H_ |
| OLD | NEW |