| 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 6168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6179 * GCCallbackFlags is used to notify additional information about the GC | 6179 * GCCallbackFlags is used to notify additional information about the GC |
| 6180 * callback. | 6180 * callback. |
| 6181 * - kGCCallbackFlagConstructRetainedObjectInfos: The GC callback is for | 6181 * - kGCCallbackFlagConstructRetainedObjectInfos: The GC callback is for |
| 6182 * constructing retained object infos. | 6182 * constructing retained object infos. |
| 6183 * - kGCCallbackFlagForced: The GC callback is for a forced GC for testing. | 6183 * - kGCCallbackFlagForced: The GC callback is for a forced GC for testing. |
| 6184 * - kGCCallbackFlagSynchronousPhantomCallbackProcessing: The GC callback | 6184 * - kGCCallbackFlagSynchronousPhantomCallbackProcessing: The GC callback |
| 6185 * is called synchronously without getting posted to an idle task. | 6185 * is called synchronously without getting posted to an idle task. |
| 6186 * - kGCCallbackFlagCollectAllAvailableGarbage: The GC callback is called | 6186 * - kGCCallbackFlagCollectAllAvailableGarbage: The GC callback is called |
| 6187 * in a phase where V8 is trying to collect all available garbage | 6187 * in a phase where V8 is trying to collect all available garbage |
| 6188 * (e.g., handling a low memory notification). | 6188 * (e.g., handling a low memory notification). |
| 6189 * - kGCCallbackScheduleIdleCollectGarbage: The GC callback is called to |
| 6190 * trigger an idle garbage collection. |
| 6189 */ | 6191 */ |
| 6190 enum GCCallbackFlags { | 6192 enum GCCallbackFlags { |
| 6191 kNoGCCallbackFlags = 0, | 6193 kNoGCCallbackFlags = 0, |
| 6192 kGCCallbackFlagConstructRetainedObjectInfos = 1 << 1, | 6194 kGCCallbackFlagConstructRetainedObjectInfos = 1 << 1, |
| 6193 kGCCallbackFlagForced = 1 << 2, | 6195 kGCCallbackFlagForced = 1 << 2, |
| 6194 kGCCallbackFlagSynchronousPhantomCallbackProcessing = 1 << 3, | 6196 kGCCallbackFlagSynchronousPhantomCallbackProcessing = 1 << 3, |
| 6195 kGCCallbackFlagCollectAllAvailableGarbage = 1 << 4, | 6197 kGCCallbackFlagCollectAllAvailableGarbage = 1 << 4, |
| 6196 kGCCallbackFlagCollectAllExternalMemory = 1 << 5, | 6198 kGCCallbackFlagCollectAllExternalMemory = 1 << 5, |
| 6199 kGCCallbackScheduleIdleCollectGarbage = 1 << 6, |
| 6197 }; | 6200 }; |
| 6198 | 6201 |
| 6199 typedef void (*GCCallback)(GCType type, GCCallbackFlags flags); | 6202 typedef void (*GCCallback)(GCType type, GCCallbackFlags flags); |
| 6200 | 6203 |
| 6201 typedef void (*InterruptCallback)(Isolate* isolate, void* data); | 6204 typedef void (*InterruptCallback)(Isolate* isolate, void* data); |
| 6202 | 6205 |
| 6203 | 6206 |
| 6204 /** | 6207 /** |
| 6205 * Collection of V8 heap information. | 6208 * Collection of V8 heap information. |
| 6206 * | 6209 * |
| (...skipping 3896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10103 */ | 10106 */ |
| 10104 | 10107 |
| 10105 | 10108 |
| 10106 } // namespace v8 | 10109 } // namespace v8 |
| 10107 | 10110 |
| 10108 | 10111 |
| 10109 #undef TYPE_CHECK | 10112 #undef TYPE_CHECK |
| 10110 | 10113 |
| 10111 | 10114 |
| 10112 #endif // INCLUDE_V8_H_ | 10115 #endif // INCLUDE_V8_H_ |
| OLD | NEW |