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/hashmap.h" | 8 #include "src/hashmap.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 16 matching lines...) Expand all Loading... |
27 LAZY_DEOPTIMIZATION | 27 LAZY_DEOPTIMIZATION |
28 }; | 28 }; |
29 | 29 |
30 const int kTypeCodeCount = LAZY_DEOPTIMIZATION + 1; | 30 const int kTypeCodeCount = LAZY_DEOPTIMIZATION + 1; |
31 const int kFirstTypeCode = UNCLASSIFIED; | 31 const int kFirstTypeCode = UNCLASSIFIED; |
32 | 32 |
33 const int kReferenceIdBits = 16; | 33 const int kReferenceIdBits = 16; |
34 const int kReferenceIdMask = (1 << kReferenceIdBits) - 1; | 34 const int kReferenceIdMask = (1 << kReferenceIdBits) - 1; |
35 const int kReferenceTypeShift = kReferenceIdBits; | 35 const int kReferenceTypeShift = kReferenceIdBits; |
36 | 36 |
37 const int kDeoptTableSerializeEntryCount = 12; | 37 const int kDeoptTableSerializeEntryCount = 64; |
38 | 38 |
39 // ExternalReferenceTable is a helper class that defines the relationship | 39 // ExternalReferenceTable is a helper class that defines the relationship |
40 // between external references and their encodings. It is used to build | 40 // between external references and their encodings. It is used to build |
41 // hashmaps in ExternalReferenceEncoder and ExternalReferenceDecoder. | 41 // hashmaps in ExternalReferenceEncoder and ExternalReferenceDecoder. |
42 class ExternalReferenceTable { | 42 class ExternalReferenceTable { |
43 public: | 43 public: |
44 static ExternalReferenceTable* instance(Isolate* isolate); | 44 static ExternalReferenceTable* instance(Isolate* isolate); |
45 | 45 |
46 ~ExternalReferenceTable() { } | 46 ~ExternalReferenceTable() { } |
47 | 47 |
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 private: | 629 private: |
630 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) { | 630 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) { |
631 return false; | 631 return false; |
632 } | 632 } |
633 }; | 633 }; |
634 | 634 |
635 | 635 |
636 } } // namespace v8::internal | 636 } } // namespace v8::internal |
637 | 637 |
638 #endif // V8_SERIALIZE_H_ | 638 #endif // V8_SERIALIZE_H_ |
OLD | NEW |