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_SNAPSHOT_SERIALIZE_H_ | 5 #ifndef V8_SNAPSHOT_SERIALIZE_H_ |
6 #define V8_SNAPSHOT_SERIALIZE_H_ | 6 #define V8_SNAPSHOT_SERIALIZE_H_ |
7 | 7 |
8 #include "src/address-map.h" | 8 #include "src/address-map.h" |
9 #include "src/heap/heap.h" | 9 #include "src/heap/heap.h" |
10 #include "src/objects.h" | 10 #include "src/objects.h" |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 static const int kNop = 0x3d; | 214 static const int kNop = 0x3d; |
215 // Move to next reserved chunk. | 215 // Move to next reserved chunk. |
216 static const int kNextChunk = 0x3e; | 216 static const int kNextChunk = 0x3e; |
217 // Deferring object content. | 217 // Deferring object content. |
218 static const int kDeferred = 0x3f; | 218 static const int kDeferred = 0x3f; |
219 // Used for the source code of the natives, which is in the executable, but | 219 // Used for the source code of the natives, which is in the executable, but |
220 // is referred to from external strings in the snapshot. | 220 // is referred to from external strings in the snapshot. |
221 static const int kNativesStringResource = 0x5d; | 221 static const int kNativesStringResource = 0x5d; |
222 // Used for the source code for compiled stubs, which is in the executable, | 222 // Used for the source code for compiled stubs, which is in the executable, |
223 // but is referred to from external strings in the snapshot. | 223 // but is referred to from external strings in the snapshot. |
224 static const int kCodeStubNativesStringResource = 0x5e; | 224 static const int kExtraNativesStringResource = 0x5e; |
225 // Used for the source code for V8 extras, which is in the executable, | |
226 // but is referred to from external strings in the snapshot. | |
227 static const int kExtraNativesStringResource = 0x5f; | |
228 // A tag emitted at strategic points in the snapshot to delineate sections. | 225 // A tag emitted at strategic points in the snapshot to delineate sections. |
229 // If the deserializer does not find these at the expected moments then it | 226 // If the deserializer does not find these at the expected moments then it |
230 // is an indication that the snapshot and the VM do not fit together. | 227 // is an indication that the snapshot and the VM do not fit together. |
231 // Examine the build process for architecture, version or configuration | 228 // Examine the build process for architecture, version or configuration |
232 // mismatches. | 229 // mismatches. |
233 static const int kSynchronize = 0x17; | 230 static const int kSynchronize = 0x17; |
234 // Repeats of variable length. | 231 // Repeats of variable length. |
235 static const int kVariableRepeat = 0x37; | 232 static const int kVariableRepeat = 0x37; |
236 // Raw data of variable length. | 233 // Raw data of variable length. |
237 static const int kVariableRawData = 0x57; | 234 static const int kVariableRawData = 0x57; |
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
815 static const int kNumCodeStubKeysOffset = kNumReservationsOffset + kInt32Size; | 812 static const int kNumCodeStubKeysOffset = kNumReservationsOffset + kInt32Size; |
816 static const int kPayloadLengthOffset = kNumCodeStubKeysOffset + kInt32Size; | 813 static const int kPayloadLengthOffset = kNumCodeStubKeysOffset + kInt32Size; |
817 static const int kChecksum1Offset = kPayloadLengthOffset + kInt32Size; | 814 static const int kChecksum1Offset = kPayloadLengthOffset + kInt32Size; |
818 static const int kChecksum2Offset = kChecksum1Offset + kInt32Size; | 815 static const int kChecksum2Offset = kChecksum1Offset + kInt32Size; |
819 static const int kHeaderSize = kChecksum2Offset + kInt32Size; | 816 static const int kHeaderSize = kChecksum2Offset + kInt32Size; |
820 }; | 817 }; |
821 } // namespace internal | 818 } // namespace internal |
822 } // namespace v8 | 819 } // namespace v8 |
823 | 820 |
824 #endif // V8_SNAPSHOT_SERIALIZE_H_ | 821 #endif // V8_SNAPSHOT_SERIALIZE_H_ |
OLD | NEW |