V8 Project
v8::internal::GCIdleTimeAction Class Reference

#include <gc-idle-time-handler.h>

+ Collaboration diagram for v8::internal::GCIdleTimeAction:

Public Member Functions

void Print ()
 

Static Public Member Functions

static GCIdleTimeAction Done ()
 
static GCIdleTimeAction Nothing ()
 
static GCIdleTimeAction IncrementalMarking (intptr_t step_size)
 
static GCIdleTimeAction Scavenge ()
 
static GCIdleTimeAction FullGC ()
 
static GCIdleTimeAction FinalizeSweeping ()
 

Public Attributes

GCIdleTimeActionType type
 
intptr_t parameter
 

Detailed Description

Definition at line 23 of file gc-idle-time-handler.h.

Member Function Documentation

◆ Done()

static GCIdleTimeAction v8::internal::GCIdleTimeAction::Done ( )
inlinestatic

Definition at line 25 of file gc-idle-time-handler.h.

25  {
26  GCIdleTimeAction result;
27  result.type = DONE;
28  result.parameter = 0;
29  return result;
30  }

References v8::internal::DONE, parameter, and type.

Referenced by v8::internal::GCIdleTimeHandler::Compute().

+ Here is the caller graph for this function:

◆ FinalizeSweeping()

static GCIdleTimeAction v8::internal::GCIdleTimeAction::FinalizeSweeping ( )
inlinestatic

Definition at line 60 of file gc-idle-time-handler.h.

60  {
61  GCIdleTimeAction result;
62  result.type = DO_FINALIZE_SWEEPING;
63  result.parameter = 0;
64  return result;
65  }

References v8::internal::DO_FINALIZE_SWEEPING, parameter, and type.

Referenced by v8::internal::GCIdleTimeHandler::Compute().

+ Here is the caller graph for this function:

◆ FullGC()

static GCIdleTimeAction v8::internal::GCIdleTimeAction::FullGC ( )
inlinestatic

Definition at line 53 of file gc-idle-time-handler.h.

53  {
54  GCIdleTimeAction result;
55  result.type = DO_FULL_GC;
56  result.parameter = 0;
57  return result;
58  }

References v8::internal::DO_FULL_GC, parameter, and type.

Referenced by v8::internal::GCIdleTimeHandler::Compute().

+ Here is the caller graph for this function:

◆ IncrementalMarking()

static GCIdleTimeAction v8::internal::GCIdleTimeAction::IncrementalMarking ( intptr_t  step_size)
inlinestatic

Definition at line 39 of file gc-idle-time-handler.h.

39  {
40  GCIdleTimeAction result;
41  result.type = DO_INCREMENTAL_MARKING;
42  result.parameter = step_size;
43  return result;
44  }

References v8::internal::DO_INCREMENTAL_MARKING, parameter, and type.

Referenced by v8::internal::GCIdleTimeHandler::Compute().

+ Here is the caller graph for this function:

◆ Nothing()

static GCIdleTimeAction v8::internal::GCIdleTimeAction::Nothing ( )
inlinestatic

Definition at line 32 of file gc-idle-time-handler.h.

32  {
33  GCIdleTimeAction result;
34  result.type = DO_NOTHING;
35  result.parameter = 0;
36  return result;
37  }

References v8::internal::DO_NOTHING, parameter, and type.

Referenced by v8::internal::GCIdleTimeHandler::Compute().

+ Here is the caller graph for this function:

◆ Print()

void v8::internal::GCIdleTimeAction::Print ( )

Definition at line 19 of file gc-idle-time-handler.cc.

19  {
20  switch (type) {
21  case DONE:
22  PrintF("done");
23  break;
24  case DO_NOTHING:
25  PrintF("no action");
26  break;
28  PrintF("incremental marking with step %" V8_PTR_PREFIX "d", parameter);
29  break;
30  case DO_SCAVENGE:
31  PrintF("scavenge");
32  break;
33  case DO_FULL_GC:
34  PrintF("full GC");
35  break;
37  PrintF("finalize sweeping");
38  break;
39  }
40 }
#define V8_PTR_PREFIX
Definition: macros.h:360
void PrintF(const char *format,...)
Definition: utils.cc:80

References v8::internal::DO_FINALIZE_SWEEPING, v8::internal::DO_FULL_GC, v8::internal::DO_INCREMENTAL_MARKING, v8::internal::DO_NOTHING, v8::internal::DO_SCAVENGE, v8::internal::DONE, parameter, v8::internal::PrintF(), type, and V8_PTR_PREFIX.

Referenced by v8::internal::Heap::IdleNotification().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Scavenge()

static GCIdleTimeAction v8::internal::GCIdleTimeAction::Scavenge ( )
inlinestatic

Definition at line 46 of file gc-idle-time-handler.h.

46  {
47  GCIdleTimeAction result;
48  result.type = DO_SCAVENGE;
49  result.parameter = 0;
50  return result;
51  }

References v8::internal::DO_SCAVENGE, parameter, and type.

Referenced by v8::internal::GCIdleTimeHandler::Compute().

+ Here is the caller graph for this function:

Member Data Documentation

◆ parameter

intptr_t v8::internal::GCIdleTimeAction::parameter

◆ type


The documentation for this class was generated from the following files: