OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 Object* Resolve(Address encoded_address); | 313 Object* Resolve(Address encoded_address); |
314 | 314 |
315 SnapshotReader reader_; | 315 SnapshotReader reader_; |
316 bool root_; // Deserializing a root? | 316 bool root_; // Deserializing a root? |
317 int roots_; // number of roots visited | 317 int roots_; // number of roots visited |
318 int objects_; // number of objects serialized | 318 int objects_; // number of objects serialized |
319 | 319 |
320 bool has_log_; // The file has log information. | 320 bool has_log_; // The file has log information. |
321 | 321 |
322 // Resolve caches the following: | 322 // Resolve caches the following: |
323 List<Page*> map_pages_; // All pages in the map space. | 323 List<Page*> map_pages_; // All pages in the map space. |
| 324 List<Page*> cell_pages_; // All pages in the cell space. |
324 List<Page*> old_pointer_pages_; // All pages in the old pointer space. | 325 List<Page*> old_pointer_pages_; // All pages in the old pointer space. |
325 List<Page*> old_data_pages_; // All pages in the old data space. | 326 List<Page*> old_data_pages_; // All pages in the old data space. |
326 List<Page*> code_pages_; | 327 List<Page*> code_pages_; // All pages in the code space. |
327 List<Object*> large_objects_; // All known large objects. | 328 List<Object*> large_objects_; // All known large objects. |
328 // A list of global handles at deserialization time. | 329 // A list of global handles at deserialization time. |
329 List<Object**> global_handles_; | 330 List<Object**> global_handles_; |
330 | 331 |
331 ExternalReferenceDecoder* reference_decoder_; | 332 ExternalReferenceDecoder* reference_decoder_; |
332 | 333 |
333 #ifdef DEBUG | 334 #ifdef DEBUG |
334 bool expect_debug_information_; | 335 bool expect_debug_information_; |
335 #endif | 336 #endif |
336 | 337 |
337 DISALLOW_COPY_AND_ASSIGN(Deserializer); | 338 DISALLOW_COPY_AND_ASSIGN(Deserializer); |
338 }; | 339 }; |
339 | 340 |
340 } } // namespace v8::internal | 341 } } // namespace v8::internal |
341 | 342 |
342 #endif // V8_SERIALIZE_H_ | 343 #endif // V8_SERIALIZE_H_ |
OLD | NEW |