| 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 4587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4598 typedef void* (*CreateHistogramCallback)(const char* name, | 4598 typedef void* (*CreateHistogramCallback)(const char* name, |
| 4599 int min, | 4599 int min, |
| 4600 int max, | 4600 int max, |
| 4601 size_t buckets); | 4601 size_t buckets); |
| 4602 | 4602 |
| 4603 typedef void (*AddHistogramSampleCallback)(void* histogram, int sample); | 4603 typedef void (*AddHistogramSampleCallback)(void* histogram, int sample); |
| 4604 | 4604 |
| 4605 // --- Memory Allocation Callback --- | 4605 // --- Memory Allocation Callback --- |
| 4606 enum ObjectSpace { | 4606 enum ObjectSpace { |
| 4607 kObjectSpaceNewSpace = 1 << 0, | 4607 kObjectSpaceNewSpace = 1 << 0, |
| 4608 kObjectSpaceOldPointerSpace = 1 << 1, | 4608 kObjectSpaceOldSpace = 1 << 1, |
| 4609 kObjectSpaceOldDataSpace = 1 << 2, | 4609 kObjectSpaceCodeSpace = 1 << 2, |
| 4610 kObjectSpaceCodeSpace = 1 << 3, | 4610 kObjectSpaceMapSpace = 1 << 3, |
| 4611 kObjectSpaceMapSpace = 1 << 4, | 4611 kObjectSpaceCellSpace = 1 << 4, |
| 4612 kObjectSpaceCellSpace = 1 << 5, | 4612 kObjectSpacePropertyCellSpace = 1 << 5, |
| 4613 kObjectSpacePropertyCellSpace = 1 << 6, | 4613 kObjectSpaceLoSpace = 1 << 6, |
| 4614 kObjectSpaceLoSpace = 1 << 7, | 4614 kObjectSpaceAll = kObjectSpaceNewSpace | kObjectSpaceOldSpace | |
| 4615 kObjectSpaceAll = kObjectSpaceNewSpace | kObjectSpaceOldPointerSpace | | 4615 kObjectSpaceCodeSpace | kObjectSpaceMapSpace | |
| 4616 kObjectSpaceOldDataSpace | kObjectSpaceCodeSpace | | 4616 kObjectSpaceLoSpace |
| 4617 kObjectSpaceMapSpace | kObjectSpaceLoSpace | |
| 4618 }; | 4617 }; |
| 4619 | 4618 |
| 4620 enum AllocationAction { | 4619 enum AllocationAction { |
| 4621 kAllocationActionAllocate = 1 << 0, | 4620 kAllocationActionAllocate = 1 << 0, |
| 4622 kAllocationActionFree = 1 << 1, | 4621 kAllocationActionFree = 1 << 1, |
| 4623 kAllocationActionAll = kAllocationActionAllocate | kAllocationActionFree | 4622 kAllocationActionAll = kAllocationActionAllocate | kAllocationActionFree |
| 4624 }; | 4623 }; |
| 4625 | 4624 |
| 4626 typedef void (*MemoryAllocationCallback)(ObjectSpace space, | 4625 typedef void (*MemoryAllocationCallback)(ObjectSpace space, |
| 4627 AllocationAction action, | 4626 AllocationAction action, |
| (...skipping 3240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7868 */ | 7867 */ |
| 7869 | 7868 |
| 7870 | 7869 |
| 7871 } // namespace v8 | 7870 } // namespace v8 |
| 7872 | 7871 |
| 7873 | 7872 |
| 7874 #undef TYPE_CHECK | 7873 #undef TYPE_CHECK |
| 7875 | 7874 |
| 7876 | 7875 |
| 7877 #endif // V8_H_ | 7876 #endif // V8_H_ |
| OLD | NEW |