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 4729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4740 typedef void* (*CreateHistogramCallback)(const char* name, | 4740 typedef void* (*CreateHistogramCallback)(const char* name, |
4741 int min, | 4741 int min, |
4742 int max, | 4742 int max, |
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 kObjectSpaceOldPointerSpace = 1 << 1, | 4750 kObjectSpaceOldSpace = 1 << 1, |
4751 kObjectSpaceOldDataSpace = 1 << 2, | 4751 kObjectSpaceCodeSpace = 1 << 2, |
4752 kObjectSpaceCodeSpace = 1 << 3, | 4752 kObjectSpaceMapSpace = 1 << 3, |
4753 kObjectSpaceMapSpace = 1 << 4, | 4753 kObjectSpaceCellSpace = 1 << 4, |
4754 kObjectSpaceCellSpace = 1 << 5, | 4754 kObjectSpaceLoSpace = 1 << 5, |
4755 kObjectSpaceLoSpace = 1 << 6, | 4755 kObjectSpaceAll = kObjectSpaceNewSpace | kObjectSpaceOldSpace | |
4756 kObjectSpaceAll = kObjectSpaceNewSpace | kObjectSpaceOldPointerSpace | | 4756 kObjectSpaceCodeSpace | kObjectSpaceMapSpace | |
4757 kObjectSpaceOldDataSpace | kObjectSpaceCodeSpace | | 4757 kObjectSpaceLoSpace |
4758 kObjectSpaceMapSpace | kObjectSpaceLoSpace | |
4759 }; | 4758 }; |
4760 | 4759 |
4761 enum AllocationAction { | 4760 enum AllocationAction { |
4762 kAllocationActionAllocate = 1 << 0, | 4761 kAllocationActionAllocate = 1 << 0, |
4763 kAllocationActionFree = 1 << 1, | 4762 kAllocationActionFree = 1 << 1, |
4764 kAllocationActionAll = kAllocationActionAllocate | kAllocationActionFree | 4763 kAllocationActionAll = kAllocationActionAllocate | kAllocationActionFree |
4765 }; | 4764 }; |
4766 | 4765 |
4767 typedef void (*MemoryAllocationCallback)(ObjectSpace space, | 4766 typedef void (*MemoryAllocationCallback)(ObjectSpace space, |
4768 AllocationAction action, | 4767 AllocationAction action, |
(...skipping 3301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8070 */ | 8069 */ |
8071 | 8070 |
8072 | 8071 |
8073 } // namespace v8 | 8072 } // namespace v8 |
8074 | 8073 |
8075 | 8074 |
8076 #undef TYPE_CHECK | 8075 #undef TYPE_CHECK |
8077 | 8076 |
8078 | 8077 |
8079 #endif // V8_H_ | 8078 #endif // V8_H_ |
OLD | NEW |