Home | History | Annotate | Download | only in src

Lines Matching refs:Isolate

40 #include "isolate.h"
65 int thread_id = Thread::GetThreadLocalInt(Isolate::thread_id_key_);
68 Thread::SetThreadLocalInt(Isolate::thread_id_key_, thread_id);
144 explicit PreallocatedMemoryThread(Isolate* isolate)
145 : Thread(isolate, "v8:PreallocMem"),
165 friend class Isolate;
171 void Isolate::PreallocatedMemoryThreadStart() {
178 void Isolate::PreallocatedMemoryThreadStop() {
187 void Isolate::PreallocatedStorageInit(size_t size) {
199 void* Isolate::PreallocatedStorageNew(size_t size) {
242 void Isolate::PreallocatedStorageDelete(void* p) {
258 Isolate* Isolate::default_isolate_ = NULL;
259 Thread::LocalStorageKey Isolate::isolate_key_;
260 Thread::LocalStorageKey Isolate::thread_id_key_;
261 Thread::LocalStorageKey Isolate::per_isolate_thread_data_key_;
262 Mutex* Isolate::process_wide_mutex_ = OS::CreateMutex();
263 Isolate::ThreadDataTable* Isolate::thread_data_table_ = NULL;
269 Isolate::EnsureDefaultIsolate();
286 Isolate::PerIsolateThreadData* Isolate::AllocatePerIsolateThreadData(
300 Isolate::PerIsolateThreadData*
301 Isolate::FindOrAllocatePerThreadDataForThisThread() {
315 void Isolate::EnsureDefaultIsolate() {
321 thread_data_table_ = new Isolate::ThreadDataTable();
322 default_isolate_ = new Isolate();
330 Debugger* Isolate::GetDefaultIsolateDebugger() {
336 StackGuard* Isolate::GetDefaultIsolateStackGuard() {
342 void Isolate::EnterDefaultIsolate() {
347 // If not yet in default isolate - enter it.
348 if (data == NULL || data->isolate() != default_isolate_) {
354 Isolate* Isolate::GetDefaultIsolateForLocking() {
360 Isolate::ThreadDataTable::ThreadDataTable()
365 Isolate::PerIsolateThreadData*
366 Isolate::ThreadDataTable::Lookup(Isolate* isolate,
369 if (data->Matches(isolate, thread_id)) return data;
375 void Isolate::ThreadDataTable::Insert(Isolate::PerIsolateThreadData* data) {
382 void Isolate::ThreadDataTable::Remove(PerIsolateThreadData* data) {
389 void Isolate::ThreadDataTable::Remove(Isolate* isolate,
391 PerIsolateThreadData* data = Lookup(isolate, thread_id);
402 PrintF("Isolate %p " #tag "\n", reinterpret_cast<void*>(this)); \
410 Isolate::Isolate()
502 void Isolate::TearDown() {
505 // Temporarily set this isolate as current so that various parts of
506 // the isolate can access it in their destructors without having a
510 Isolate* saved_isolate = UncheckedCurrent();
519 // Restore the previous current isolate.
524 void Isolate::Deinit() {
557 // The default isolate is re-initializable due to legacy API.
563 void Isolate::SetIsolateThreadLocals(Isolate* isolate,
565 Thread::SetThreadLocal(isolate_key_, isolate);
570 Isolate::~Isolate() {
645 void Isolate::InitializeThreadLocal() {
653 void Isolate::PropagatePendingExceptionToExternalTryCatch() {
680 void Isolate::InitializeLoggingAndCounters() {
690 void Isolate::InitializeDebugger() {
702 bool Isolate::Init(Deserializer* des) {
704 ASSERT(Isolate::Current() == this);
720 // ensuring that Isolate::Current() == this.
723 #define C(name) isolate_addresses_[Isolate::k_##name] = \
836 StatsTable* Isolate::stats_table() {
844 void Isolate::Enter() {
845 Isolate* current_isolate = NULL;
856 // Same thread re-enters the isolate, no need to re-init anything.
862 // Threads can have default isolate set into TLS as Current but not yet have
865 // static initializers - in this case the default isolate is set in TLS but
866 // the thread did not yet Enter the isolate. If PerisolateThreadData is not
867 // there, use the isolate set in TLS.
869 current_isolate = Isolate::UncheckedCurrent();
883 // In case it's the first time some thread enters the isolate.
888 void Isolate::Exit() {
904 Isolate* previous_isolate = item->previous_isolate;
908 // Reinit the current thread for the isolate it was running before this one.
913 void Isolate::ResetEagerOptimizingData() {
920 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);