| OLD | NEW |
| 1 // Copyright 2006-2009 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 |
| 11 // with the distribution. | 11 // with the distribution. |
| (...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 static bool serialization_enabled_; | 574 static bool serialization_enabled_; |
| 575 // Did we already make use of the fact that serialization was not enabled? | 575 // Did we already make use of the fact that serialization was not enabled? |
| 576 static bool too_late_to_enable_now_; | 576 static bool too_late_to_enable_now_; |
| 577 int large_object_total_; | 577 int large_object_total_; |
| 578 SerializationAddressMapper address_mapper_; | 578 SerializationAddressMapper address_mapper_; |
| 579 intptr_t root_index_wave_front_; | 579 intptr_t root_index_wave_front_; |
| 580 | 580 |
| 581 friend class ObjectSerializer; | 581 friend class ObjectSerializer; |
| 582 friend class Deserializer; | 582 friend class Deserializer; |
| 583 | 583 |
| 584 private: |
| 584 DISALLOW_COPY_AND_ASSIGN(Serializer); | 585 DISALLOW_COPY_AND_ASSIGN(Serializer); |
| 585 }; | 586 }; |
| 586 | 587 |
| 587 | 588 |
| 588 class PartialSerializer : public Serializer { | 589 class PartialSerializer : public Serializer { |
| 589 public: | 590 public: |
| 590 PartialSerializer(Serializer* startup_snapshot_serializer, | 591 PartialSerializer(Serializer* startup_snapshot_serializer, |
| 591 SnapshotByteSink* sink) | 592 SnapshotByteSink* sink) |
| 592 : Serializer(sink), | 593 : Serializer(sink), |
| 593 startup_serializer_(startup_snapshot_serializer) { | 594 startup_serializer_(startup_snapshot_serializer) { |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 646 private: | 647 private: |
| 647 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) { | 648 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) { |
| 648 return false; | 649 return false; |
| 649 } | 650 } |
| 650 }; | 651 }; |
| 651 | 652 |
| 652 | 653 |
| 653 } } // namespace v8::internal | 654 } } // namespace v8::internal |
| 654 | 655 |
| 655 #endif // V8_SERIALIZE_H_ | 656 #endif // V8_SERIALIZE_H_ |
| OLD | NEW |