| Index: src/heap/gc-idle-time-handler.h
|
| diff --git a/src/heap/gc-idle-time-handler.h b/src/heap/gc-idle-time-handler.h
|
| index 28905785525e33238c5f8acbcdc1152814f630c0..899f289e22c0a265025d89e7ff54b1912b7c48dd 100644
|
| --- a/src/heap/gc-idle-time-handler.h
|
| +++ b/src/heap/gc-idle-time-handler.h
|
| @@ -11,6 +11,7 @@ namespace v8 {
|
| namespace internal {
|
|
|
| enum GCIdleTimeActionType {
|
| + DONE,
|
| DO_NOTHING,
|
| DO_INCREMENTAL_MARKING,
|
| DO_SCAVENGE,
|
| @@ -21,6 +22,13 @@ enum GCIdleTimeActionType {
|
|
|
| class GCIdleTimeAction {
|
| public:
|
| + static GCIdleTimeAction Done() {
|
| + GCIdleTimeAction result;
|
| + result.type = DONE;
|
| + result.parameter = 0;
|
| + return result;
|
| + }
|
| +
|
| static GCIdleTimeAction Nothing() {
|
| GCIdleTimeAction result;
|
| result.type = DO_NOTHING;
|
|
|