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 6895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6906 static const int kHeapObjectMapOffset = 0; | 6906 static const int kHeapObjectMapOffset = 0; |
6907 static const int kMapInstanceTypeAndBitFieldOffset = | 6907 static const int kMapInstanceTypeAndBitFieldOffset = |
6908 1 * kApiPointerSize + kApiIntSize; | 6908 1 * kApiPointerSize + kApiIntSize; |
6909 static const int kStringResourceOffset = 3 * kApiPointerSize; | 6909 static const int kStringResourceOffset = 3 * kApiPointerSize; |
6910 | 6910 |
6911 static const int kOddballKindOffset = 3 * kApiPointerSize; | 6911 static const int kOddballKindOffset = 3 * kApiPointerSize; |
6912 static const int kForeignAddressOffset = kApiPointerSize; | 6912 static const int kForeignAddressOffset = kApiPointerSize; |
6913 static const int kJSObjectHeaderSize = 3 * kApiPointerSize; | 6913 static const int kJSObjectHeaderSize = 3 * kApiPointerSize; |
6914 static const int kFixedArrayHeaderSize = 2 * kApiPointerSize; | 6914 static const int kFixedArrayHeaderSize = 2 * kApiPointerSize; |
6915 static const int kContextHeaderSize = 2 * kApiPointerSize; | 6915 static const int kContextHeaderSize = 2 * kApiPointerSize; |
6916 static const int kContextEmbedderDataIndex = 81; | 6916 static const int kContextEmbedderDataIndex = 87; |
6917 static const int kFullStringRepresentationMask = 0x07; | 6917 static const int kFullStringRepresentationMask = 0x07; |
6918 static const int kStringEncodingMask = 0x4; | 6918 static const int kStringEncodingMask = 0x4; |
6919 static const int kExternalTwoByteRepresentationTag = 0x02; | 6919 static const int kExternalTwoByteRepresentationTag = 0x02; |
6920 static const int kExternalOneByteRepresentationTag = 0x06; | 6920 static const int kExternalOneByteRepresentationTag = 0x06; |
6921 | 6921 |
6922 static const int kIsolateEmbedderDataOffset = 0 * kApiPointerSize; | 6922 static const int kIsolateEmbedderDataOffset = 0 * kApiPointerSize; |
6923 static const int kAmountOfExternalAllocatedMemoryOffset = | 6923 static const int kAmountOfExternalAllocatedMemoryOffset = |
6924 4 * kApiPointerSize; | 6924 4 * kApiPointerSize; |
6925 static const int kAmountOfExternalAllocatedMemoryAtLastGlobalGCOffset = | 6925 static const int kAmountOfExternalAllocatedMemoryAtLastGlobalGCOffset = |
6926 kAmountOfExternalAllocatedMemoryOffset + kApiInt64Size; | 6926 kAmountOfExternalAllocatedMemoryOffset + kApiInt64Size; |
(...skipping 12 matching lines...) Expand all Loading... |
6939 | 6939 |
6940 static const int kNodeClassIdOffset = 1 * kApiPointerSize; | 6940 static const int kNodeClassIdOffset = 1 * kApiPointerSize; |
6941 static const int kNodeFlagsOffset = 1 * kApiPointerSize + 3; | 6941 static const int kNodeFlagsOffset = 1 * kApiPointerSize + 3; |
6942 static const int kNodeStateMask = 0x7; | 6942 static const int kNodeStateMask = 0x7; |
6943 static const int kNodeStateIsWeakValue = 2; | 6943 static const int kNodeStateIsWeakValue = 2; |
6944 static const int kNodeStateIsPendingValue = 3; | 6944 static const int kNodeStateIsPendingValue = 3; |
6945 static const int kNodeStateIsNearDeathValue = 4; | 6945 static const int kNodeStateIsNearDeathValue = 4; |
6946 static const int kNodeIsIndependentShift = 3; | 6946 static const int kNodeIsIndependentShift = 3; |
6947 static const int kNodeIsPartiallyDependentShift = 4; | 6947 static const int kNodeIsPartiallyDependentShift = 4; |
6948 | 6948 |
6949 static const int kJSObjectType = 0xb6; | 6949 static const int kJSObjectType = 0xbc; |
6950 static const int kFirstNonstringType = 0x80; | 6950 static const int kFirstNonstringType = 0x80; |
6951 static const int kOddballType = 0x83; | 6951 static const int kOddballType = 0x83; |
6952 static const int kForeignType = 0x87; | 6952 static const int kForeignType = 0x8d; |
6953 | 6953 |
6954 static const int kUndefinedOddballKind = 5; | 6954 static const int kUndefinedOddballKind = 5; |
6955 static const int kNullOddballKind = 3; | 6955 static const int kNullOddballKind = 3; |
6956 | 6956 |
6957 static const uint32_t kNumIsolateDataSlots = 4; | 6957 static const uint32_t kNumIsolateDataSlots = 4; |
6958 | 6958 |
6959 V8_EXPORT static void CheckInitializedImpl(v8::Isolate* isolate); | 6959 V8_EXPORT static void CheckInitializedImpl(v8::Isolate* isolate); |
6960 V8_INLINE static void CheckInitialized(v8::Isolate* isolate) { | 6960 V8_INLINE static void CheckInitialized(v8::Isolate* isolate) { |
6961 #ifdef V8_ENABLE_CHECKS | 6961 #ifdef V8_ENABLE_CHECKS |
6962 CheckInitializedImpl(isolate); | 6962 CheckInitializedImpl(isolate); |
(...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8312 */ | 8312 */ |
8313 | 8313 |
8314 | 8314 |
8315 } // namespace v8 | 8315 } // namespace v8 |
8316 | 8316 |
8317 | 8317 |
8318 #undef TYPE_CHECK | 8318 #undef TYPE_CHECK |
8319 | 8319 |
8320 | 8320 |
8321 #endif // V8_H_ | 8321 #endif // V8_H_ |
OLD | NEW |