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 4646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4657 typedef void* (*CreateHistogramCallback)(const char* name, | 4657 typedef void* (*CreateHistogramCallback)(const char* name, |
4658 int min, | 4658 int min, |
4659 int max, | 4659 int max, |
4660 size_t buckets); | 4660 size_t buckets); |
4661 | 4661 |
4662 typedef void (*AddHistogramSampleCallback)(void* histogram, int sample); | 4662 typedef void (*AddHistogramSampleCallback)(void* histogram, int sample); |
4663 | 4663 |
4664 // --- Memory Allocation Callback --- | 4664 // --- Memory Allocation Callback --- |
4665 enum ObjectSpace { | 4665 enum ObjectSpace { |
4666 kObjectSpaceNewSpace = 1 << 0, | 4666 kObjectSpaceNewSpace = 1 << 0, |
4667 kObjectSpaceOldSpace = 1 << 1, | 4667 kObjectSpaceOldPointerSpace = 1 << 1, |
4668 kObjectSpaceCodeSpace = 1 << 2, | 4668 kObjectSpaceOldDataSpace = 1 << 2, |
4669 kObjectSpaceMapSpace = 1 << 3, | 4669 kObjectSpaceCodeSpace = 1 << 3, |
4670 kObjectSpaceCellSpace = 1 << 4, | 4670 kObjectSpaceMapSpace = 1 << 4, |
4671 kObjectSpacePropertyCellSpace = 1 << 5, | 4671 kObjectSpaceCellSpace = 1 << 5, |
4672 kObjectSpaceLoSpace = 1 << 6, | 4672 kObjectSpacePropertyCellSpace = 1 << 6, |
4673 kObjectSpaceAll = kObjectSpaceNewSpace | kObjectSpaceOldSpace | | 4673 kObjectSpaceLoSpace = 1 << 7, |
4674 kObjectSpaceCodeSpace | kObjectSpaceMapSpace | | 4674 kObjectSpaceAll = kObjectSpaceNewSpace | kObjectSpaceOldPointerSpace | |
4675 kObjectSpaceLoSpace | 4675 kObjectSpaceOldDataSpace | kObjectSpaceCodeSpace | |
| 4676 kObjectSpaceMapSpace | kObjectSpaceLoSpace |
4676 }; | 4677 }; |
4677 | 4678 |
4678 enum AllocationAction { | 4679 enum AllocationAction { |
4679 kAllocationActionAllocate = 1 << 0, | 4680 kAllocationActionAllocate = 1 << 0, |
4680 kAllocationActionFree = 1 << 1, | 4681 kAllocationActionFree = 1 << 1, |
4681 kAllocationActionAll = kAllocationActionAllocate | kAllocationActionFree | 4682 kAllocationActionAll = kAllocationActionAllocate | kAllocationActionFree |
4682 }; | 4683 }; |
4683 | 4684 |
4684 typedef void (*MemoryAllocationCallback)(ObjectSpace space, | 4685 typedef void (*MemoryAllocationCallback)(ObjectSpace space, |
4685 AllocationAction action, | 4686 AllocationAction action, |
(...skipping 3289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7975 */ | 7976 */ |
7976 | 7977 |
7977 | 7978 |
7978 } // namespace v8 | 7979 } // namespace v8 |
7979 | 7980 |
7980 | 7981 |
7981 #undef TYPE_CHECK | 7982 #undef TYPE_CHECK |
7982 | 7983 |
7983 | 7984 |
7984 #endif // V8_H_ | 7985 #endif // V8_H_ |
OLD | NEW |