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 4947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4958 * such operations will result in the allocation of objects. | 4958 * such operations will result in the allocation of objects. |
4959 */ | 4959 */ |
4960 enum GCType { | 4960 enum GCType { |
4961 kGCTypeScavenge = 1 << 0, | 4961 kGCTypeScavenge = 1 << 0, |
4962 kGCTypeMarkSweepCompact = 1 << 1, | 4962 kGCTypeMarkSweepCompact = 1 << 1, |
4963 kGCTypeAll = kGCTypeScavenge | kGCTypeMarkSweepCompact | 4963 kGCTypeAll = kGCTypeScavenge | kGCTypeMarkSweepCompact |
4964 }; | 4964 }; |
4965 | 4965 |
4966 enum GCCallbackFlags { | 4966 enum GCCallbackFlags { |
4967 kNoGCCallbackFlags = 0, | 4967 kNoGCCallbackFlags = 0, |
4968 kGCCallbackFlagCompacted = 1 << 0, | |
4969 kGCCallbackFlagConstructRetainedObjectInfos = 1 << 1, | 4968 kGCCallbackFlagConstructRetainedObjectInfos = 1 << 1, |
4970 kGCCallbackFlagForced = 1 << 2 | 4969 kGCCallbackFlagForced = 1 << 2, |
| 4970 kGCCallbackFlagSynchronousPhantomCallbackProcessing = 1 << 3 |
4971 }; | 4971 }; |
4972 | 4972 |
4973 typedef void (*GCPrologueCallback)(GCType type, GCCallbackFlags flags); | 4973 typedef void (*GCPrologueCallback)(GCType type, GCCallbackFlags flags); |
4974 typedef void (*GCEpilogueCallback)(GCType type, GCCallbackFlags flags); | 4974 typedef void (*GCEpilogueCallback)(GCType type, GCCallbackFlags flags); |
4975 | 4975 |
4976 typedef void (*InterruptCallback)(Isolate* isolate, void* data); | 4976 typedef void (*InterruptCallback)(Isolate* isolate, void* data); |
4977 | 4977 |
4978 | 4978 |
4979 /** | 4979 /** |
4980 * Collection of V8 heap information. | 4980 * Collection of V8 heap information. |
(...skipping 3336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8317 */ | 8317 */ |
8318 | 8318 |
8319 | 8319 |
8320 } // namespace v8 | 8320 } // namespace v8 |
8321 | 8321 |
8322 | 8322 |
8323 #undef TYPE_CHECK | 8323 #undef TYPE_CHECK |
8324 | 8324 |
8325 | 8325 |
8326 #endif // V8_H_ | 8326 #endif // V8_H_ |
OLD | NEW |