50 internal::ExecutionAccess access(
isolate_);
117 per_thread->set_thread_state(
NULL);
132 if (per_thread ==
NULL || per_thread->thread_state() ==
NULL) {
138 char* from = state->
data();
141 from = Relocatable::RestoreState(
isolate_, from);
146 per_thread->set_thread_state(
NULL);
184 terminate_on_restore_(
false),
188 thread_manager_(thread_manager) {
193 DeleteArray<char>(
data_);
214 flying_anchor->
next_ =
this;
224 return new_thread_state;
246 : mutex_owner_(
ThreadId::Invalid()),
247 lazily_archived_thread_(
ThreadId::Invalid()),
248 lazily_archived_thread_state_(
NULL),
250 in_use_anchor_(
NULL) {
281 per_thread->set_thread_state(state);
325 return data !=
NULL && data->thread_state() !=
NULL;
333 state = state->Next()) {
334 char* data = state->data();
337 data = Relocatable::Iterate(v, data);
345 state = state->Next()) {
346 char* data = state->data();
361 state = state->Next()) {
362 if (thread_id.Equals(state->id())) {
363 state->set_terminate_on_restore(
true);
Isolate represents an isolated instance of the V8 engine.
void Initialize(Isolate *isolate)
internal::Isolate * isolate_
static bool IsLocked(Isolate *isolate)
Returns whether or not the locker for a given isolate, is locked by the current thread.
static bool IsActive()
Returns whether v8::Locker is being used by this V8 instance.
internal::Isolate * isolate_
void Initialize(Isolate *isolate)
static bool Initialize()
Initializes V8.
char * ArchiveDebug(char *to)
void FreeThreadResources()
static int ArchiveSpacePerThread()
char * RestoreDebug(char *from)
void FreeThreadResources()
char * ArchiveThread(char *to)
void Iterate(v8::internal::ObjectVisitor *v)
char * RestoreThread(char *from)
static int ArchiveSpacePerThread()
HandleScopeImplementer * handle_scope_implementer()
StackGuard * stack_guard()
PerIsolateThreadData * FindPerThreadDataForThisThread()
static int ArchiveSpacePerThread()
void IterateThread(ThreadVisitor *v, char *t)
char * RestoreThread(char *from)
void FreeThreadResources()
void Iterate(ObjectVisitor *v)
char * ArchiveThread(char *to)
RegExpStack * regexp_stack()
v8::TryCatch * try_catch_handler()
PerIsolateThreadData * FindOrAllocatePerThreadDataForThisThread()
ThreadManager * thread_manager()
Bootstrapper * bootstrapper()
bool has_pending_exception()
char * ArchiveStack(char *to)
void FreeThreadResources()
char * RestoreStack(char *from)
static int ArchiveSpacePerThread()
static ThreadId Invalid()
static ThreadId Current()
ThreadId lazily_archived_thread_
void IterateArchivedThreads(ThreadVisitor *v)
ThreadState * FirstThreadStateInUse()
ThreadState * lazily_archived_thread_state_
ThreadState * in_use_anchor_
void TerminateExecution(ThreadId thread_id)
bool IsLockedByCurrentThread()
void FreeThreadResources()
void DeleteThreadStateList(ThreadState *anchor)
ThreadState * free_anchor_
void EagerlyArchiveThread()
void Iterate(ObjectVisitor *v)
ThreadState * GetFreeThreadState()
void set_terminate_on_restore(bool terminate_on_restore)
bool terminate_on_restore()
ThreadManager * thread_manager_
ThreadState(ThreadManager *thread_manager)
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 only print modified registers Trace simulator debug messages Implied by trace sim abort randomize hashes to avoid predictable hash Fixed seed to use to hash property Print the time it takes to deserialize the snapshot A filename with extra code to be included in the A file to write the raw snapshot bytes to(mksnapshot only)") DEFINE_STRING(raw_context_file
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
#define DCHECK(condition)
static int ArchiveSpacePerThread()
Debugger support for the V8 JavaScript engine.