Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(317)

Side by Side Diff: include/v8.h

Issue 1757263003: Use a different GCCallbackFlag for GCs triggered by CollectAllAvailableGarbage (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/heap/heap.cc » ('j') | src/heap/heap.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 5072 matching lines...) Expand 10 before | Expand all | Expand 10 after
5083 */ 5083 */
5084 enum GCType { 5084 enum GCType {
5085 kGCTypeScavenge = 1 << 0, 5085 kGCTypeScavenge = 1 << 0,
5086 kGCTypeMarkSweepCompact = 1 << 1, 5086 kGCTypeMarkSweepCompact = 1 << 1,
5087 kGCTypeIncrementalMarking = 1 << 2, 5087 kGCTypeIncrementalMarking = 1 << 2,
5088 kGCTypeProcessWeakCallbacks = 1 << 3, 5088 kGCTypeProcessWeakCallbacks = 1 << 3,
5089 kGCTypeAll = kGCTypeScavenge | kGCTypeMarkSweepCompact | 5089 kGCTypeAll = kGCTypeScavenge | kGCTypeMarkSweepCompact |
5090 kGCTypeIncrementalMarking | kGCTypeProcessWeakCallbacks 5090 kGCTypeIncrementalMarking | kGCTypeProcessWeakCallbacks
5091 }; 5091 };
5092 5092
5093 /**
5094 * GCCallbackFlags is used to notify additional information about the GC
5095 * callback.
5096 * - kGCCallbackFlagConstructRetainedObjectInfos: The GC callback is for
5097 * constructing retained object infos.
5098 * - kGCCallbackFlagForced: The GC callback is for a forced GC.
5099 * - kGCCallbackFlagSynchronousPhantomCallbackProcessing: The GC callback
5100 * is called synchronously without getting posted to an idle task.
5101 * - kGCCallbackFlagCollectAllAvailableGarbage: The GC callback is called
5102 * in a phase where V8 is trying to collect all available garbage
5103 * (e.g., handling a low memory notification).
5104 */
5093 enum GCCallbackFlags { 5105 enum GCCallbackFlags {
5094 kNoGCCallbackFlags = 0, 5106 kNoGCCallbackFlags = 0,
5095 kGCCallbackFlagConstructRetainedObjectInfos = 1 << 1, 5107 kGCCallbackFlagConstructRetainedObjectInfos = 1 << 1,
5096 kGCCallbackFlagForced = 1 << 2, 5108 kGCCallbackFlagForced = 1 << 2,
5097 kGCCallbackFlagSynchronousPhantomCallbackProcessing = 1 << 3 5109 kGCCallbackFlagSynchronousPhantomCallbackProcessing = 1 << 3,
5110 kGCCallbackFlagCollectAllAvailableGarbage = 1 << 4,
5098 }; 5111 };
5099 5112
5100 typedef void (*GCCallback)(GCType type, GCCallbackFlags flags); 5113 typedef void (*GCCallback)(GCType type, GCCallbackFlags flags);
5101 5114
5102 typedef void (*InterruptCallback)(Isolate* isolate, void* data); 5115 typedef void (*InterruptCallback)(Isolate* isolate, void* data);
5103 5116
5104 5117
5105 /** 5118 /**
5106 * Collection of V8 heap information. 5119 * Collection of V8 heap information.
5107 * 5120 *
(...skipping 3485 matching lines...) Expand 10 before | Expand all | Expand 10 after
8593 */ 8606 */
8594 8607
8595 8608
8596 } // namespace v8 8609 } // namespace v8
8597 8610
8598 8611
8599 #undef TYPE_CHECK 8612 #undef TYPE_CHECK
8600 8613
8601 8614
8602 #endif // INCLUDE_V8_H_ 8615 #endif // INCLUDE_V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap/heap.cc » ('j') | src/heap/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698