Home | History | Annotate | Download | only in src

Lines Matching defs:ContextSwitcher

143   v8::internal::ContextSwitcher::StartPreemption(every_n_ms);
148 v8::internal::ContextSwitcher::StopPreemption();
410 ContextSwitcher::ContextSwitcher(Isolate* isolate, int every_n_ms)
419 // ContextSwitcher thread if needed.
420 void ContextSwitcher::StartPreemption(int every_n_ms) {
424 // If the ContextSwitcher thread is not running at the moment start it now.
425 isolate->set_context_switcher(new ContextSwitcher(isolate, every_n_ms));
428 // ContextSwitcher thread is already running, so we just change the
437 void ContextSwitcher::StopPreemption() {
441 // The ContextSwitcher thread is running. We need to stop it and release
444 // Wait for the ContextSwitcher thread to exit.
453 // Main loop of the ContextSwitcher thread: Preempt the currently running V8
455 void ContextSwitcher::Run() {
464 void ContextSwitcher::PreemptionReceived() {