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

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

Issue 1213203007: Create a internal, global native context used only for generated code stubs (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Merge with latest Created 5 years, 5 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/heap-profiler.h" 9 #include "src/heap-profiler.h"
10 #include "src/isolate.h" 10 #include "src/isolate.h"
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 static const int kSynchronize = 0x17; 389 static const int kSynchronize = 0x17;
390 // Used for the source code of the natives, which is in the executable, but 390 // Used for the source code of the natives, which is in the executable, but
391 // is referred to from external strings in the snapshot. 391 // is referred to from external strings in the snapshot.
392 static const int kNativesStringResource = 0x37; 392 static const int kNativesStringResource = 0x37;
393 // Raw data of variable length. 393 // Raw data of variable length.
394 static const int kVariableRawData = 0x57; 394 static const int kVariableRawData = 0x57;
395 // Repeats of variable length. 395 // Repeats of variable length.
396 static const int kVariableRepeat = 0x77; 396 static const int kVariableRepeat = 0x77;
397 // Alignment prefixes 0x7d..0x7f 397 // Alignment prefixes 0x7d..0x7f
398 static const int kAlignmentPrefix = 0x7d; 398 static const int kAlignmentPrefix = 0x7d;
399 // Used for the source code for compiled stubs, which is in the executable,
400 // but is referred to from external strings in the snapshot.
401 static const int kCodeStubNativesStringResource = 0x5d;
399 402
400 // 0x5d..0x5f unused 403 // 0x5e..0x5f unused
401 404
402 // ---------- byte code range 0x80..0xff ---------- 405 // ---------- byte code range 0x80..0xff ----------
403 // First 32 root array items. 406 // First 32 root array items.
404 static const int kNumberOfRootArrayConstants = 0x20; 407 static const int kNumberOfRootArrayConstants = 0x20;
405 // 0x80..0x9f 408 // 0x80..0x9f
406 static const int kRootArrayConstants = 0x80; 409 static const int kRootArrayConstants = 0x80;
407 // 0xa0..0xbf 410 // 0xa0..0xbf
408 static const int kRootArrayConstantsWithSkip = 0xa0; 411 static const int kRootArrayConstantsWithSkip = 0xa0;
409 static const int kRootArrayConstantsMask = 0x1f; 412 static const int kRootArrayConstantsMask = 0x1f;
410 413
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
1036 static const int kNumReservationsOffset = kFlagHashOffset + kInt32Size; 1039 static const int kNumReservationsOffset = kFlagHashOffset + kInt32Size;
1037 static const int kNumCodeStubKeysOffset = kNumReservationsOffset + kInt32Size; 1040 static const int kNumCodeStubKeysOffset = kNumReservationsOffset + kInt32Size;
1038 static const int kPayloadLengthOffset = kNumCodeStubKeysOffset + kInt32Size; 1041 static const int kPayloadLengthOffset = kNumCodeStubKeysOffset + kInt32Size;
1039 static const int kChecksum1Offset = kPayloadLengthOffset + kInt32Size; 1042 static const int kChecksum1Offset = kPayloadLengthOffset + kInt32Size;
1040 static const int kChecksum2Offset = kChecksum1Offset + kInt32Size; 1043 static const int kChecksum2Offset = kChecksum1Offset + kInt32Size;
1041 static const int kHeaderSize = kChecksum2Offset + kInt32Size; 1044 static const int kHeaderSize = kChecksum2Offset + kInt32Size;
1042 }; 1045 };
1043 } } // namespace v8::internal 1046 } } // namespace v8::internal
1044 1047
1045 #endif // V8_SNAPSHOT_SERIALIZE_H_ 1048 #endif // V8_SNAPSHOT_SERIALIZE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698