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 /** \mainpage V8 API Reference Guide | 5 /** \mainpage V8 API Reference Guide |
6 * | 6 * |
7 * V8 is Google's open source JavaScript engine. | 7 * V8 is Google's open source JavaScript engine. |
8 * | 8 * |
9 * This set of documents provides reference material generated from the | 9 * This set of documents provides reference material generated from the |
10 * V8 header file, include/v8.h. | 10 * V8 header file, include/v8.h. |
(...skipping 5909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5920 4 * kApiPointerSize; | 5920 4 * kApiPointerSize; |
5921 static const int kAmountOfExternalAllocatedMemoryAtLastGlobalGCOffset = | 5921 static const int kAmountOfExternalAllocatedMemoryAtLastGlobalGCOffset = |
5922 kAmountOfExternalAllocatedMemoryOffset + kApiInt64Size; | 5922 kAmountOfExternalAllocatedMemoryOffset + kApiInt64Size; |
5923 static const int kIsolateRootsOffset = | 5923 static const int kIsolateRootsOffset = |
5924 kAmountOfExternalAllocatedMemoryAtLastGlobalGCOffset + kApiInt64Size + | 5924 kAmountOfExternalAllocatedMemoryAtLastGlobalGCOffset + kApiInt64Size + |
5925 kApiPointerSize; | 5925 kApiPointerSize; |
5926 static const int kUndefinedValueRootIndex = 5; | 5926 static const int kUndefinedValueRootIndex = 5; |
5927 static const int kNullValueRootIndex = 7; | 5927 static const int kNullValueRootIndex = 7; |
5928 static const int kTrueValueRootIndex = 8; | 5928 static const int kTrueValueRootIndex = 8; |
5929 static const int kFalseValueRootIndex = 9; | 5929 static const int kFalseValueRootIndex = 9; |
5930 static const int kEmptyStringRootIndex = 153; | 5930 static const int kEmptyStringRootIndex = 154; |
5931 | 5931 |
5932 // The external allocation limit should be below 256 MB on all architectures | 5932 // The external allocation limit should be below 256 MB on all architectures |
5933 // to avoid that resource-constrained embedders run low on memory. | 5933 // to avoid that resource-constrained embedders run low on memory. |
5934 static const int kExternalAllocationLimit = 192 * 1024 * 1024; | 5934 static const int kExternalAllocationLimit = 192 * 1024 * 1024; |
5935 | 5935 |
5936 static const int kNodeClassIdOffset = 1 * kApiPointerSize; | 5936 static const int kNodeClassIdOffset = 1 * kApiPointerSize; |
5937 static const int kNodeFlagsOffset = 1 * kApiPointerSize + 3; | 5937 static const int kNodeFlagsOffset = 1 * kApiPointerSize + 3; |
5938 static const int kNodeStateMask = 0xf; | 5938 static const int kNodeStateMask = 0xf; |
5939 static const int kNodeStateIsWeakValue = 2; | 5939 static const int kNodeStateIsWeakValue = 2; |
5940 static const int kNodeStateIsPendingValue = 3; | 5940 static const int kNodeStateIsPendingValue = 3; |
5941 static const int kNodeStateIsNearDeathValue = 4; | 5941 static const int kNodeStateIsNearDeathValue = 4; |
5942 static const int kNodeIsIndependentShift = 4; | 5942 static const int kNodeIsIndependentShift = 4; |
5943 static const int kNodeIsPartiallyDependentShift = 5; | 5943 static const int kNodeIsPartiallyDependentShift = 5; |
5944 | 5944 |
5945 static const int kJSObjectType = 0xbc; | 5945 static const int kJSObjectType = 0xbd; |
5946 static const int kFirstNonstringType = 0x80; | 5946 static const int kFirstNonstringType = 0x80; |
5947 static const int kOddballType = 0x83; | 5947 static const int kOddballType = 0x83; |
5948 static const int kForeignType = 0x88; | 5948 static const int kForeignType = 0x88; |
5949 | 5949 |
5950 static const int kUndefinedOddballKind = 5; | 5950 static const int kUndefinedOddballKind = 5; |
5951 static const int kNullOddballKind = 3; | 5951 static const int kNullOddballKind = 3; |
5952 | 5952 |
5953 static const uint32_t kNumIsolateDataSlots = 4; | 5953 static const uint32_t kNumIsolateDataSlots = 4; |
5954 | 5954 |
5955 V8_EXPORT static void CheckInitializedImpl(v8::Isolate* isolate); | 5955 V8_EXPORT static void CheckInitializedImpl(v8::Isolate* isolate); |
(...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7047 */ | 7047 */ |
7048 | 7048 |
7049 | 7049 |
7050 } // namespace v8 | 7050 } // namespace v8 |
7051 | 7051 |
7052 | 7052 |
7053 #undef TYPE_CHECK | 7053 #undef TYPE_CHECK |
7054 | 7054 |
7055 | 7055 |
7056 #endif // V8_H_ | 7056 #endif // V8_H_ |
OLD | NEW |