v8  3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Isolate Class Reference

#include <isolate.h>

Data Structures

class  ExceptionScope
 
class  PerIsolateThreadData
 

Public Types

enum  AddressId { kIsolateAddressCount }
 

Public Member Functions

 ~Isolate ()
 
 INLINE (static Isolate *Current())
 
 INLINE (static Isolate *UncheckedCurrent())
 
void InitializeLoggingAndCounters ()
 
bool Init (Deserializer *des)
 
bool IsInitialized ()
 
bool IsInUse ()
 
void TearDown ()
 
bool IsDefaultIsolate () const
 
PerIsolateThreadDataFindPerThreadDataForThisThread ()
 
Mutexbreak_access ()
 
Mutexdebugger_access ()
 
Address get_address_from_id (AddressId id)
 
Contextcontext ()
 
void set_context (Context *context)
 
Context ** context_address ()
 
SaveContext * save_context ()
 
void set_save_context (SaveContext *save)
 
ThreadId thread_id ()
 
void set_thread_id (ThreadId id)
 
MaybeObject * pending_exception ()
 
bool external_caught_exception ()
 
void set_external_caught_exception (bool value)
 
void set_pending_exception (MaybeObject *exception)
 
void clear_pending_exception ()
 
MaybeObject ** pending_exception_address ()
 
bool has_pending_exception ()
 
void clear_pending_message ()
 
v8::TryCatchtry_catch_handler ()
 
Address try_catch_handler_address ()
 
bool * external_caught_exception_address ()
 
v8::TryCatchcatcher ()
 
void set_catcher (v8::TryCatch *catcher)
 
MaybeObject ** scheduled_exception_address ()
 
Address pending_message_obj_address ()
 
Address has_pending_message_address ()
 
Address pending_message_script_address ()
 
MaybeObject * scheduled_exception ()
 
bool has_scheduled_exception ()
 
void clear_scheduled_exception ()
 
bool IsExternallyCaught ()
 
bool is_catchable_by_javascript (MaybeObject *exception)
 
Addressc_entry_fp_address ()
 
Addresshandler_address ()
 
Addressjs_entry_sp_address ()
 
void * formal_count_address ()
 
Handle< GlobalObjectglobal ()
 
Objectglobal_proxy ()
 
Handle< JSBuiltinsObjectjs_builtins_object ()
 
void FreeThreadResources ()
 
bool OptionalRescheduleException (bool is_bottom_call)
 
void SetCaptureStackTraceForUncaughtExceptions (bool capture, int frame_limit, StackTrace::StackTraceOptions options)
 
bool is_out_of_memory ()
 
bool ignore_out_of_memory ()
 
void set_ignore_out_of_memory (bool value)
 
void PrintCurrentStackTrace (FILE *out)
 
void PrintStackTrace (FILE *out, char *thread_data)
 
void PrintStack (StringStream *accumulator)
 
void PrintStack ()
 
Handle< StringStackTraceString ()
 
Handle< JSArrayCaptureCurrentStackTrace (int frame_limit, StackTrace::StackTraceOptions options)
 
void CaptureAndSetCurrentStackTraceFor (Handle< JSObject > error_object)
 
bool MayNamedAccess (JSObject *receiver, Object *key, v8::AccessType type)
 
bool MayIndexedAccess (JSObject *receiver, uint32_t index, v8::AccessType type)
 
void SetFailedAccessCheckCallback (v8::FailedAccessCheckCallback callback)
 
void ReportFailedAccessCheck (JSObject *receiver, v8::AccessType type)
 
FailureThrow (Object *exception, MessageLocation *location=NULL)
 
FailureReThrow (MaybeObject *exception)
 
void ScheduleThrow (Object *exception)
 
void ReportPendingMessages ()
 
FailureThrowIllegalOperation ()
 
FailurePromoteScheduledException ()
 
void DoThrow (Object *exception, MessageLocation *location)
 
bool ShouldReportException (bool *can_be_caught_externally, bool catchable_by_javascript)
 
void ComputeLocation (MessageLocation *target)
 
void TraceException (bool flag)
 
FailureStackOverflow ()
 
FailureTerminateExecution ()
 
void Iterate (ObjectVisitor *v)
 
void Iterate (ObjectVisitor *v, ThreadLocalTop *t)
 
char * Iterate (ObjectVisitor *v, char *t)
 
void IterateThread (ThreadVisitor *v)
 
void IterateThread (ThreadVisitor *v, char *t)
 
Handle< Contextglobal_context ()
 
Handle< ContextGetCallingGlobalContext ()
 
void RegisterTryCatchHandler (v8::TryCatch *that)
 
void UnregisterTryCatchHandler (v8::TryCatch *that)
 
char * ArchiveThread (char *to)
 
char * RestoreThread (char *from)
 
Bootstrapperbootstrapper ()
 
Counterscounters ()
 
CodeRangecode_range ()
 
RuntimeProfilerruntime_profiler ()
 
CompilationCachecompilation_cache ()
 
Loggerlogger ()
 
StackGuardstack_guard ()
 
Heapheap ()
 
StatsTablestats_table ()
 
StubCachestub_cache ()
 
DeoptimizerDatadeoptimizer_data ()
 
ThreadLocalTop * thread_local_top ()
 
TranscendentalCachetranscendental_cache () const
 
MemoryAllocatormemory_allocator ()
 
KeyedLookupCachekeyed_lookup_cache ()
 
ContextSlotCachecontext_slot_cache ()
 
DescriptorLookupCachedescriptor_lookup_cache ()
 
v8::ImplementationUtilities::HandleScopeDatahandle_scope_data ()
 
HandleScopeImplementerhandle_scope_implementer ()
 
Zonezone ()
 
UnicodeCacheunicode_cache ()
 
InnerPointerToCodeCacheinner_pointer_to_code_cache ()
 
StringInputBufferwrite_input_buffer ()
 
GlobalHandlesglobal_handles ()
 
ThreadManagerthread_manager ()
 
ContextSwitchercontext_switcher ()
 
void set_context_switcher (ContextSwitcher *switcher)
 
StringTrackerstring_tracker ()
 
unibrow::Mapping
< unibrow::Ecma262UnCanonicalize > * 
jsregexp_uncanonicalize ()
 
unibrow::Mapping
< unibrow::CanonicalizationRange > * 
jsregexp_canonrange ()
 
StringInputBufferobjects_string_compare_buffer_a ()
 
StringInputBufferobjects_string_compare_buffer_b ()
 
StaticResource
< StringInputBuffer > * 
objects_string_input_buffer ()
 
RuntimeStateruntime_state ()
 
void set_fp_stubs_generated (bool value)
 
bool fp_stubs_generated ()
 
StaticResource
< SafeStringInputBuffer > * 
compiler_safe_string_input_buffer ()
 
Builtinsbuiltins ()
 
void NotifyExtensionInstalled ()
 
bool has_installed_extensions ()
 
unibrow::Mapping
< unibrow::Ecma262Canonicalize > * 
regexp_macro_assembler_canonicalize ()
 
RegExpStackregexp_stack ()
 
unibrow::Mapping
< unibrow::Ecma262Canonicalize > * 
interp_canonicalize_mapping ()
 
void * PreallocatedStorageNew (size_t size)
 
void PreallocatedStorageDelete (void *p)
 
void PreallocatedStorageInit (size_t size)
 
bool IsDebuggerActive ()
 
bool DebuggerHasBreakPoints ()
 
Factoryfactory ()
 
Address external_callback ()
 
void set_external_callback (Address callback)
 
StateTag current_vm_state ()
 
void SetCurrentVMState (StateTag state)
 
void SetData (void *data)
 
void * GetData ()
 
LookupResult * top_lookup_result ()
 
void SetTopLookupResult (LookupResult *top)
 
bool context_exit_happened ()
 
void set_context_exit_happened (bool context_exit_happened)
 
double time_millis_since_init ()
 
DateCachedate_cache ()
 
void set_date_cache (DateCache *date_cache)
 

Static Public Member Functions

static PerIsolateThreadDataCurrentPerIsolateThreadData ()
 
static void EnsureDefaultIsolate ()
 
static StackGuardGetDefaultIsolateStackGuard ()
 
static Thread::LocalStorageKey isolate_key ()
 
static Thread::LocalStorageKey thread_id_key ()
 
static Thread::LocalStorageKey per_isolate_thread_data_key ()
 
static void EnterDefaultIsolate ()
 
static Address c_entry_fp (ThreadLocalTop *thread)
 
static Address handler (ThreadLocalTop *thread)
 
static Address js_entry_sp (ThreadLocalTop *thread)
 
static int ArchiveSpacePerThread ()
 

Static Public Attributes

static const char *const kStackOverflowMessage
 
static const int kUC16AlphabetSize = 256
 
static const int kBMMaxShift = 250
 
static const int kPartialSnapshotCacheCapacity = 1400
 
static const int kJSRegexpStaticOffsetsVectorSize = 128
 

Friends

struct GlobalState
 
struct InitializeGlobalState
 
class ExecutionAccess
 
class IsolateInitializer
 
class ThreadManager
 
class Simulator
 
class StackGuard
 
class ThreadId
 
class TestMemoryAllocatorScope
 
class v8::Isolate
 
class v8::Locker
 
class v8::Unlocker
 

Detailed Description

Definition at line 357 of file isolate.h.

Member Enumeration Documentation

enum AddressId
Enumerator
kIsolateAddressCount 

Definition at line 422 of file isolate.h.

Constructor & Destructor Documentation

~Isolate ( )

Definition at line 1605 of file isolate.cc.

References NULL, and TRACE_ISOLATE.

Member Function Documentation

static int ArchiveSpacePerThread ( )
inlinestatic

Definition at line 650 of file isolate.h.

Mutex* break_access ( )
inline

Definition at line 510 of file isolate.h.

static Address c_entry_fp ( ThreadLocalTop *  thread)
inlinestatic

Definition at line 614 of file isolate.h.

Referenced by IC::IC(), Isolate::PrintStack(), and CallICBase::TryUpdateExtraICState().

Address* c_entry_fp_address ( )
inline

Definition at line 619 of file isolate.h.

void CaptureAndSetCurrentStackTraceFor ( Handle< JSObject error_object)
v8::TryCatch* catcher ( )
inline

Definition at line 571 of file isolate.h.

Referenced by Isolate::set_catcher().

void clear_pending_exception ( )
inline
void clear_pending_message ( )
inline

Definition at line 557 of file isolate.h.

References v8::internal::NULL.

Referenced by Isolate::ArchiveThread(), and Isolate::ReportPendingMessages().

void clear_scheduled_exception ( )
inline
StaticResource<SafeStringInputBuffer>* compiler_safe_string_input_buffer ( )
inline

Definition at line 905 of file isolate.h.

void ComputeLocation ( MessageLocation target)

Definition at line 990 of file isolate.cc.

References Script::cast(), JSFunction::cast(), and JavaScriptFrame::function().

Referenced by Isolate::DoThrow().

Context** context_address ( )
inline

Definition at line 523 of file isolate.h.

bool context_exit_happened ( )
inline
ContextSlotCache* context_slot_cache ( )
inline

Definition at line 838 of file isolate.h.

Referenced by ScopeInfo::ContextSlotIndex().

ContextSwitcher* context_switcher ( )
inline

Definition at line 869 of file isolate.h.

Referenced by ContextSwitcher::StartPreemption(), and ContextSwitcher::StopPreemption().

static PerIsolateThreadData* CurrentPerIsolateThreadData ( )
inlinestatic

Definition at line 431 of file isolate.h.

References Thread::GetThreadLocal().

Referenced by Isolate::EnterDefaultIsolate(), and V8::Initialize().

DateCache* date_cache ( )
inline
Mutex* debugger_access ( )
inline

Definition at line 513 of file isolate.h.

bool DebuggerHasBreakPoints ( )
inline

Definition at line 62 of file isolate-inl.h.

Referenced by RuntimeProfiler::AttemptOnStackReplacement().

DescriptorLookupCache* descriptor_lookup_cache ( )
inline

Definition at line 842 of file isolate.h.

Referenced by Map::LookupInDescriptors().

Address external_callback ( )
inline

Definition at line 984 of file isolate.h.

Referenced by StackTracer::Trace().

bool external_caught_exception ( )
inline

Definition at line 539 of file isolate.h.

bool* external_caught_exception_address ( )
inline

Definition at line 568 of file isolate.h.

Factory* factory ( )
inline

Definition at line 977 of file isolate.h.

Referenced by V8::AddMessageListener(), Scope::AllocateNonParameterLocal(), Scope::AllocateParameterLocals(), RegExpImpl::AtomExec(), v8::internal::CalculateLineEnds(), JSProxy::CallTrap(), Isolate::CaptureAndSetCurrentStackTraceFor(), Isolate::CaptureCurrentStackTrace(), Execution::CharAt(), RegExpImpl::Compile(), Script::Compile(), CompiledReplacement::Compile(), Compiler::CompileEval(), KeyedIC::ComputeStub(), String::Concat(), Runtime::CreateArrayLiteralBoilerplate(), Date::DateTimeConfigurationChangeNotification(), DictionaryElementsAccessor::DeleteCommon(), JSProxy::DeleteElementWithHandler(), JSObject::DeleteProperty(), JSProxy::DeletePropertyWithHandler(), String::Empty(), Exception::Error(), StubCache::factory(), v8::False(), JSProxy::Fix(), Accessors::FunctionGetArguments(), JSProxy::GetElementAttributeWithHandler(), v8::internal::GetEnumPropertyKeys(), CpuProfileNode::GetFunctionName(), HeapGraphNode::GetHeapValue(), v8::internal::GetKeysFor(), v8::internal::GetKeysInFixedArrayFor(), HeapGraphEdge::GetName(), HeapGraphNode::GetName(), Runtime::GetObjectProperty(), Object::GetOwnPropertyNames(), v8::internal::GetProperty(), JSProxy::GetPropertyAttributeWithHandler(), Object::GetPropertyNames(), JSObject::GetPropertyWithCallback(), CpuProfileNode::GetScriptResourceName(), v8::internal::GetScriptWrapper(), SharedFunctionInfo::GetSourceCode(), Execution::GetStackTraceLine(), ThisNamedPropertyAssignmentFinder::GetThisPropertyAssignments(), CpuProfile::GetTitle(), HeapSnapshot::GetTitle(), Scope::HasArgumentsParameter(), Scope::Initialize(), v8::internal::InitScriptLineEnds(), RegExpImpl::IrregexpExec(), KeyedCallIC::LoadFunction(), PolymorphicCodeCache::Lookup(), CodeGenerator::MakeCodeEpilogue(), Deoptimizer::MaterializeHeapNumbers(), TypeFeedbackCells::MegamorphicSentinel(), Bootstrapper::NativesSourceLookup(), NeanderObject::NeanderObject(), String::New(), Number::New(), Integer::New(), Object::New(), Array::New(), NumberObject::New(), BooleanObject::New(), StringObject::New(), FunctionTemplate::New(), Signature::New(), TypeSwitch::New(), v8::NewExternalAsciiStringHandle(), v8::NewExternalStringHandle(), Integer::NewFromUnsigned(), String::NewSymbol(), String::NewUndetectable(), v8::Null(), JSObject::PreventExtensions(), Isolate::PrintCurrentStackTrace(), Exception::RangeError(), IC::ReferenceError(), Exception::ReferenceError(), V8::RemoveMessageListeners(), Script::Run(), v8::internal::RUNTIME_FUNCTION(), ObjectTemplate::SetAccessCheckCallbacks(), FunctionTemplate::SetCallHandler(), JSObject::SetDictionaryElement(), JSObject::SetElement(), Runtime::SetObjectProperty(), Object::SetPointerInInternalField(), JSObject::SetPropertyForResult(), JSProxy::SetPropertyViaPrototypesWithHandler(), JSObject::SetPropertyWithCallback(), Isolate::StackOverflow(), Isolate::StackTraceString(), Runtime::StringReplaceOneCharWithString(), Exception::SyntaxError(), V8HeapExplorer::TagGlobalObjects(), TEST(), ArrayConcatVisitor::ToArray(), Value::ToArrayIndex(), ReplacementStringBuilder::ToString(), v8::True(), Object::TurnOnAccessCheck(), IC::TypeError(), Exception::TypeError(), v8::Undefined(), TypeFeedbackCells::UninitializedSentinel(), and ArrayConcatVisitor::visit().

Isolate::PerIsolateThreadData * FindPerThreadDataForThisThread ( )

Definition at line 352 of file isolate.cc.

References ThreadId::Current(), and v8::internal::NULL.

Referenced by ThreadManager::IsArchived(), and ThreadManager::RestoreThread().

void* formal_count_address ( )
inline

Definition at line 633 of file isolate.h.

bool fp_stubs_generated ( )
inline

Definition at line 903 of file isolate.h.

void FreeThreadResources ( )
inline

Definition at line 651 of file isolate.h.

Referenced by ThreadManager::FreeThreadResources().

Address get_address_from_id ( Isolate::AddressId  id)

Definition at line 417 of file isolate.cc.

Handle< Context > GetCallingGlobalContext ( )
void* GetData ( )
inline

Definition at line 1018 of file isolate.h.

StackGuard * GetDefaultIsolateStackGuard ( )
static

Definition at line 393 of file isolate.cc.

References Isolate::EnsureDefaultIsolate(), and Isolate::stack_guard().

Referenced by V8::TerminateExecution().

Handle<GlobalObject> global ( )
inline

Definition at line 637 of file isolate.h.

References Isolate::context(), and Context::global().

Referenced by Isolate::global_context().

Object* global_proxy ( )
inline

Definition at line 642 of file isolate.h.

References Isolate::context(), and Context::global_proxy().

static Address handler ( ThreadLocalTop *  thread)
inlinestatic

Definition at line 617 of file isolate.h.

Referenced by Isolate::IsExternallyCaught(), and Isolate::ShouldReportException().

Address* handler_address ( )
inline

Definition at line 622 of file isolate.h.

bool has_installed_extensions ( )
inline

Definition at line 915 of file isolate.h.

Referenced by StartupSerializer::SerializeStrongReferences().

Address has_pending_message_address ( )
inline

Definition at line 586 of file isolate.h.

bool has_scheduled_exception ( )
inline
Heap* heap ( )
inline

Definition at line 820 of file isolate.h.

Referenced by JSObject::AddFastProperty(), V8::AddGCEpilogueCallback(), V8::AddGCPrologueCallback(), V8::AddMessageListener(), V8::AdjustAmountOfExternalAllocatedMemory(), CompilationSubCache::Age(), MemoryAllocator::AllocateChunk(), MemoryAllocator::AllocateLargePage(), MemoryAllocator::AllocatePage(), Context::AllowCodeGenerationFromStrings(), StackGuard::ArchiveStackGuard(), StackGuard::ClearThread(), CpuProfiler::CodeCreateEvent(), V8::ContextDisposedNotification(), v8::internal::Copy(), GlobalHandles::Create(), Runtime::CreateArrayLiteralBoilerplate(), JSObject::DefineAccessor(), DictionaryElementsAccessor::DeleteCommon(), JSObject::DeleteElement(), JSObject::DeleteProperty(), Deoptimizer::DeoptimizeFunction(), Deserializer::Deserialize(), Isolate::DoThrow(), JSObject::EnsureWritableFastElements(), StubCache::FindCallInitialize(), HashTable< Shape, Key >::FindEntry(), Runtime::ForceDeleteObjectProperty(), MemoryAllocator::Free(), Heap::FreeQueuedChunks(), Accessors::FunctionGetArguments(), InnerPointerToCodeCache::GcSafeFindCodeForInnerPointer(), v8::internal::GetKeysInFixedArrayFor(), JSObject::GetPropertyWithCallback(), Factory::GlobalConstantFor(), Execution::HandleStackGuardInterrupt(), StubCache::heap(), Factory::hidden_symbol(), GlobalHandles::IdentifyNewSpaceWeakIndependentHandles(), v8::internal::InitScriptLineEnds(), StackGuard::InitThread(), Isolate::is_catchable_by_javascript(), Value::IsBooleanObject(), Value::IsDate(), StringTracker::IsFreshUnusedString(), Value::IsNumberObject(), Value::IsStringObject(), CompilationSubCache::IterateFunctions(), KeyedLoadIC::Load(), v8::internal::LookupSingleCharacterStringFromCode(), V8::LowMemoryNotification(), String::MakeExternal(), Bootstrapper::NativesSourceLookup(), BooleanObject::New(), Context::New(), String::NewExternal(), Factory::NewFunctionFromSharedFunctionInfo(), Factory::NewScript(), JSObject::NormalizeElements(), Runtime::PerformGC(), GlobalHandles::PostGarbageCollectionProcessing(), JSObject::PreventExtensions(), StringStream::PrintSecurityTokenIfChanged(), ObjectLiteral::Property::Property(), StringTracker::RecordWrite(), IncrementalMarking::RecordWriteForEvacuationFromCode(), IncrementalMarking::RecordWriteFromCode(), V8::RemoveGCEpilogueCallback(), V8::RemoveGCPrologueCallback(), V8::RemoveMessageListeners(), Isolate::ReportPendingMessages(), StackGuard::RequestGC(), StackGuard::RequestRuntimeProfilerTick(), StackGuard::RestoreStackGuard(), v8::internal::RUNTIME_FUNCTION(), PartialSerializer::Serialize(), JSObject::SetDictionaryElement(), JSObject::SetElement(), V8::SetGlobalGCEpilogueCallback(), V8::SetGlobalGCPrologueCallback(), JSObject::SetPropertyWithInterceptor(), v8::SetResourceConstraints(), Builtins::SetUp(), JSDate::SetValue(), KeyedStoreIC::Store(), StoreBuffer::StoreBufferOverflow(), TEST(), v8::ThrowException(), Factory::ToBoolean(), JSObject::TransitionElementsKind(), RuntimeProfiler::UpdateSamplesAfterScavenge(), V8::VisitExternalResources(), and Serializer::VisitPointers().

bool ignore_out_of_memory ( )
inline

Definition at line 688 of file isolate.h.

void InitializeLoggingAndCounters ( )

Definition at line 1719 of file isolate.cc.

References NULL.

Referenced by Isolate::PrintStack(), and TEST().

INLINE ( static Isolate Current())
inline

Definition at line 437 of file isolate.h.

References ASSERT, Thread::GetExistingThreadLocal(), and v8::internal::NULL.

INLINE ( static Isolate UncheckedCurrent())
inline

Definition at line 444 of file isolate.h.

References Thread::GetThreadLocal().

InnerPointerToCodeCache* inner_pointer_to_code_cache ( )
inline

Definition at line 859 of file isolate.h.

Referenced by Heap::FindCodeObject(), and IncrementalMarking::RecordCodeTargetPatch().

unibrow::Mapping<unibrow::Ecma262Canonicalize>* interp_canonicalize_mapping ( )
inline

Definition at line 925 of file isolate.h.

bool is_catchable_by_javascript ( MaybeObject *  exception)
inline
bool IsDebuggerActive ( )
inline

Definition at line 52 of file isolate-inl.h.

References v8::internal::NoBarrier_Load().

bool IsDefaultIsolate ( ) const
inline
bool IsInUse ( )
inline

Definition at line 460 of file isolate.h.

References v8::internal::NULL.

Referenced by Isolate::Dispose().

static Thread::LocalStorageKey isolate_key ( )
inlinestatic

Definition at line 492 of file isolate.h.

void Iterate ( ObjectVisitor *  v)
void Iterate ( ObjectVisitor *  v,
ThreadLocalTop *  t 
)

Definition at line 440 of file isolate.cc.

References v8::internal::NULL, and TRY_CATCH_FROM_ADDRESS.

char * Iterate ( ObjectVisitor *  v,
char *  t 
)

Definition at line 422 of file isolate.cc.

References Isolate::Iterate().

void IterateThread ( ThreadVisitor v)
void IterateThread ( ThreadVisitor v,
char *  t 
)

Definition at line 434 of file isolate.cc.

References ThreadVisitor::VisitThread().

static Address js_entry_sp ( ThreadLocalTop *  thread)
inlinestatic

Definition at line 625 of file isolate.h.

Referenced by StackTracer::Trace().

Address* js_entry_sp_address ( )
inline

Definition at line 628 of file isolate.h.

unibrow::Mapping<unibrow::CanonicalizationRange>* jsregexp_canonrange ( )
inline

Definition at line 881 of file isolate.h.

Referenced by CharacterRange::AddCaseEquivalents().

unibrow::Mapping<unibrow::Ecma262UnCanonicalize>* jsregexp_uncanonicalize ( )
inline

Definition at line 877 of file isolate.h.

Referenced by CharacterRange::AddCaseEquivalents().

KeyedLookupCache* keyed_lookup_cache ( )
inline

Definition at line 834 of file isolate.h.

void NotifyExtensionInstalled ( )
inline

Definition at line 911 of file isolate.h.

StringInputBuffer* objects_string_compare_buffer_a ( )
inline

Definition at line 885 of file isolate.h.

StringInputBuffer* objects_string_compare_buffer_b ( )
inline

Definition at line 889 of file isolate.h.

StaticResource<StringInputBuffer>* objects_string_input_buffer ( )
inline

Definition at line 893 of file isolate.h.

Referenced by String::ToCString(), and String::ToWideCString().

MaybeObject* pending_exception ( )
inline
MaybeObject** pending_exception_address ( )
inline

Definition at line 551 of file isolate.h.

Address pending_message_obj_address ( )
inline

Definition at line 582 of file isolate.h.

Address pending_message_script_address ( )
inline

Definition at line 590 of file isolate.h.

static Thread::LocalStorageKey per_isolate_thread_data_key ( )
static
void PreallocatedStorageDelete ( void *  p)

Definition at line 300 of file isolate.cc.

References ASSERT, and v8::internal::NULL.

void PreallocatedStorageInit ( size_t  size)

Definition at line 245 of file isolate.cc.

References ASSERT.

void * PreallocatedStorageNew ( size_t  size)

Definition at line 257 of file isolate.cc.

References ASSERT, v8::internal::kPointerSize, and v8::internal::NULL.

void PrintStackTrace ( FILE *  out,
char *  thread_data 
)
Failure * PromoteScheduledException ( )
unibrow::Mapping<unibrow::Ecma262Canonicalize>* regexp_macro_assembler_canonicalize ( )
inline

Definition at line 918 of file isolate.h.

Referenced by NativeRegExpMacroAssembler::CaseInsensitiveCompareUC16().

void RegisterTryCatchHandler ( v8::TryCatch that)

Definition at line 481 of file isolate.cc.

References SimulatorStack::RegisterCTryCatch(), and Isolate::thread_local_top().

Referenced by TryCatch::TryCatch().

RuntimeState* runtime_state ( )
inline

Definition at line 897 of file isolate.h.

SaveContext* save_context ( )
inline

Definition at line 525 of file isolate.h.

MaybeObject* scheduled_exception ( )
inline
MaybeObject** scheduled_exception_address ( )
inline

Definition at line 578 of file isolate.h.

void ScheduleThrow ( Object exception)
void set_catcher ( v8::TryCatch catcher)
inline

Definition at line 574 of file isolate.h.

References Isolate::catcher().

Referenced by Isolate::ExceptionScope::~ExceptionScope().

void set_context ( Context context)
inline
void set_context_exit_happened ( bool  context_exit_happened)
inline

Definition at line 1030 of file isolate.h.

References Isolate::context_exit_happened().

Referenced by Context::Exit().

void set_context_switcher ( ContextSwitcher switcher)
inline

Definition at line 871 of file isolate.h.

Referenced by ContextSwitcher::StartPreemption(), and ContextSwitcher::StopPreemption().

void set_date_cache ( DateCache date_cache)
inline

Definition at line 1042 of file isolate.h.

References Isolate::date_cache().

Referenced by TEST().

void set_external_callback ( Address  callback)
inline

Definition at line 987 of file isolate.h.

void set_external_caught_exception ( bool  value)
inline

Definition at line 542 of file isolate.h.

Referenced by MessageHandler::ReportMessage().

void set_fp_stubs_generated ( bool  value)
inline

Definition at line 899 of file isolate.h.

void set_ignore_out_of_memory ( bool  value)
inline

Definition at line 691 of file isolate.h.

Referenced by V8::IgnoreOutOfMemoryException().

void set_pending_exception ( MaybeObject *  exception)
inline
void set_save_context ( SaveContext *  save)
inline

Definition at line 526 of file isolate.h.

Referenced by BASE_EMBEDDED< Visitor >::~SaveContext().

void set_thread_id ( ThreadId  id)
inline

Definition at line 532 of file isolate.h.

void SetCaptureStackTraceForUncaughtExceptions ( bool  capture,
int  frame_limit,
StackTrace::StackTraceOptions  options 
)

Definition at line 1291 of file isolate.cc.

void SetData ( void *  data)
inline

Definition at line 1017 of file isolate.h.

void SetFailedAccessCheckCallback ( v8::FailedAccessCheckCallback  callback)

Definition at line 741 of file isolate.cc.

References Isolate::thread_local_top().

Referenced by V8::SetFailedAccessCheckCallbackFunction().

void SetTopLookupResult ( LookupResult *  top)
inline

Definition at line 1023 of file isolate.h.

Referenced by BASE_EMBEDDED< Visitor >::LookupResult().

bool ShouldReportException ( bool *  can_be_caught_externally,
bool  catchable_by_javascript 
)
StringTracker* string_tracker ( )
inline
void TearDown ( )

Definition at line 1533 of file isolate.cc.

References NULL, and TRACE_ISOLATE.

Referenced by Isolate::Dispose(), and V8::TearDown().

Failure * TerminateExecution ( )
ThreadId thread_id ( )
inline

Definition at line 531 of file isolate.h.

Referenced by V8::GetCurrentThreadId(), and V8::TerminateExecution().

static Thread::LocalStorageKey thread_id_key ( )
inlinestatic

Definition at line 497 of file isolate.h.

Failure * ThrowIllegalOperation ( )

Definition at line 939 of file isolate.cc.

References Isolate::Throw().

Referenced by v8::internal::TransitionElements().

double time_millis_since_init ( )
inline

Definition at line 1034 of file isolate.h.

References OS::TimeCurrentMillis().

LookupResult* top_lookup_result ( )
inline

Definition at line 1020 of file isolate.h.

void TraceException ( bool  flag)

Definition at line 1240 of file isolate.cc.

References v8::internal::flag.

TranscendentalCache* transcendental_cache ( ) const
inline

Definition at line 826 of file isolate.h.

Referenced by Heap::GarbageCollectionPrologue().

v8::TryCatch* try_catch_handler ( )
inline
Address try_catch_handler_address ( )
inline

Definition at line 565 of file isolate.h.

Referenced by Isolate::OptionalRescheduleException().

UnicodeCache* unicode_cache ( )
inline
void UnregisterTryCatchHandler ( v8::TryCatch that)
StringInputBuffer* write_input_buffer ( )
inline

Definition at line 863 of file isolate.h.

Referenced by String::WriteAscii(), and String::WriteUtf8().

Zone* zone ( )
inline

Definition at line 853 of file isolate.h.

Referenced by FullCodeGenerator::MakeCode(), and ParserApi::Parse().

Friends And Related Function Documentation

friend class ExecutionAccess
friend

Definition at line 1272 of file isolate.h.

friend struct GlobalState
friend

Definition at line 1052 of file isolate.h.

friend struct InitializeGlobalState
friend

Definition at line 1053 of file isolate.h.

friend class IsolateInitializer
friend

Definition at line 1273 of file isolate.h.

friend class Simulator
friend

Definition at line 1275 of file isolate.h.

friend class StackGuard
friend

Definition at line 1276 of file isolate.h.

friend class TestMemoryAllocatorScope
friend

Definition at line 1278 of file isolate.h.

friend class ThreadId
friend

Definition at line 1277 of file isolate.h.

friend class ThreadManager
friend

Definition at line 1274 of file isolate.h.

friend class v8::Isolate
friend

Definition at line 1279 of file isolate.h.

friend class v8::Locker
friend

Definition at line 1280 of file isolate.h.

friend class v8::Unlocker
friend

Definition at line 1281 of file isolate.h.

Field Documentation

const int kBMMaxShift = 250
static

Definition at line 773 of file isolate.h.

const int kJSRegexpStaticOffsetsVectorSize = 128
static

Definition at line 982 of file isolate.h.

Referenced by OffsetsVector::OffsetsVector(), and OffsetsVector::~OffsetsVector().

const int kPartialSnapshotCacheCapacity = 1400
static
const char *const kStackOverflowMessage
static
Initial value:
=
"Uncaught RangeError: Maximum call stack size exceeded"

Definition at line 770 of file isolate.h.

Referenced by RegExpParser::Advance().

const int kUC16AlphabetSize = 256
static

Definition at line 772 of file isolate.h.


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