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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 virtual void VisitPointers(Object** start, Object** end); | 349 virtual void VisitPointers(Object** start, Object** end); |
350 | 350 |
351 virtual void VisitExternalReferences(Address* start, Address* end) { | 351 virtual void VisitExternalReferences(Address* start, Address* end) { |
352 UNREACHABLE(); | 352 UNREACHABLE(); |
353 } | 353 } |
354 | 354 |
355 virtual void VisitRuntimeEntry(RelocInfo* rinfo) { | 355 virtual void VisitRuntimeEntry(RelocInfo* rinfo) { |
356 UNREACHABLE(); | 356 UNREACHABLE(); |
357 } | 357 } |
358 | 358 |
359 void ReadChunk(Object** start, Object** end, int space, Address address); | 359 // Fills in some heap data in an area from start to end (non-inclusive). The |
| 360 // space id is used for the write barrier. The object_address is the address |
| 361 // of the object we are writing into, or NULL if we are not writing into an |
| 362 // object, ie if we are writing a series of tagged values that are not on the |
| 363 // heap. |
| 364 void ReadChunk( |
| 365 Object** start, Object** end, int space, Address object_address); |
360 HeapObject* GetAddressFromStart(int space); | 366 HeapObject* GetAddressFromStart(int space); |
361 inline HeapObject* GetAddressFromEnd(int space); | 367 inline HeapObject* GetAddressFromEnd(int space); |
362 Address Allocate(int space_number, Space* space, int size); | 368 Address Allocate(int space_number, Space* space, int size); |
363 void ReadObject(int space_number, Space* space, Object** write_back); | 369 void ReadObject(int space_number, Space* space, Object** write_back); |
364 | 370 |
365 // Cached current isolate. | 371 // Cached current isolate. |
366 Isolate* isolate_; | 372 Isolate* isolate_; |
367 | 373 |
368 // Keep track of the pages in the paged spaces. | 374 // Keep track of the pages in the paged spaces. |
369 // (In large object space we are keeping track of individual objects | 375 // (In large object space we are keeping track of individual objects |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
638 private: | 644 private: |
639 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) { | 645 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) { |
640 return false; | 646 return false; |
641 } | 647 } |
642 }; | 648 }; |
643 | 649 |
644 | 650 |
645 } } // namespace v8::internal | 651 } } // namespace v8::internal |
646 | 652 |
647 #endif // V8_SERIALIZE_H_ | 653 #endif // V8_SERIALIZE_H_ |
OLD | NEW |