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 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
600 String* source() { | 600 String* source() { |
601 DCHECK(!AllowHeapAllocation::IsAllowed()); | 601 DCHECK(!AllowHeapAllocation::IsAllowed()); |
602 return source_; | 602 return source_; |
603 } | 603 } |
604 | 604 |
605 List<uint32_t>* stub_keys() { return &stub_keys_; } | 605 List<uint32_t>* stub_keys() { return &stub_keys_; } |
606 | 606 |
607 private: | 607 private: |
608 void SerializeBuiltin(Code* builtin, HowToCode how_to_code, | 608 void SerializeBuiltin(Code* builtin, HowToCode how_to_code, |
609 WhereToPoint where_to_point, int skip); | 609 WhereToPoint where_to_point, int skip); |
610 void SerializeCodeStub(Code* code, HowToCode how_to_code, | 610 void SerializeCodeStub(Code* stub, HowToCode how_to_code, |
611 WhereToPoint where_to_point, int skip); | 611 WhereToPoint where_to_point, int skip); |
612 void SerializeSourceObject(HowToCode how_to_code, WhereToPoint where_to_point, | 612 void SerializeSourceObject(HowToCode how_to_code, WhereToPoint where_to_point, |
613 int skip); | 613 int skip); |
614 void SerializeHeapObject(HeapObject* heap_object, HowToCode how_to_code, | 614 void SerializeHeapObject(HeapObject* heap_object, HowToCode how_to_code, |
615 WhereToPoint where_to_point, int skip); | 615 WhereToPoint where_to_point, int skip); |
616 int AddCodeStubKey(uint32_t stub_key); | 616 int AddCodeStubKey(uint32_t stub_key); |
617 | 617 |
618 DisallowHeapAllocation no_gc_; | 618 DisallowHeapAllocation no_gc_; |
619 String* source_; | 619 String* source_; |
620 List<uint32_t> stub_keys_; | 620 List<uint32_t> stub_keys_; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 // Following the header, we store, in sequential order | 701 // Following the header, we store, in sequential order |
702 // - code stub keys | 702 // - code stub keys |
703 // - serialization payload | 703 // - serialization payload |
704 | 704 |
705 ScriptData* script_data_; | 705 ScriptData* script_data_; |
706 bool owns_script_data_; | 706 bool owns_script_data_; |
707 }; | 707 }; |
708 } } // namespace v8::internal | 708 } } // namespace v8::internal |
709 | 709 |
710 #endif // V8_SERIALIZE_H_ | 710 #endif // V8_SERIALIZE_H_ |
OLD | NEW |