| 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 4383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4394 typedef int* (*CounterLookupCallback)(const char* name); | 4394 typedef int* (*CounterLookupCallback)(const char* name); |
| 4395 | 4395 |
| 4396 typedef void* (*CreateHistogramCallback)(const char* name, | 4396 typedef void* (*CreateHistogramCallback)(const char* name, |
| 4397 int min, | 4397 int min, |
| 4398 int max, | 4398 int max, |
| 4399 size_t buckets); | 4399 size_t buckets); |
| 4400 | 4400 |
| 4401 typedef void (*AddHistogramSampleCallback)(void* histogram, int sample); | 4401 typedef void (*AddHistogramSampleCallback)(void* histogram, int sample); |
| 4402 | 4402 |
| 4403 // --- Memory Allocation Callback --- | 4403 // --- Memory Allocation Callback --- |
| 4404 enum ObjectSpace { | 4404 enum ObjectSpace { |
| 4405 kObjectSpaceNewSpace = 1 << 0, | 4405 kObjectSpaceNewSpace = 1 << 0, |
| 4406 kObjectSpaceOldPointerSpace = 1 << 1, | 4406 kObjectSpaceOldPointerSpace = 1 << 1, |
| 4407 kObjectSpaceOldDataSpace = 1 << 2, | 4407 kObjectSpaceOldDataSpace = 1 << 2, |
| 4408 kObjectSpaceCodeSpace = 1 << 3, | 4408 kObjectSpaceCodeSpace = 1 << 3, |
| 4409 kObjectSpaceMapSpace = 1 << 4, | 4409 kObjectSpaceMapSpace = 1 << 4, |
| 4410 kObjectSpaceLoSpace = 1 << 5, | 4410 kObjectSpaceCellSpace = 1 << 5, |
| 4411 | 4411 kObjectSpacePropertyCellSpace = 1 << 6, |
| 4412 kObjectSpaceAll = kObjectSpaceNewSpace | kObjectSpaceOldPointerSpace | | 4412 kObjectSpaceLoSpace = 1 << 7, |
| 4413 kObjectSpaceOldDataSpace | kObjectSpaceCodeSpace | kObjectSpaceMapSpace | | 4413 kObjectSpaceAll = kObjectSpaceNewSpace | kObjectSpaceOldPointerSpace | |
| 4414 kObjectSpaceLoSpace | 4414 kObjectSpaceOldDataSpace | kObjectSpaceCodeSpace | |
| 4415 }; | 4415 kObjectSpaceMapSpace | kObjectSpaceLoSpace |
| 4416 }; |
| 4416 | 4417 |
| 4417 enum AllocationAction { | 4418 enum AllocationAction { |
| 4418 kAllocationActionAllocate = 1 << 0, | 4419 kAllocationActionAllocate = 1 << 0, |
| 4419 kAllocationActionFree = 1 << 1, | 4420 kAllocationActionFree = 1 << 1, |
| 4420 kAllocationActionAll = kAllocationActionAllocate | kAllocationActionFree | 4421 kAllocationActionAll = kAllocationActionAllocate | kAllocationActionFree |
| 4421 }; | 4422 }; |
| 4422 | 4423 |
| 4423 typedef void (*MemoryAllocationCallback)(ObjectSpace space, | 4424 typedef void (*MemoryAllocationCallback)(ObjectSpace space, |
| 4424 AllocationAction action, | 4425 AllocationAction action, |
| 4425 int size); | 4426 int size); |
| (...skipping 3137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7563 */ | 7564 */ |
| 7564 | 7565 |
| 7565 | 7566 |
| 7566 } // namespace v8 | 7567 } // namespace v8 |
| 7567 | 7568 |
| 7568 | 7569 |
| 7569 #undef TYPE_CHECK | 7570 #undef TYPE_CHECK |
| 7570 | 7571 |
| 7571 | 7572 |
| 7572 #endif // V8_H_ | 7573 #endif // V8_H_ |
| OLD | NEW |