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