Lines Matching refs:env
2 #include "env-inl.h"
19 Maybe<int> SpinEventLoop(Environment* env) {
20 CHECK_NOT_NULL(env);
21 MultiIsolatePlatform* platform = GetMultiIsolatePlatform(env);
24 Isolate* isolate = env->isolate();
26 Context::Scope context_scope(env->context());
29 if (env->is_stopping()) return Nothing<int>();
31 env->set_trace_sync_io(env->options()->trace_sync_io);
34 env->performance_state()->Mark(
37 if (env->is_stopping()) break;
38 uv_run(env->event_loop(), UV_RUN_DEFAULT);
39 if (env->is_stopping()) break;
43 more = uv_loop_alive(env->event_loop());
44 if (more && !env->is_stopping()) continue;
46 if (EmitProcessBeforeExit(env).IsNothing())
51 if (env->RunSnapshotSerializeCallback().IsEmpty()) {
58 more = uv_loop_alive(env->event_loop());
59 } while (more == true && !env->is_stopping());
60 env->performance_state()->Mark(
63 if (env->is_stopping()) return Nothing<int>();
65 env->set_trace_sync_io(false);
69 env->set_snapshot_serialize_callback(Local<Function>());
71 env->PrintInfoForSnapshotIfDebug();
72 env->ForEachRealm([](Realm* realm) { realm->VerifyNoStrongBaseObjects(); });
73 return EmitProcessExit(env);
82 DeleteFnPtr<Environment, FreeEnvironment> env;
134 impl_->env.reset(make_env(this));
146 impl_->env.reset();
186 Environment* CommonEnvironmentSetup::env() const {
187 return impl_->env.get();