V8 Project
isolate.h File Reference
#include "include/v8-debug.h"
#include "src/allocation.h"
#include "src/assert-scope.h"
#include "src/base/atomicops.h"
#include "src/builtins.h"
#include "src/contexts.h"
#include "src/date.h"
#include "src/execution.h"
#include "src/frames.h"
#include "src/global-handles.h"
#include "src/handles.h"
#include "src/hashmap.h"
#include "src/heap/heap.h"
#include "src/optimizing-compiler-thread.h"
#include "src/regexp-stack.h"
#include "src/runtime/runtime.h"
#include "src/runtime-profiler.h"
#include "src/zone.h"
+ Include dependency graph for isolate.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  v8::internal::ThreadId
 
class  v8::internal::BASE_EMBEDDED< Visitor >
 
class  v8::internal::Isolate
 
class  v8::internal::Isolate::PerIsolateThreadData
 
class  v8::internal::Isolate::ExceptionScope
 
class  v8::internal::Isolate::ThreadDataTable
 
class  v8::internal::Isolate::EntryStackItem
 
class  v8::internal::PromiseOnStack
 
class  v8::internal::FINAL< kOperandKind, kNumCachedOperands >
 Source to read snapshot and builtins files from. More...
 
class  v8::internal::FINAL< kOperandKind, kNumCachedOperands >::Scope
 

Namespaces

 v8
 Debugger support for the V8 JavaScript engine.
 
 v8::base
 
 v8::internal
 

Macros

#define RETURN_FAILURE_IF_SCHEDULED_EXCEPTION(isolate)
 
#define RETURN_VALUE_IF_SCHEDULED_EXCEPTION(isolate, value)
 
#define RETURN_EXCEPTION_IF_SCHEDULED_EXCEPTION(isolate, T)    RETURN_VALUE_IF_SCHEDULED_EXCEPTION(isolate, MaybeHandle<T>())
 
#define ASSIGN_RETURN_ON_EXCEPTION_VALUE(isolate, dst, call, value)
 
#define ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, dst, call)
 
#define ASSIGN_RETURN_ON_EXCEPTION(isolate, dst, call, T)    ASSIGN_RETURN_ON_EXCEPTION_VALUE(isolate, dst, call, MaybeHandle<T>())
 
#define THROW_NEW_ERROR(isolate, call, T)
 
#define THROW_NEW_ERROR_RETURN_FAILURE(isolate, call)
 
#define RETURN_ON_EXCEPTION_VALUE(isolate, call, value)
 
#define RETURN_FAILURE_ON_EXCEPTION(isolate, call)    RETURN_ON_EXCEPTION_VALUE(isolate, call, isolate->heap()->exception())
 
#define RETURN_ON_EXCEPTION(isolate, call, T)    RETURN_ON_EXCEPTION_VALUE(isolate, call, MaybeHandle<T>())
 
#define FOR_EACH_ISOLATE_ADDRESS_NAME(C)
 
#define FIELD_ACCESSOR(type, name)
 
#define ISOLATE_INIT_SIMULATOR_LIST(V)
 
#define ISOLATE_INIT_DEBUG_ARRAY_LIST(V)
 
#define ISOLATE_INIT_ARRAY_LIST(V)
 
#define ISOLATE_INIT_LIST(V)
 
#define THREAD_LOCAL_TOP_ACCESSOR(type, name)
 
#define DECLARE_ENUM(CamelName, hacker_name)   k##CamelName##Address,
 
#define GLOBAL_ACCESSOR(type, name, initialvalue)
 
#define GLOBAL_ARRAY_ACCESSOR(type, name, length)
 
#define NATIVE_CONTEXT_FIELD_ACCESSOR(index, type, name)
 
#define GLOBAL_BACKING_STORE(type, name, initialvalue)    type name##_;
 
#define GLOBAL_ARRAY_BACKING_STORE(type, name, length)    type name##_[length];
 

Typedefs

typedef void * v8::internal::ExternalReferenceRedirectorPointer()
 
typedef List< HeapObject * > v8::internal::DebugObjectCache
 

Macro Definition Documentation

◆ ASSIGN_RETURN_FAILURE_ON_EXCEPTION

#define ASSIGN_RETURN_FAILURE_ON_EXCEPTION (   isolate,
  dst,
  call 
)
Value:
isolate, dst, call, isolate->heap()->exception())
#define ASSIGN_RETURN_ON_EXCEPTION_VALUE(isolate, dst, call, value)
Definition: isolate.h:123

Definition at line 131 of file isolate.h.

◆ ASSIGN_RETURN_ON_EXCEPTION

#define ASSIGN_RETURN_ON_EXCEPTION (   isolate,
  dst,
  call,
  T 
)     ASSIGN_RETURN_ON_EXCEPTION_VALUE(isolate, dst, call, MaybeHandle<T>())

Definition at line 135 of file isolate.h.

◆ ASSIGN_RETURN_ON_EXCEPTION_VALUE

#define ASSIGN_RETURN_ON_EXCEPTION_VALUE (   isolate,
  dst,
  call,
  value 
)
Value:
do { \
if (!(call).ToHandle(&dst)) { \
DCHECK((isolate)->has_pending_exception()); \
return value; \
} \
} while (false)

Definition at line 123 of file isolate.h.

◆ DECLARE_ENUM

#define DECLARE_ENUM (   CamelName,
  hacker_name 
)    k##CamelName##Address,

Definition at line 464 of file isolate.h.

◆ FIELD_ACCESSOR

#define FIELD_ACCESSOR (   type,
  name 
)
Value:
inline void set_##name(type v) { name##_ = v; } \
inline type name() const { return name##_; }
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 expose gc extension under the specified name show built in functions in stack traces use random jit cookie to mask large constants minimum length for automatic enable preparsing CPU profiler sampling interval in microseconds trace out of bounds accesses to external arrays default size of stack region v8 is allowed to maximum length of function source code printed in a stack trace min size of a semi the new space consists of two semi spaces print one trace line following each garbage collection do not print trace line after scavenger collection print cumulative GC statistics in name
#define _

Definition at line 225 of file isolate.h.

◆ FOR_EACH_ISOLATE_ADDRESS_NAME

#define FOR_EACH_ISOLATE_ADDRESS_NAME (   C)
Value:
C(Handler, handler) \
C(CEntryFP, c_entry_fp) \
C(Context, context) \
C(PendingException, pending_exception) \
C(ExternalCaughtException, external_caught_exception) \
C(JSEntrySP, js_entry_sp)

Definition at line 169 of file isolate.h.

◆ GLOBAL_ACCESSOR

#define GLOBAL_ACCESSOR (   type,
  name,
  initialvalue 
)
Value:
inline type name() const { \
DCHECK(OFFSET_OF(Isolate, name##_) == name##_debug_offset_); \
return name##_; \
} \
inline void set_##name(type value) { \
DCHECK(OFFSET_OF(Isolate, name##_) == name##_debug_offset_); \
name##_ = value; \
}
#define OFFSET_OF(type, field)
Definition: macros.h:22

Definition at line 826 of file isolate.h.

◆ GLOBAL_ARRAY_ACCESSOR

#define GLOBAL_ARRAY_ACCESSOR (   type,
  name,
  length 
)
Value:
inline type* name() { \
DCHECK(OFFSET_OF(Isolate, name##_) == name##_debug_offset_); \
return &(name##_)[0]; \
}

Definition at line 838 of file isolate.h.

◆ GLOBAL_ARRAY_BACKING_STORE

#define GLOBAL_ARRAY_BACKING_STORE (   type,
  name,
  length 
)     type name##_[length];

Definition at line 1304 of file isolate.h.

◆ GLOBAL_BACKING_STORE

#define GLOBAL_BACKING_STORE (   type,
  name,
  initialvalue 
)     type name##_;

Definition at line 1299 of file isolate.h.

◆ ISOLATE_INIT_ARRAY_LIST

#define ISOLATE_INIT_ARRAY_LIST (   V)
Value:
/* SerializerDeserializer state. */ \
V(int32_t, jsregexp_static_offsets_vector, kJSRegexpStaticOffsetsVectorSize) \
V(int, bad_char_shift_table, kUC16AlphabetSize) \
V(int, good_suffix_shift_table, (kBMMaxShift + 1)) \
V(int, suffix_table, (kBMMaxShift + 1)) \
V(uint32_t, private_random_seed, 2) \
ISOLATE_INIT_DEBUG_ARRAY_LIST(V)
int int32_t
Definition: unicode.cc:24

Definition at line 345 of file isolate.h.

◆ ISOLATE_INIT_DEBUG_ARRAY_LIST

#define ISOLATE_INIT_DEBUG_ARRAY_LIST (   V)

Definition at line 341 of file isolate.h.

◆ ISOLATE_INIT_LIST

#define ISOLATE_INIT_LIST (   V)

Definition at line 356 of file isolate.h.

◆ ISOLATE_INIT_SIMULATOR_LIST

#define ISOLATE_INIT_SIMULATOR_LIST (   V)

Definition at line 328 of file isolate.h.

◆ NATIVE_CONTEXT_FIELD_ACCESSOR

#define NATIVE_CONTEXT_FIELD_ACCESSOR (   index,
  type,
  name 
)
Value:
Handle<type> name() { \
return Handle<type>(native_context()->name(), this); \
} \
bool is_##name(type* value) { \
return native_context()->is_##name(value); \
}

Definition at line 846 of file isolate.h.

◆ RETURN_EXCEPTION_IF_SCHEDULED_EXCEPTION

#define RETURN_EXCEPTION_IF_SCHEDULED_EXCEPTION (   isolate,
  T 
)     RETURN_VALUE_IF_SCHEDULED_EXCEPTION(isolate, MaybeHandle<T>())

Definition at line 120 of file isolate.h.

◆ RETURN_FAILURE_IF_SCHEDULED_EXCEPTION

#define RETURN_FAILURE_IF_SCHEDULED_EXCEPTION (   isolate)
Value:
do { \
Isolate* __isolate__ = (isolate); \
if (__isolate__->has_scheduled_exception()) { \
return __isolate__->PromoteScheduledException(); \
} \
} while (false)

Definition at line 101 of file isolate.h.

◆ RETURN_FAILURE_ON_EXCEPTION

#define RETURN_FAILURE_ON_EXCEPTION (   isolate,
  call 
)     RETURN_ON_EXCEPTION_VALUE(isolate, call, isolate->heap()->exception())

Definition at line 162 of file isolate.h.

◆ RETURN_ON_EXCEPTION

#define RETURN_ON_EXCEPTION (   isolate,
  call,
  T 
)     RETURN_ON_EXCEPTION_VALUE(isolate, call, MaybeHandle<T>())

Definition at line 165 of file isolate.h.

◆ RETURN_ON_EXCEPTION_VALUE

#define RETURN_ON_EXCEPTION_VALUE (   isolate,
  call,
  value 
)
Value:
do { \
if ((call).is_null()) { \
DCHECK((isolate)->has_pending_exception()); \
return value; \
} \
} while (false)

Definition at line 154 of file isolate.h.

◆ RETURN_VALUE_IF_SCHEDULED_EXCEPTION

#define RETURN_VALUE_IF_SCHEDULED_EXCEPTION (   isolate,
  value 
)
Value:
do { \
Isolate* __isolate__ = (isolate); \
if (__isolate__->has_scheduled_exception()) { \
__isolate__->PromoteScheduledException(); \
return value; \
} \
} while (false)

Definition at line 111 of file isolate.h.

◆ THREAD_LOCAL_TOP_ACCESSOR

#define THREAD_LOCAL_TOP_ACCESSOR (   type,
  name 
)
Value:
inline void set_##name(type v) { thread_local_top_.name##_ = v; } \
inline type name() const { return thread_local_top_.name##_; }

Definition at line 390 of file isolate.h.

◆ THROW_NEW_ERROR

#define THROW_NEW_ERROR (   isolate,
  call,
  T 
)
Value:
do { \
Handle<Object> __error__; \
ASSIGN_RETURN_ON_EXCEPTION(isolate, __error__, isolate->factory()->call, \
T); \
return isolate->Throw<T>(__error__); \
} while (false)
#define T(name, string, precedence)
Definition: token.cc:25

Definition at line 138 of file isolate.h.

◆ THROW_NEW_ERROR_RETURN_FAILURE

#define THROW_NEW_ERROR_RETURN_FAILURE (   isolate,
  call 
)
Value:
do { \
Handle<Object> __error__; \
ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, __error__, \
isolate->factory()->call); \
return isolate->Throw(*__error__); \
} while (false)

Definition at line 146 of file isolate.h.