OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_SERIALIZE_H_ | 5 #ifndef V8_SERIALIZE_H_ |
6 #define V8_SERIALIZE_H_ | 6 #define V8_SERIALIZE_H_ |
7 | 7 |
8 #include "src/compiler.h" | 8 #include "src/compiler.h" |
9 #include "src/hashmap.h" | 9 #include "src/hashmap.h" |
10 #include "src/heap-profiler.h" | 10 #include "src/heap-profiler.h" |
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
660 virtual void SerializeObject(HeapObject* o, HowToCode how_to_code, | 660 virtual void SerializeObject(HeapObject* o, HowToCode how_to_code, |
661 WhereToPoint where_to_point, int skip); | 661 WhereToPoint where_to_point, int skip); |
662 void SerializeWeakReferences(); | 662 void SerializeWeakReferences(); |
663 void Serialize() { | 663 void Serialize() { |
664 SerializeStrongReferences(); | 664 SerializeStrongReferences(); |
665 SerializeWeakReferences(); | 665 SerializeWeakReferences(); |
666 Pad(); | 666 Pad(); |
667 } | 667 } |
668 | 668 |
669 private: | 669 private: |
670 int root_index_wave_front_; | 670 intptr_t root_index_wave_front_; |
671 DISALLOW_COPY_AND_ASSIGN(StartupSerializer); | 671 DISALLOW_COPY_AND_ASSIGN(StartupSerializer); |
672 }; | 672 }; |
673 | 673 |
674 | 674 |
675 class CodeSerializer : public Serializer { | 675 class CodeSerializer : public Serializer { |
676 public: | 676 public: |
677 static ScriptData* Serialize(Isolate* isolate, | 677 static ScriptData* Serialize(Isolate* isolate, |
678 Handle<SharedFunctionInfo> info, | 678 Handle<SharedFunctionInfo> info, |
679 Handle<String> source); | 679 Handle<String> source); |
680 | 680 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
827 // Following the header, we store, in sequential order | 827 // Following the header, we store, in sequential order |
828 // - code stub keys | 828 // - code stub keys |
829 // - serialization payload | 829 // - serialization payload |
830 | 830 |
831 ScriptData* script_data_; | 831 ScriptData* script_data_; |
832 bool owns_script_data_; | 832 bool owns_script_data_; |
833 }; | 833 }; |
834 } } // namespace v8::internal | 834 } } // namespace v8::internal |
835 | 835 |
836 #endif // V8_SERIALIZE_H_ | 836 #endif // V8_SERIALIZE_H_ |
OLD | NEW |