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

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

Issue 1289603002: Put V8 extras into the snapshot (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix comment Created 5 years, 4 months 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
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/hashmap.h" 8 #include "src/hashmap.h"
9 #include "src/isolate.h" 9 #include "src/isolate.h"
10 #include "src/snapshot/snapshot-source-sink.h" 10 #include "src/snapshot/snapshot-source-sink.h"
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 static const int kNativesStringResource = 0x37; 394 static const int kNativesStringResource = 0x37;
395 // Raw data of variable length. 395 // Raw data of variable length.
396 static const int kVariableRawData = 0x57; 396 static const int kVariableRawData = 0x57;
397 // Repeats of variable length. 397 // Repeats of variable length.
398 static const int kVariableRepeat = 0x77; 398 static const int kVariableRepeat = 0x77;
399 // Alignment prefixes 0x7d..0x7f 399 // Alignment prefixes 0x7d..0x7f
400 static const int kAlignmentPrefix = 0x7d; 400 static const int kAlignmentPrefix = 0x7d;
401 // Used for the source code for compiled stubs, which is in the executable, 401 // Used for the source code for compiled stubs, which is in the executable,
402 // but is referred to from external strings in the snapshot. 402 // but is referred to from external strings in the snapshot.
403 static const int kCodeStubNativesStringResource = 0x5d; 403 static const int kCodeStubNativesStringResource = 0x5d;
404 // Used for the source code for V8 extras, which is in the executable,
405 // but is referred to from external strings in the snapshot.
406 static const int kExtraNativesStringResource = 0x5e;
Yang 2015/08/13 12:28:24 This is fine, but I'd group them a bit differently
404 407
405 // 0x5e..0x5f unused 408 // 0x5f unused
406 409
407 // ---------- byte code range 0x80..0xff ---------- 410 // ---------- byte code range 0x80..0xff ----------
408 // First 32 root array items. 411 // First 32 root array items.
409 static const int kNumberOfRootArrayConstants = 0x20; 412 static const int kNumberOfRootArrayConstants = 0x20;
410 // 0x80..0x9f 413 // 0x80..0x9f
411 static const int kRootArrayConstants = 0x80; 414 static const int kRootArrayConstants = 0x80;
412 // 0xa0..0xbf 415 // 0xa0..0xbf
413 static const int kRootArrayConstantsWithSkip = 0xa0; 416 static const int kRootArrayConstantsWithSkip = 0xa0;
414 static const int kRootArrayConstantsMask = 0x1f; 417 static const int kRootArrayConstantsMask = 0x1f;
415 418
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
1049 static const int kNumReservationsOffset = kFlagHashOffset + kInt32Size; 1052 static const int kNumReservationsOffset = kFlagHashOffset + kInt32Size;
1050 static const int kNumCodeStubKeysOffset = kNumReservationsOffset + kInt32Size; 1053 static const int kNumCodeStubKeysOffset = kNumReservationsOffset + kInt32Size;
1051 static const int kPayloadLengthOffset = kNumCodeStubKeysOffset + kInt32Size; 1054 static const int kPayloadLengthOffset = kNumCodeStubKeysOffset + kInt32Size;
1052 static const int kChecksum1Offset = kPayloadLengthOffset + kInt32Size; 1055 static const int kChecksum1Offset = kPayloadLengthOffset + kInt32Size;
1053 static const int kChecksum2Offset = kChecksum1Offset + kInt32Size; 1056 static const int kChecksum2Offset = kChecksum1Offset + kInt32Size;
1054 static const int kHeaderSize = kChecksum2Offset + kInt32Size; 1057 static const int kHeaderSize = kChecksum2Offset + kInt32Size;
1055 }; 1058 };
1056 } } // namespace v8::internal 1059 } } // namespace v8::internal
1057 1060
1058 #endif // V8_SNAPSHOT_SERIALIZE_H_ 1061 #endif // V8_SNAPSHOT_SERIALIZE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698