Home | History | Annotate | Download | only in src

Lines Matching refs:Isolate

46 // current thread will be guaranteed to have the lock for a given isolate.
47 Locker::Locker(v8::Isolate* isolate)
50 isolate_(reinterpret_cast<i::Isolate*>(isolate)) {
52 isolate_ = i::Isolate::GetDefaultIsolateForLocking();
81 internal::Isolate::EnterDefaultIsolate();
88 bool Locker::IsLocked(v8::Isolate* isolate) {
89 i::Isolate* internal_isolate = reinterpret_cast<i::Isolate*>(isolate);
91 internal_isolate = i::Isolate::GetDefaultIsolateForLocking();
118 Unlocker::Unlocker(v8::Isolate* isolate)
119 : isolate_(reinterpret_cast<i::Isolate*>(isolate)) {
121 isolate_ = i::Isolate::GetDefaultIsolateForLocking();
162 Isolate::PerIsolateThreadData* per_thread =
182 Isolate::PerIsolateThreadData* per_thread =
227 Isolate::ArchiveSpacePerThread() +
320 Isolate::PerIsolateThreadData* per_thread =
365 Isolate::PerIsolateThreadData* data =
410 ContextSwitcher::ContextSwitcher(Isolate* isolate, int every_n_ms)
414 isolate_(isolate) {
421 Isolate* isolate = Isolate::Current();
422 ASSERT(Locker::IsLocked(reinterpret_cast<v8::Isolate*>(isolate)));
423 if (isolate->context_switcher() == NULL) {
425 isolate->set_context_switcher(new ContextSwitcher(isolate, every_n_ms));
426 isolate->context_switcher()->Start();
430 isolate->context_switcher()->sleep_ms_ = every_n_ms;
438 Isolate* isolate = Isolate::Current();
439 ASSERT(Locker::IsLocked(reinterpret_cast<v8::Isolate*>(isolate)));
440 if (isolate->context_switcher() != NULL) {
443 isolate->context_switcher()->keep_going_ = false;
445 isolate->context_switcher()->Join();
447 delete(isolate->context_switcher());
448 isolate->set_context_switcher(NULL);
458 isolate()->stack_guard()->Preempt();