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 29 matching lines...) Expand all Loading... |
40 BUILTIN, | 40 BUILTIN, |
41 RUNTIME_FUNCTION, | 41 RUNTIME_FUNCTION, |
42 IC_UTILITY, | 42 IC_UTILITY, |
43 DEBUG_ADDRESS, | 43 DEBUG_ADDRESS, |
44 STATS_COUNTER, | 44 STATS_COUNTER, |
45 TOP_ADDRESS, | 45 TOP_ADDRESS, |
46 C_BUILTIN, | 46 C_BUILTIN, |
47 EXTENSION, | 47 EXTENSION, |
48 ACCESSOR, | 48 ACCESSOR, |
49 RUNTIME_ENTRY, | 49 RUNTIME_ENTRY, |
50 STUB_CACHE_TABLE | 50 STUB_CACHE_TABLE, |
| 51 LAZY_DEOPTIMIZATION |
51 }; | 52 }; |
52 | 53 |
53 const int kTypeCodeCount = STUB_CACHE_TABLE + 1; | 54 const int kTypeCodeCount = LAZY_DEOPTIMIZATION + 1; |
54 const int kFirstTypeCode = UNCLASSIFIED; | 55 const int kFirstTypeCode = UNCLASSIFIED; |
55 | 56 |
56 const int kReferenceIdBits = 16; | 57 const int kReferenceIdBits = 16; |
57 const int kReferenceIdMask = (1 << kReferenceIdBits) - 1; | 58 const int kReferenceIdMask = (1 << kReferenceIdBits) - 1; |
58 const int kReferenceTypeShift = kReferenceIdBits; | 59 const int kReferenceTypeShift = kReferenceIdBits; |
59 const int kDebugRegisterBits = 4; | 60 const int kDebugRegisterBits = 4; |
60 const int kDebugIdShift = kDebugRegisterBits; | 61 const int kDebugIdShift = kDebugRegisterBits; |
61 | 62 |
| 63 const int kDeoptTableSerializeEntryCount = 8; |
62 | 64 |
63 // ExternalReferenceTable is a helper class that defines the relationship | 65 // ExternalReferenceTable is a helper class that defines the relationship |
64 // between external references and their encodings. It is used to build | 66 // between external references and their encodings. It is used to build |
65 // hashmaps in ExternalReferenceEncoder and ExternalReferenceDecoder. | 67 // hashmaps in ExternalReferenceEncoder and ExternalReferenceDecoder. |
66 class ExternalReferenceTable { | 68 class ExternalReferenceTable { |
67 public: | 69 public: |
68 static ExternalReferenceTable* instance(Isolate* isolate); | 70 static ExternalReferenceTable* instance(Isolate* isolate); |
69 | 71 |
70 ~ExternalReferenceTable() { } | 72 ~ExternalReferenceTable() { } |
71 | 73 |
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 private: | 654 private: |
653 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) { | 655 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) { |
654 return false; | 656 return false; |
655 } | 657 } |
656 }; | 658 }; |
657 | 659 |
658 | 660 |
659 } } // namespace v8::internal | 661 } } // namespace v8::internal |
660 | 662 |
661 #endif // V8_SERIALIZE_H_ | 663 #endif // V8_SERIALIZE_H_ |
OLD | NEW |