v8  7.4.288(node12.0.0)
V8 is Google's open source JavaScript engine
Testing Class Reference

#include <v8-testing.h>

Public Types

enum  StressType { kStressTypeOpt, kStressTypeDeopt }
 

Static Public Member Functions

static void SetStressRunType (StressType type)
 
static int GetStressRuns ()
 
static void PrepareStressRun (int run)
 
static void DeoptimizeAll (Isolate *isolate)
 

Detailed Description

Definition at line 15 of file v8-testing.h.

Member Enumeration Documentation

◆ StressType

enum StressType
Enumerator
kStressTypeOpt 
kStressTypeDeopt 

Definition at line 17 of file v8-testing.h.

Member Function Documentation

◆ DeoptimizeAll()

static void DeoptimizeAll ( Isolate isolate)
static

Force deoptimization of all functions.

◆ GetStressRuns()

static int GetStressRuns ( )
static

Get the number of runs of a given test that is required to get the full stress coverage.

◆ PrepareStressRun()

static void PrepareStressRun ( int  run)
static

Indicate the number of the run which is about to start. The value of run should be between 0 and one less than the result from GetStressRuns()

◆ SetStressRunType()

static void SetStressRunType ( StressType  type)
static

Set the type of stressing to do. The default if not set is kStressTypeOpt.


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