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 5568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5579 4 * kApiPointerSize; | 5579 4 * kApiPointerSize; |
5580 static const int kAmountOfExternalAllocatedMemoryAtLastGlobalGCOffset = | 5580 static const int kAmountOfExternalAllocatedMemoryAtLastGlobalGCOffset = |
5581 kAmountOfExternalAllocatedMemoryOffset + kApiInt64Size; | 5581 kAmountOfExternalAllocatedMemoryOffset + kApiInt64Size; |
5582 static const int kIsolateRootsOffset = | 5582 static const int kIsolateRootsOffset = |
5583 kAmountOfExternalAllocatedMemoryAtLastGlobalGCOffset + kApiInt64Size + | 5583 kAmountOfExternalAllocatedMemoryAtLastGlobalGCOffset + kApiInt64Size + |
5584 kApiPointerSize; | 5584 kApiPointerSize; |
5585 static const int kUndefinedValueRootIndex = 5; | 5585 static const int kUndefinedValueRootIndex = 5; |
5586 static const int kNullValueRootIndex = 7; | 5586 static const int kNullValueRootIndex = 7; |
5587 static const int kTrueValueRootIndex = 8; | 5587 static const int kTrueValueRootIndex = 8; |
5588 static const int kFalseValueRootIndex = 9; | 5588 static const int kFalseValueRootIndex = 9; |
5589 static const int kEmptyStringRootIndex = 160; | 5589 static const int kEmptyStringRootIndex = 161; |
5590 | 5590 |
5591 // The external allocation limit should be below 256 MB on all architectures | 5591 // The external allocation limit should be below 256 MB on all architectures |
5592 // to avoid that resource-constrained embedders run low on memory. | 5592 // to avoid that resource-constrained embedders run low on memory. |
5593 static const int kExternalAllocationLimit = 192 * 1024 * 1024; | 5593 static const int kExternalAllocationLimit = 192 * 1024 * 1024; |
5594 | 5594 |
5595 static const int kNodeClassIdOffset = 1 * kApiPointerSize; | 5595 static const int kNodeClassIdOffset = 1 * kApiPointerSize; |
5596 static const int kNodeFlagsOffset = 1 * kApiPointerSize + 3; | 5596 static const int kNodeFlagsOffset = 1 * kApiPointerSize + 3; |
5597 static const int kNodeStateMask = 0xf; | 5597 static const int kNodeStateMask = 0xf; |
5598 static const int kNodeStateIsWeakValue = 2; | 5598 static const int kNodeStateIsWeakValue = 2; |
5599 static const int kNodeStateIsPendingValue = 3; | 5599 static const int kNodeStateIsPendingValue = 3; |
5600 static const int kNodeStateIsNearDeathValue = 4; | 5600 static const int kNodeStateIsNearDeathValue = 4; |
5601 static const int kNodeIsIndependentShift = 4; | 5601 static const int kNodeIsIndependentShift = 4; |
5602 static const int kNodeIsPartiallyDependentShift = 5; | 5602 static const int kNodeIsPartiallyDependentShift = 5; |
5603 | 5603 |
5604 static const int kJSObjectType = 0xbb; | 5604 static const int kJSObjectType = 0xbc; |
5605 static const int kFirstNonstringType = 0x80; | 5605 static const int kFirstNonstringType = 0x80; |
5606 static const int kOddballType = 0x83; | 5606 static const int kOddballType = 0x83; |
5607 static const int kForeignType = 0x87; | 5607 static const int kForeignType = 0x88; |
5608 | 5608 |
5609 static const int kUndefinedOddballKind = 5; | 5609 static const int kUndefinedOddballKind = 5; |
5610 static const int kNullOddballKind = 3; | 5610 static const int kNullOddballKind = 3; |
5611 | 5611 |
5612 static const uint32_t kNumIsolateDataSlots = 4; | 5612 static const uint32_t kNumIsolateDataSlots = 4; |
5613 | 5613 |
5614 V8_EXPORT static void CheckInitializedImpl(v8::Isolate* isolate); | 5614 V8_EXPORT static void CheckInitializedImpl(v8::Isolate* isolate); |
5615 V8_INLINE static void CheckInitialized(v8::Isolate* isolate) { | 5615 V8_INLINE static void CheckInitialized(v8::Isolate* isolate) { |
5616 #ifdef V8_ENABLE_CHECKS | 5616 #ifdef V8_ENABLE_CHECKS |
5617 CheckInitializedImpl(isolate); | 5617 CheckInitializedImpl(isolate); |
(...skipping 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6701 */ | 6701 */ |
6702 | 6702 |
6703 | 6703 |
6704 } // namespace v8 | 6704 } // namespace v8 |
6705 | 6705 |
6706 | 6706 |
6707 #undef TYPE_CHECK | 6707 #undef TYPE_CHECK |
6708 | 6708 |
6709 | 6709 |
6710 #endif // V8_H_ | 6710 #endif // V8_H_ |
OLD | NEW |