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 | 6189 * - kGCCallbackScheduleIdleGarbageCollection: The GC callback is called to |
6190 * trigger an idle garbage collection. | 6190 * trigger an idle garbage collection. |
6191 */ | 6191 */ |
6192 enum GCCallbackFlags { | 6192 enum GCCallbackFlags { |
6193 kNoGCCallbackFlags = 0, | 6193 kNoGCCallbackFlags = 0, |
6194 kGCCallbackFlagConstructRetainedObjectInfos = 1 << 1, | 6194 kGCCallbackFlagConstructRetainedObjectInfos = 1 << 1, |
6195 kGCCallbackFlagForced = 1 << 2, | 6195 kGCCallbackFlagForced = 1 << 2, |
6196 kGCCallbackFlagSynchronousPhantomCallbackProcessing = 1 << 3, | 6196 kGCCallbackFlagSynchronousPhantomCallbackProcessing = 1 << 3, |
6197 kGCCallbackFlagCollectAllAvailableGarbage = 1 << 4, | 6197 kGCCallbackFlagCollectAllAvailableGarbage = 1 << 4, |
6198 kGCCallbackFlagCollectAllExternalMemory = 1 << 5, | 6198 kGCCallbackFlagCollectAllExternalMemory = 1 << 5, |
6199 kGCCallbackScheduleIdleCollectGarbage = 1 << 6, | 6199 kGCCallbackScheduleIdleGarbageCollection = 1 << 6, |
6200 }; | 6200 }; |
6201 | 6201 |
6202 typedef void (*GCCallback)(GCType type, GCCallbackFlags flags); | 6202 typedef void (*GCCallback)(GCType type, GCCallbackFlags flags); |
6203 | 6203 |
6204 typedef void (*InterruptCallback)(Isolate* isolate, void* data); | 6204 typedef void (*InterruptCallback)(Isolate* isolate, void* data); |
6205 | 6205 |
6206 | 6206 |
6207 /** | 6207 /** |
6208 * Collection of V8 heap information. | 6208 * Collection of V8 heap information. |
6209 * | 6209 * |
(...skipping 3896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10106 */ | 10106 */ |
10107 | 10107 |
10108 | 10108 |
10109 } // namespace v8 | 10109 } // namespace v8 |
10110 | 10110 |
10111 | 10111 |
10112 #undef TYPE_CHECK | 10112 #undef TYPE_CHECK |
10113 | 10113 |
10114 | 10114 |
10115 #endif // INCLUDE_V8_H_ | 10115 #endif // INCLUDE_V8_H_ |
OLD | NEW |