| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 virtual void VisitPointers(Object** start, Object** end); | 340 virtual void VisitPointers(Object** start, Object** end); |
| 341 | 341 |
| 342 virtual void VisitExternalReferences(Address* start, Address* end) { | 342 virtual void VisitExternalReferences(Address* start, Address* end) { |
| 343 UNREACHABLE(); | 343 UNREACHABLE(); |
| 344 } | 344 } |
| 345 | 345 |
| 346 virtual void VisitRuntimeEntry(RelocInfo* rinfo) { | 346 virtual void VisitRuntimeEntry(RelocInfo* rinfo) { |
| 347 UNREACHABLE(); | 347 UNREACHABLE(); |
| 348 } | 348 } |
| 349 | 349 |
| 350 // Allocation sites are present in the snapshot, and must be linked into |
| 351 // a list at deserialization time. |
| 352 void RelinkAllocationSite(AllocationSite* site); |
| 353 |
| 350 // Fills in some heap data in an area from start to end (non-inclusive). The | 354 // Fills in some heap data in an area from start to end (non-inclusive). The |
| 351 // space id is used for the write barrier. The object_address is the address | 355 // space id is used for the write barrier. The object_address is the address |
| 352 // of the object we are writing into, or NULL if we are not writing into an | 356 // of the object we are writing into, or NULL if we are not writing into an |
| 353 // object, i.e. if we are writing a series of tagged values that are not on | 357 // object, i.e. if we are writing a series of tagged values that are not on |
| 354 // the heap. | 358 // the heap. |
| 355 void ReadChunk( | 359 void ReadChunk( |
| 356 Object** start, Object** end, int space, Address object_address); | 360 Object** start, Object** end, int space, Address object_address); |
| 357 void ReadObject(int space_number, Object** write_back); | 361 void ReadObject(int space_number, Object** write_back); |
| 358 | 362 |
| 359 // This routine both allocates a new object, and also keeps | 363 // This routine both allocates a new object, and also keeps |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 private: | 657 private: |
| 654 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) { | 658 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) { |
| 655 return false; | 659 return false; |
| 656 } | 660 } |
| 657 }; | 661 }; |
| 658 | 662 |
| 659 | 663 |
| 660 } } // namespace v8::internal | 664 } } // namespace v8::internal |
| 661 | 665 |
| 662 #endif // V8_SERIALIZE_H_ | 666 #endif // V8_SERIALIZE_H_ |
| OLD | NEW |