| OLD | NEW |
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 virtual void VisitRuntimeEntry(RelocInfo* rinfo) { | 306 virtual void VisitRuntimeEntry(RelocInfo* rinfo) { |
| 307 UNREACHABLE(); | 307 UNREACHABLE(); |
| 308 } | 308 } |
| 309 | 309 |
| 310 void ReadChunk(Object** start, Object** end, int space, Address address); | 310 void ReadChunk(Object** start, Object** end, int space, Address address); |
| 311 HeapObject* GetAddressFromStart(int space); | 311 HeapObject* GetAddressFromStart(int space); |
| 312 inline HeapObject* GetAddressFromEnd(int space); | 312 inline HeapObject* GetAddressFromEnd(int space); |
| 313 Address Allocate(int space_number, Space* space, int size); | 313 Address Allocate(int space_number, Space* space, int size); |
| 314 void ReadObject(int space_number, Space* space, Object** write_back); | 314 void ReadObject(int space_number, Space* space, Object** write_back); |
| 315 | 315 |
| 316 // Cached current isolate. |
| 317 Isolate* isolate_; |
| 318 |
| 316 // Keep track of the pages in the paged spaces. | 319 // Keep track of the pages in the paged spaces. |
| 317 // (In large object space we are keeping track of individual objects | 320 // (In large object space we are keeping track of individual objects |
| 318 // rather than pages.) In new space we just need the address of the | 321 // rather than pages.) In new space we just need the address of the |
| 319 // first object and the others will flow from that. | 322 // first object and the others will flow from that. |
| 320 List<Address> pages_[SerializerDeserializer::kNumberOfSpaces]; | 323 List<Address> pages_[SerializerDeserializer::kNumberOfSpaces]; |
| 321 | 324 |
| 322 SnapshotByteSource* source_; | 325 SnapshotByteSource* source_; |
| 323 // This is the address of the next object that will be allocated in each | 326 // This is the address of the next object that will be allocated in each |
| 324 // space. It is used to calculate the addresses of back-references. | 327 // space. It is used to calculate the addresses of back-references. |
| 325 Address high_water_[LAST_SPACE + 1]; | 328 Address high_water_[LAST_SPACE + 1]; |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 576 virtual int RootIndex(HeapObject* o) { return kInvalidRootIndex; } | 579 virtual int RootIndex(HeapObject* o) { return kInvalidRootIndex; } |
| 577 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) { | 580 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) { |
| 578 return false; | 581 return false; |
| 579 } | 582 } |
| 580 }; | 583 }; |
| 581 | 584 |
| 582 | 585 |
| 583 } } // namespace v8::internal | 586 } } // namespace v8::internal |
| 584 | 587 |
| 585 #endif // V8_SERIALIZE_H_ | 588 #endif // V8_SERIALIZE_H_ |
| OLD | NEW |