Home | History | Annotate | Download | only in src

Lines Matching defs:Isolate

18 #include "src/isolate-inl.h"
49 int thread_id = Thread::GetThreadLocalInt(Isolate::thread_id_key_);
52 Thread::SetThreadLocalInt(Isolate::thread_id_key_, thread_id);
101 Thread::LocalStorageKey Isolate::isolate_key_;
102 Thread::LocalStorageKey Isolate::thread_id_key_;
103 Thread::LocalStorageKey Isolate::per_isolate_thread_data_key_;
107 Mutex Isolate::process_wide_mutex_;
108 // TODO(dcarney): Remove with default isolate.
116 Isolate::ThreadDataTable* Isolate::thread_data_table_ = NULL;
117 base::Atomic32 Isolate::isolate_counter_ = 0;
119 Isolate::PerIsolateThreadData*
120 Isolate::FindOrAllocatePerThreadDataForThisThread() {
136 Isolate::PerIsolateThreadData* Isolate::FindPerThreadDataForThisThread() {
142 Isolate::PerIsolateThreadData* Isolate::FindPerThreadDataForThread(
153 void Isolate::SetCrashIfDefaultIsolateInitialized() {
160 void Isolate::EnsureDefaultIsolate() {
170 thread_data_table_ = new Isolate::ThreadDataTable();
176 Isolate::EnsureDefaultIsolate();
181 Address Isolate::get_address_from_id(Isolate::AddressId id) {
186 char* Isolate::Iterate(ObjectVisitor* v, char* thread_storage) {
193 void Isolate::IterateThread(ThreadVisitor* v, char* t) {
199 void Isolate::Iterate(ObjectVisitor* v, ThreadLocalTop* thread) {
225 void Isolate::Iterate(ObjectVisitor* v) {
231 void Isolate::IterateDeferredHandles(ObjectVisitor* visitor) {
241 bool Isolate::IsDeferredHandle(Object** handle) {
263 void Isolate::RegisterTryCatchHandler(v8::TryCatch* that) {
268 void Isolate::UnregisterTryCatchHandler(v8::TryCatch* that) {
275 Handle<String> Isolate::StackTraceString() {
303 void Isolate::PushStackTraceAndDie(unsigned int magic,
356 Handle<JSArray> Isolate::CaptureSimpleStackTrace(Handle<JSObject> error_object,
426 void Isolate::CaptureAndSetDetailedStackTrace(Handle<JSObject> error_object) {
438 Handle<JSArray> Isolate::CaptureCurrentStackTrace(
559 void Isolate::PrintStack(FILE* out) {
583 static void PrintFrames(Isolate* isolate,
586 StackFrameIterator it(isolate);
593 void Isolate::PrintStack(StringStream* accumulator) {
598 "\n==== Isolate for the thread is not initialized =============\n\n");
621 void Isolate::SetFailedAccessCheckCallback(
627 static inline AccessCheckInfo* GetAccessCheckInfo(Isolate* isolate,
634 if (data_obj == isolate->heap()->undefined_value()) return NULL;
640 void Isolate::ReportFailedAccessCheck(Handle<JSObject> receiver,
670 static MayAccessDecision MayAccessPreCheck(Isolate* isolate,
675 if (isolate->bootstrapper()->IsActive()) return YES;
682 // avoid using Isolate::native_context() because it uses Handle.
684 isolate->context()->global_object()->native_context();
696 bool Isolate::MayNamedAccess(Handle<JSObject> receiver,
735 bool Isolate::MayIndexedAccess(Handle<JSObject> receiver,
768 const char* const Isolate::kStackOverflowMessage =
772 Object* Isolate::StackOverflow() {
807 Object* Isolate::TerminateExecution() {
813 void Isolate::CancelTerminateExecution() {
830 void Isolate::InvokeApiInterruptCallback() {
845 callback(reinterpret_cast<v8::Isolate*>(this), data);
850 Object* Isolate::Throw(Object* exception, MessageLocation* location) {
856 Object* Isolate::ReThrow(Object* exception) {
870 Object* Isolate::ThrowIllegalOperation() {
876 Object* Isolate::ThrowInvalidStringLength() {
882 void Isolate::ScheduleThrow(Object* exception) {
895 void Isolate::RestorePendingMessageFromTryCatch(v8::TryCatch* handler) {
911 Object* Isolate::PromoteScheduledException() {
919 void Isolate::PrintCurrentStackTrace(FILE* out) {
947 void Isolate::ComputeLocation(MessageLocation* target) {
965 bool Isolate::ShouldReportException(bool* can_be_caught_externally,
969 StackHandler::FromAddress(Isolate::handler(thread_local_top()));
996 bool Isolate::IsErrorObject(Handle<Object> obj) {
1018 void Isolate::DoThrow(Object* exception, MessageLocation* location) {
1169 bool Isolate::HasExternalTryCatch() {
1177 bool Isolate::IsFinallyOnTop() {
1194 StackHandler::FromAddress(Isolate::handler(thread_local_top()));
1206 void Isolate::ReportPendingMessages() {
1239 MessageLocation Isolate::GetMessageLocation() {
1257 bool Isolate::OptionalRescheduleException(bool is_bottom_call) {
1300 void Isolate::SetCaptureStackTraceForUncaughtExceptions(
1310 Handle<Context> Isolate::native_context() {
1315 Handle<Context> Isolate::global_context() {
1320 Handle<Context> Isolate::GetCallingNativeContext() {
1340 char* Isolate::ArchiveThread(char* to) {
1351 char* Isolate::RestoreThread(char* from) {
1364 Isolate::ThreadDataTable::ThreadDataTable()
1369 Isolate::ThreadDataTable::~ThreadDataTable() {
1377 Isolate::PerIsolateThreadData::~PerIsolateThreadData() {
1384 Isolate::PerIsolateThreadData*
1385 IsolateIsolate* isolate,
1388 if (data->Matches(isolate, thread_id)) return data;
1394 void Isolate::ThreadDataTable::Insert(Isolate::PerIsolateThreadData* data) {
1401 void Isolate::ThreadDataTable::Remove(PerIsolateThreadData* data) {
1409 void Isolate::ThreadDataTable::RemoveAllThreads(Isolate* isolate) {
1413 if (data->isolate() == isolate) Remove(data);
1423 PrintF("Isolate %p (id %d)" #tag "\n", \
1432 Isolate::Isolate()
1471 // be fixed once the default isolate cleanup is done.
1494 // ThreadManager is initialized early to support locking an isolate
1521 void Isolate::TearDown() {
1524 // Temporarily set this isolate as current so that various parts of
1525 // the isolate can access it in their destructors without having a
1529 Isolate* saved_isolate = UncheckedCurrent();
1545 // Restore the previous current isolate.
1550 void Isolate::GlobalTearDown() {
1555 void Isolate::Deinit() {
1607 // The default isolate is re-initializable due to legacy API.
1613 void Isolate::PushToPartialSnapshotCache(Object* obj) {
1633 void Isolate::SetIsolateThreadLocals(Isolate* isolate,
1635 Thread::SetThreadLocal(isolate_key_, isolate);
1640 Isolate::~Isolate() {
1734 void Isolate::InitializeThreadLocal() {
1740 bool Isolate::PropagatePendingExceptionToExternalTryCatch() {
1782 void Isolate::InitializeLoggingAndCounters() {
1792 bool Isolate::Init(Deserializer* des) {
1818 isolate_addresses_[Isolate::k##CamelName##Address] = \
1901 // once ResourceConstraints becomes an argument to the Isolate constructor.
1966 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, embedder_data_)),
1968 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.roots_)),
1971 OFFSET_OF(Isolate, heap_.amount_of_external_allocated_memory_)),
1974 Isolate,
2027 StatsTable* Isolate::stats_table() {
2035 void Isolate::Enter() {
2036 Isolate* current_isolate = NULL;
2047 // Same thread re-enters the isolate, no need to re-init anything.
2053 // Threads can have default isolate set into TLS as Current but not yet have
2056 // static initializers - in this case the default isolate is set in TLS but
2057 // the thread did not yet Enter the isolate. If PerisolateThreadData is not
2058 // there, use the isolate set in TLS.
2060 current_isolate = Isolate::UncheckedCurrent();
2074 // In case it's the first time some thread enters the isolate.
2079 void Isolate::Exit() {
2095 Isolate* previous_isolate = item->previous_isolate;
2099 // Reinit the current thread for the isolate it was running before this one.
2104 void Isolate::LinkDeferredHandles(DeferredHandles* deferred) {
2113 void Isolate::UnlinkDeferredHandles(DeferredHandles* deferred) {
2134 HStatistics* Isolate::GetHStatistics() {
2140 HTracer* Isolate::GetHTracer() {
2146 CodeTracer* Isolate::GetCodeTracer() {
2152 Map* Isolate::get_initial_js_array_map(ElementsKind kind) {
2166 bool Isolate::use_crankshaft() const {
2173 bool Isolate::IsFastArrayConstructorPrototypeChainIntact() {
2198 Isolate::code_stub_interface_descriptor(int index) {
2204 Isolate::call_descriptor(CallDescriptorKey index) {
2210 Object* Isolate::FindCodeObject(Address a) {
2217 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
2224 Handle<JSObject> Isolate::GetSymbolRegistry() {
2244 void Isolate::AddCallCompletedCallback(CallCompletedCallback callback) {
2252 void Isolate::RemoveCallCompletedCallback(CallCompletedCallback callback) {
2261 void Isolate::FireCallCompletedCallback() {
2269 v8::Isolate::SuppressMicrotaskExecutionScope suppress(
2270 reinterpret_cast<v8::Isolate*>(this));
2277 void Isolate::EnqueueMicrotask(Handle<Object> microtask) {
2295 void Isolate::RunMicrotasks() {
2304 v8::Isolate::SuppressMicrotaskExecutionScope suppress(
2305 reinterpret_cast<v8::Isolate*>(this));