Lines Matching defs:thread
99 // relaxed since we can guarantee that the current thread has initialized these
144 int thread_id = base::Thread::GetThreadLocalInt(Isolate::thread_id_key_);
147 base::Thread::SetThreadLocalInt(Isolate::thread_id_key_, thread_id);
170 base::Thread::LocalStorageKey Isolate::isolate_key_;
171 base::Thread::LocalStorageKey Isolate::thread_id_key_;
172 base::Thread::LocalStorageKey Isolate::per_isolate_thread_data_key_;
196 int thread_id_int = base::Thread::GetThreadLocalInt(Isolate::thread_id_key_);
228 isolate_key_ = base::Thread::CreateThreadLocalKey();
232 thread_id_key_ = base::Thread::CreateThreadLocalKey();
233 per_isolate_thread_data_key_ = base::Thread::CreateThreadLocalKey();
241 ThreadLocalTop* thread = reinterpret_cast<ThreadLocalTop*>(thread_storage);
242 Iterate(v, thread);
248 ThreadLocalTop* thread = reinterpret_cast<ThreadLocalTop*>(t);
249 v->VisitThread(this, thread);
252 void Isolate::Iterate(RootVisitor* v, ThreadLocalTop* thread) {
253 // Visit the roots from the top for a given thread.
254 v->VisitRootPointer(Root::kTop, nullptr, &thread->pending_exception_);
255 v->VisitRootPointer(Root::kTop, nullptr, &thread->wasm_caught_exception_);
256 v->VisitRootPointer(Root::kTop, nullptr, &thread->pending_message_obj_);
258 bit_cast<Object**>(&(thread->context_)));
259 v->VisitRootPointer(Root::kTop, nullptr, &thread->scheduled_exception_);
261 for (v8::TryCatch* block = thread->try_catch_handler(); block != nullptr;
270 for (StackFrameIterator it(this, thread); !it.done(); it.Advance()) {
1128 // TODO(titzer): thread WASM features here, or just remove this check?
2269 // thread_local_top_ is restored on a separate OS thread.
2418 // as the allocator is potentially used on a concurrent thread.
2575 // initializing the thread data.
2579 reinterpret_cast<Isolate*>(base::Thread::GetThreadLocal(isolate_key_));
2692 base::Thread::SetThreadLocal(isolate_key_, isolate);
2693 base::Thread::SetThreadLocal(per_isolate_thread_data_key_, data);
2968 // Ensure that the thread has a valid stack guard. The v8::Locker object
2970 // using one thread.
3132 // Same thread re-enters the isolate, no need to re-init anything.
3149 // In case it's the first time some thread enters the isolate.
3174 // Reinit the current thread for the isolate it was running before this one.