| 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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 code_has_been_output_(false) { } | 515 code_has_been_output_(false) { } |
| 516 void Serialize(); | 516 void Serialize(); |
| 517 void VisitPointers(Object** start, Object** end); | 517 void VisitPointers(Object** start, Object** end); |
| 518 void VisitEmbeddedPointer(RelocInfo* target); | 518 void VisitEmbeddedPointer(RelocInfo* target); |
| 519 void VisitExternalReferences(Address* start, Address* end); | 519 void VisitExternalReferences(Address* start, Address* end); |
| 520 void VisitExternalReference(RelocInfo* rinfo); | 520 void VisitExternalReference(RelocInfo* rinfo); |
| 521 void VisitCodeTarget(RelocInfo* target); | 521 void VisitCodeTarget(RelocInfo* target); |
| 522 void VisitCodeEntry(Address entry_address); | 522 void VisitCodeEntry(Address entry_address); |
| 523 void VisitGlobalPropertyCell(RelocInfo* rinfo); | 523 void VisitGlobalPropertyCell(RelocInfo* rinfo); |
| 524 void VisitRuntimeEntry(RelocInfo* reloc); | 524 void VisitRuntimeEntry(RelocInfo* reloc); |
| 525 // Used for seralizing the external strings that hold the natives source. | 525 // Used for serializing the external strings that hold the natives source. |
| 526 void VisitExternalAsciiString( | 526 void VisitExternalAsciiString( |
| 527 v8::String::ExternalAsciiStringResource** resource); | 527 v8::String::ExternalAsciiStringResource** resource); |
| 528 // We can't serialize a heap with external two byte strings. | 528 // We can't serialize a heap with external two byte strings. |
| 529 void VisitExternalTwoByteString( | 529 void VisitExternalTwoByteString( |
| 530 v8::String::ExternalStringResource** resource) { | 530 v8::String::ExternalStringResource** resource) { |
| 531 UNREACHABLE(); | 531 UNREACHABLE(); |
| 532 } | 532 } |
| 533 | 533 |
| 534 private: | 534 private: |
| 535 enum ReturnSkip { kCanReturnSkipInsteadOfSkipping, kIgnoringReturn }; | 535 enum ReturnSkip { kCanReturnSkipInsteadOfSkipping, kIgnoringReturn }; |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 private: | 654 private: |
| 655 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) { | 655 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) { |
| 656 return false; | 656 return false; |
| 657 } | 657 } |
| 658 }; | 658 }; |
| 659 | 659 |
| 660 | 660 |
| 661 } } // namespace v8::internal | 661 } } // namespace v8::internal |
| 662 | 662 |
| 663 #endif // V8_SERIALIZE_H_ | 663 #endif // V8_SERIALIZE_H_ |
| OLD | NEW |