V8 Project
v8::TestWithIsolate Class Reference

#include <test-utils.h>

+ Inheritance diagram for v8::TestWithIsolate:
+ Collaboration diagram for v8::TestWithIsolate:

Public Member Functions

 TestWithIsolate ()
 
virtual ~TestWithIsolate ()
 
Isolateisolate () const
 

Static Public Member Functions

static void SetUpTestCase ()
 
static void TearDownTestCase ()
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (TestWithIsolate)
 

Private Attributes

Isolate::Scope isolate_scope_
 
HandleScope handle_scope_
 

Static Private Attributes

static Isolateisolate_ = NULL
 

Detailed Description

Definition at line 15 of file test-utils.h.

Constructor & Destructor Documentation

◆ TestWithIsolate()

v8::TestWithIsolate::TestWithIsolate ( )

Definition at line 15 of file test-utils.cc.

Isolate::Scope isolate_scope_
Definition: test-utils.h:27
HandleScope handle_scope_
Definition: test-utils.h:28
Isolate * isolate() const
Definition: test-utils.h:20

◆ ~TestWithIsolate()

v8::TestWithIsolate::~TestWithIsolate ( )
virtual

Reimplemented in v8::internal::TestWithIsolate.

Definition at line 19 of file test-utils.cc.

19 {}

Member Function Documentation

◆ DISALLOW_COPY_AND_ASSIGN()

v8::TestWithIsolate::DISALLOW_COPY_AND_ASSIGN ( TestWithIsolate  )
private

◆ isolate()

Isolate* v8::TestWithIsolate::isolate ( ) const
inline

Definition at line 20 of file test-utils.h.

20 { return isolate_; }
static Isolate * isolate_
Definition: test-utils.h:26

References isolate_.

Referenced by v8::internal::compiler::ChangeLoweringTest::IsAllocateHeapNumber(), v8::internal::TestWithIsolate::isolate(), and v8::internal::compiler::ChangeLoweringTest::Reduce().

+ Here is the caller graph for this function:

◆ SetUpTestCase()

void v8::TestWithIsolate::SetUpTestCase ( )
static

Definition at line 23 of file test-utils.cc.

23  {
24  Test::SetUpTestCase();
25  EXPECT_EQ(NULL, isolate_);
27  EXPECT_TRUE(isolate_ != NULL);
28 }
static Isolate * New(const CreateParams &params=CreateParams())
Creates a new isolate.
Definition: api.cc:6583
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be NULL

References isolate_, v8::Isolate::New(), and NULL.

Referenced by v8::internal::compiler::GraphReducerTest::SetUpTestCase().

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

◆ TearDownTestCase()

void v8::TestWithIsolate::TearDownTestCase ( )
static

Definition at line 32 of file test-utils.cc.

32  {
33  ASSERT_TRUE(isolate_ != NULL);
34  isolate_->Dispose();
35  isolate_ = NULL;
36  Test::TearDownTestCase();
37 }
void Dispose()
Disposes the isolate.
Definition: api.cc:6609

References v8::Isolate::Dispose(), isolate_, and NULL.

Referenced by v8::internal::compiler::GraphReducerTest::TearDownTestCase().

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

Member Data Documentation

◆ handle_scope_

HandleScope v8::TestWithIsolate::handle_scope_
private

Definition at line 28 of file test-utils.h.

◆ isolate_

Isolate * v8::TestWithIsolate::isolate_ = NULL
staticprivate

Definition at line 26 of file test-utils.h.

Referenced by isolate(), SetUpTestCase(), and TearDownTestCase().

◆ isolate_scope_

Isolate::Scope v8::TestWithIsolate::isolate_scope_
private

Definition at line 27 of file test-utils.h.


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