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 4732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4743 size_t buckets); | 4743 size_t buckets); |
4744 | 4744 |
4745 typedef void (*AddHistogramSampleCallback)(void* histogram, int sample); | 4745 typedef void (*AddHistogramSampleCallback)(void* histogram, int sample); |
4746 | 4746 |
4747 // --- Memory Allocation Callback --- | 4747 // --- Memory Allocation Callback --- |
4748 enum ObjectSpace { | 4748 enum ObjectSpace { |
4749 kObjectSpaceNewSpace = 1 << 0, | 4749 kObjectSpaceNewSpace = 1 << 0, |
4750 kObjectSpaceOldSpace = 1 << 1, | 4750 kObjectSpaceOldSpace = 1 << 1, |
4751 kObjectSpaceCodeSpace = 1 << 2, | 4751 kObjectSpaceCodeSpace = 1 << 2, |
4752 kObjectSpaceMapSpace = 1 << 3, | 4752 kObjectSpaceMapSpace = 1 << 3, |
4753 kObjectSpaceLoSpace = 1 << 4, | 4753 kObjectSpaceCellSpace = 1 << 4, |
| 4754 kObjectSpaceLoSpace = 1 << 5, |
4754 kObjectSpaceAll = kObjectSpaceNewSpace | kObjectSpaceOldSpace | | 4755 kObjectSpaceAll = kObjectSpaceNewSpace | kObjectSpaceOldSpace | |
4755 kObjectSpaceCodeSpace | kObjectSpaceMapSpace | | 4756 kObjectSpaceCodeSpace | kObjectSpaceMapSpace | |
4756 kObjectSpaceLoSpace | 4757 kObjectSpaceLoSpace |
4757 }; | 4758 }; |
4758 | 4759 |
4759 enum AllocationAction { | 4760 enum AllocationAction { |
4760 kAllocationActionAllocate = 1 << 0, | 4761 kAllocationActionAllocate = 1 << 0, |
4761 kAllocationActionFree = 1 << 1, | 4762 kAllocationActionFree = 1 << 1, |
4762 kAllocationActionAll = kAllocationActionAllocate | kAllocationActionFree | 4763 kAllocationActionAll = kAllocationActionAllocate | kAllocationActionFree |
4763 }; | 4764 }; |
(...skipping 1969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6733 static const int kNodeStateMask = 0x7; | 6734 static const int kNodeStateMask = 0x7; |
6734 static const int kNodeStateIsWeakValue = 2; | 6735 static const int kNodeStateIsWeakValue = 2; |
6735 static const int kNodeStateIsPendingValue = 3; | 6736 static const int kNodeStateIsPendingValue = 3; |
6736 static const int kNodeStateIsNearDeathValue = 4; | 6737 static const int kNodeStateIsNearDeathValue = 4; |
6737 static const int kNodeIsIndependentShift = 3; | 6738 static const int kNodeIsIndependentShift = 3; |
6738 static const int kNodeIsPartiallyDependentShift = 4; | 6739 static const int kNodeIsPartiallyDependentShift = 4; |
6739 | 6740 |
6740 static const int kJSObjectType = 0xbe; | 6741 static const int kJSObjectType = 0xbe; |
6741 static const int kFirstNonstringType = 0x80; | 6742 static const int kFirstNonstringType = 0x80; |
6742 static const int kOddballType = 0x83; | 6743 static const int kOddballType = 0x83; |
6743 static const int kForeignType = 0x86; | 6744 static const int kForeignType = 0x87; |
6744 | 6745 |
6745 static const int kUndefinedOddballKind = 5; | 6746 static const int kUndefinedOddballKind = 5; |
6746 static const int kNullOddballKind = 3; | 6747 static const int kNullOddballKind = 3; |
6747 | 6748 |
6748 static const uint32_t kNumIsolateDataSlots = 4; | 6749 static const uint32_t kNumIsolateDataSlots = 4; |
6749 | 6750 |
6750 V8_EXPORT static void CheckInitializedImpl(v8::Isolate* isolate); | 6751 V8_EXPORT static void CheckInitializedImpl(v8::Isolate* isolate); |
6751 V8_INLINE static void CheckInitialized(v8::Isolate* isolate) { | 6752 V8_INLINE static void CheckInitialized(v8::Isolate* isolate) { |
6752 #ifdef V8_ENABLE_CHECKS | 6753 #ifdef V8_ENABLE_CHECKS |
6753 CheckInitializedImpl(isolate); | 6754 CheckInitializedImpl(isolate); |
(...skipping 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8068 */ | 8069 */ |
8069 | 8070 |
8070 | 8071 |
8071 } // namespace v8 | 8072 } // namespace v8 |
8072 | 8073 |
8073 | 8074 |
8074 #undef TYPE_CHECK | 8075 #undef TYPE_CHECK |
8075 | 8076 |
8076 | 8077 |
8077 #endif // V8_H_ | 8078 #endif // V8_H_ |
OLD | NEW |