Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1213)

Side by Side Diff: src/snapshot/serialize.h

Issue 1475953002: [stubs] A new approach to TF stubs (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix Win64 build Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/snapshot/natives-external.cc ('k') | src/snapshot/serialize.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 static const int kNumCodeStubKeysOffset = kNumReservationsOffset + kInt32Size; 807 static const int kNumCodeStubKeysOffset = kNumReservationsOffset + kInt32Size;
811 static const int kPayloadLengthOffset = kNumCodeStubKeysOffset + kInt32Size; 808 static const int kPayloadLengthOffset = kNumCodeStubKeysOffset + kInt32Size;
812 static const int kChecksum1Offset = kPayloadLengthOffset + kInt32Size; 809 static const int kChecksum1Offset = kPayloadLengthOffset + kInt32Size;
813 static const int kChecksum2Offset = kChecksum1Offset + kInt32Size; 810 static const int kChecksum2Offset = kChecksum1Offset + kInt32Size;
814 static const int kHeaderSize = kChecksum2Offset + kInt32Size; 811 static const int kHeaderSize = kChecksum2Offset + kInt32Size;
815 }; 812 };
816 } // namespace internal 813 } // namespace internal
817 } // namespace v8 814 } // namespace v8
818 815
819 #endif // V8_SNAPSHOT_SERIALIZE_H_ 816 #endif // V8_SNAPSHOT_SERIALIZE_H_
OLDNEW
« no previous file with comments | « src/snapshot/natives-external.cc ('k') | src/snapshot/serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698