| 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/hashmap.h" | 8 #include "src/hashmap.h" |
| 9 #include "src/heap-profiler.h" | 9 #include "src/heap-profiler.h" |
| 10 #include "src/isolate.h" | 10 #include "src/isolate.h" |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 // ---------- Misc ---------- | 366 // ---------- Misc ---------- |
| 367 // Skip. | 367 // Skip. |
| 368 static const int kSkip = 0x1d; | 368 static const int kSkip = 0x1d; |
| 369 // Internal reference encoded as offsets of pc and target from code entry. | 369 // Internal reference encoded as offsets of pc and target from code entry. |
| 370 static const int kInternalReference = 0x1e; | 370 static const int kInternalReference = 0x1e; |
| 371 static const int kInternalReferenceEncoded = 0x1f; | 371 static const int kInternalReferenceEncoded = 0x1f; |
| 372 // Do nothing, used for padding. | 372 // Do nothing, used for padding. |
| 373 static const int kNop = 0x3d; | 373 static const int kNop = 0x3d; |
| 374 // Move to next reserved chunk. | 374 // Move to next reserved chunk. |
| 375 static const int kNextChunk = 0x3e; | 375 static const int kNextChunk = 0x3e; |
| 376 // Canonical cleared weak cell. |
| 377 static const int kClearedWeakCell = 0x3f; |
| 376 // A tag emitted at strategic points in the snapshot to delineate sections. | 378 // A tag emitted at strategic points in the snapshot to delineate sections. |
| 377 // If the deserializer does not find these at the expected moments then it | 379 // If the deserializer does not find these at the expected moments then it |
| 378 // is an indication that the snapshot and the VM do not fit together. | 380 // is an indication that the snapshot and the VM do not fit together. |
| 379 // Examine the build process for architecture, version or configuration | 381 // Examine the build process for architecture, version or configuration |
| 380 // mismatches. | 382 // mismatches. |
| 381 static const int kSynchronize = 0x5d; | 383 static const int kSynchronize = 0x5d; |
| 382 // Used for the source code of the natives, which is in the executable, but | 384 // Used for the source code of the natives, which is in the executable, but |
| 383 // is referred to from external strings in the snapshot. | 385 // is referred to from external strings in the snapshot. |
| 384 static const int kNativesStringResource = 0x5e; | 386 static const int kNativesStringResource = 0x5e; |
| 385 // Raw data of variable length. | 387 // Raw data of variable length. |
| (...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 995 kNumInternalizedStringsOffset + kInt32Size; | 997 kNumInternalizedStringsOffset + kInt32Size; |
| 996 static const int kNumCodeStubKeysOffset = kNumReservationsOffset + kInt32Size; | 998 static const int kNumCodeStubKeysOffset = kNumReservationsOffset + kInt32Size; |
| 997 static const int kPayloadLengthOffset = kNumCodeStubKeysOffset + kInt32Size; | 999 static const int kPayloadLengthOffset = kNumCodeStubKeysOffset + kInt32Size; |
| 998 static const int kChecksum1Offset = kPayloadLengthOffset + kInt32Size; | 1000 static const int kChecksum1Offset = kPayloadLengthOffset + kInt32Size; |
| 999 static const int kChecksum2Offset = kChecksum1Offset + kInt32Size; | 1001 static const int kChecksum2Offset = kChecksum1Offset + kInt32Size; |
| 1000 static const int kHeaderSize = kChecksum2Offset + kInt32Size; | 1002 static const int kHeaderSize = kChecksum2Offset + kInt32Size; |
| 1001 }; | 1003 }; |
| 1002 } } // namespace v8::internal | 1004 } } // namespace v8::internal |
| 1003 | 1005 |
| 1004 #endif // V8_SNAPSHOT_SERIALIZE_H_ | 1006 #endif // V8_SNAPSHOT_SERIALIZE_H_ |
| OLD | NEW |