Lines Matching defs:env
3 #include "env-inl.h"
205 std::string GetWorkerLabel(node::Environment* env) {
207 result << "Worker[" << env->thread_id() << "]";
214 explicit ChannelImpl(Environment* env,
226 std::make_unique<protocol::TracingAgent>(env, main_thread_);
354 void NotifyClusterWorkersDebugEnabled(Environment* env) {
355 Isolate* isolate = env->isolate();
357 Local<Context> context = env->context();
363 ProcessEmit(env, "internalMessage", message);
384 void ThrowUninitializedInspectorError(Environment* env) {
385 HandleScope scope(env->isolate());
389 v8::String::NewFromUtf8(env->isolate(), msg).ToLocalChecked();
391 env->isolate()->ThrowException(exception);
398 explicit NodeInspectorClient(node::Environment* env, bool is_main)
399 : env_(env), is_main_(is_main) {
400 client_ = V8Inspector::create(env->isolate(), this);
403 is_main_ ? GetHumanReadableProcessName() : GetWorkerLabel(env);
406 contextCreated(env->context(), info);
682 Agent::Agent(Environment* env)
683 : parent_env_(env),
684 debug_options_(env->options()->debug_options()),
685 host_port_(env->inspector_host_port()) {}
711 Environment* env = static_cast<Environment*>(data);
719 env->CloseHandle(&start_io_thread_async, [](uv_async_t*) {
725 AtExit(parent_env_, [](void* env) {
726 Agent* agent = static_cast<Environment*>(env)->inspector_agent();