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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 sink_(sink), | 513 sink_(sink), |
514 reference_representation_(how_to_code + where_to_point), | 514 reference_representation_(how_to_code + where_to_point), |
515 bytes_processed_so_far_(0), | 515 bytes_processed_so_far_(0), |
516 code_object_(o->IsCode()), | 516 code_object_(o->IsCode()), |
517 code_has_been_output_(false) { } | 517 code_has_been_output_(false) { } |
518 void Serialize(); | 518 void Serialize(); |
519 void VisitPointers(Object** start, Object** end); | 519 void VisitPointers(Object** start, Object** end); |
520 void VisitEmbeddedPointer(RelocInfo* target); | 520 void VisitEmbeddedPointer(RelocInfo* target); |
521 void VisitExternalReference(Address* p); | 521 void VisitExternalReference(Address* p); |
522 void VisitExternalReference(RelocInfo* rinfo); | 522 void VisitExternalReference(RelocInfo* rinfo); |
| 523 void VisitCodeTarget(Address target); |
523 void VisitCodeTarget(RelocInfo* target); | 524 void VisitCodeTarget(RelocInfo* target); |
524 void VisitCodeEntry(Address entry_address); | 525 void VisitCodeEntry(Address entry_address); |
525 void VisitCell(RelocInfo* rinfo); | 526 void VisitCell(RelocInfo* rinfo); |
526 void VisitRuntimeEntry(RelocInfo* reloc); | 527 void VisitRuntimeEntry(RelocInfo* reloc); |
527 // Used for seralizing the external strings that hold the natives source. | 528 // Used for seralizing the external strings that hold the natives source. |
528 void VisitExternalAsciiString( | 529 void VisitExternalAsciiString( |
529 v8::String::ExternalAsciiStringResource** resource); | 530 v8::String::ExternalAsciiStringResource** resource); |
530 // We can't serialize a heap with external two byte strings. | 531 // We can't serialize a heap with external two byte strings. |
531 void VisitExternalTwoByteString( | 532 void VisitExternalTwoByteString( |
532 v8::String::ExternalStringResource** resource) { | 533 v8::String::ExternalStringResource** resource) { |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 private: | 664 private: |
664 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) { | 665 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) { |
665 return false; | 666 return false; |
666 } | 667 } |
667 }; | 668 }; |
668 | 669 |
669 | 670 |
670 } } // namespace v8::internal | 671 } } // namespace v8::internal |
671 | 672 |
672 #endif // V8_SERIALIZE_H_ | 673 #endif // V8_SERIALIZE_H_ |
OLD | NEW |