• Home
  • Raw
  • Download

Lines Matching full:environment

57 int const Environment::kNodeContextTag = 0x6e6f64;
58 void* const Environment::kNodeContextTagPtr = const_cast<void*>(
59 static_cast<const void*>(&Environment::kNodeContextTag));
228 CHECK_EQ(0, uv_key_create(&Environment::thread_local_env)); in InitThreadLocalOnce()
233 // Ideally, we’d have a consistent story that treats all threads/Environment in UpdateTraceCategoryState()
256 void Environment::CreateProperties() { in CreateProperties()
270 // Store primordials setup by the per-context script in the environment. in CreateProperties()
332 Environment::Environment(IsolateData* isolate_data, in Environment() function in node::Environment
367 // We create new copies of the per-Environment option sets, so that it is in Environment()
368 // easier to modify them after Environment creation. The defaults are in Environment()
410 TRACING_CATEGORY_NODE1(environment)) != 0) { in Environment()
418 TRACE_EVENT_NESTABLE_ASYNC_BEGIN1(TRACING_CATEGORY_NODE1(environment), in Environment()
419 "Environment", in Environment()
432 // TODO(joyeecheung): deserialize when the snapshot covers the environment in Environment()
441 Environment::~Environment() { in ~Environment()
442 if (Environment** interrupt_data = interrupt_data_.load()) { in ~Environment()
471 isolate_->RemoveNearHeapLimitCallback(Environment::NearHeapLimitCallback, in ~Environment()
497 TRACING_CATEGORY_NODE1(environment), "Environment", this); in ~Environment()
500 // beyond the Environment's lifetime, and unloading them early would break in ~Environment()
505 // Dereference all addons that were loaded into this environment. in ~Environment()
514 void Environment::InitializeLibuv() { in InitializeLibuv()
539 Environment* env = ContainerOf( in InitializeLibuv()
540 &Environment::task_queues_async_, async); in InitializeLibuv()
559 // when the environment is freed, note that they are not cleaned in in InitializeLibuv()
560 // the one environment per process setup, but will be called in in InitializeLibuv()
567 void Environment::ExitEnv() { in ExitEnv()
571 SetImmediateThreadsafe([](Environment* env) { uv_stop(env->event_loop()); }); in ExitEnv()
574 void Environment::RegisterHandleCleanups() { in RegisterHandleCleanups()
575 HandleCleanupCb close_and_finish = [](Environment* env, uv_handle_t* handle, in RegisterHandleCleanups()
597 void Environment::CleanupHandles() { in CleanupHandles()
625 void Environment::StartProfilerIdleNotifier() { in StartProfilerIdleNotifier()
627 Environment* env = ContainerOf(&Environment::idle_prepare_handle_, handle); in StartProfilerIdleNotifier()
631 Environment* env = ContainerOf(&Environment::idle_check_handle_, handle); in StartProfilerIdleNotifier()
636 void Environment::PrintSyncTrace() const { in PrintSyncTrace()
648 void Environment::RunCleanup() { in RunCleanup()
650 TraceEventScope trace_scope(TRACING_CATEGORY_NODE1(environment), in RunCleanup()
693 void Environment::RunAtExitCallbacks() { in RunAtExitCallbacks()
694 TraceEventScope trace_scope(TRACING_CATEGORY_NODE1(environment), in RunAtExitCallbacks()
702 void Environment::AtExit(void (*cb)(void* arg), void* arg) { in AtExit()
706 void Environment::RunAndClearInterrupts() { in RunAndClearInterrupts()
720 void Environment::RunAndClearNativeImmediates(bool only_refed) { in RunAndClearNativeImmediates()
721 TraceEventScope trace_scope(TRACING_CATEGORY_NODE1(environment), in RunAndClearNativeImmediates()
776 void Environment::RequestInterruptFromV8() { in RequestInterruptFromV8()
777 // The Isolate may outlive the Environment, so some logic to handle the in RequestInterruptFromV8()
778 // situation in which the Environment is destroyed before the handler runs in RequestInterruptFromV8()
781 // We allocate a new pointer to a pointer to this Environment instance, and in RequestInterruptFromV8()
784 // and just return. If it was nullptr previously, the Environment** is stored; in RequestInterruptFromV8()
785 // ~Environment sets the Environment* contained in it to nullptr, so that in RequestInterruptFromV8()
786 // the callback can check whether ~Environment has already run and it is thus in RequestInterruptFromV8()
787 // not safe to access the Environment instance itself. in RequestInterruptFromV8()
788 Environment** interrupt_data = new Environment*(this); in RequestInterruptFromV8()
789 Environment** dummy = nullptr; in RequestInterruptFromV8()
796 std::unique_ptr<Environment*> env_ptr { static_cast<Environment**>(data) }; in RequestInterruptFromV8()
797 Environment* env = *env_ptr; in RequestInterruptFromV8()
799 // The Environment has already been destroyed. That should be okay; any in RequestInterruptFromV8()
800 // callback added before the Environment shuts down would have been in RequestInterruptFromV8()
809 void Environment::ScheduleTimer(int64_t duration_ms) { in ScheduleTimer()
814 void Environment::ToggleTimerRef(bool ref) { in ToggleTimerRef()
824 void Environment::RunTimers(uv_timer_t* handle) { in RunTimers()
825 Environment* env = Environment::from_timer_handle(handle); in RunTimers()
826 TraceEventScope trace_scope(TRACING_CATEGORY_NODE1(environment), in RunTimers()
886 void Environment::CheckImmediate(uv_check_t* handle) { in CheckImmediate()
887 Environment* env = Environment::from_immediate_check_handle(handle); in CheckImmediate()
888 TraceEventScope trace_scope(TRACING_CATEGORY_NODE1(environment), in CheckImmediate()
912 void Environment::ToggleImmediateRef(bool ref) { in ToggleImmediateRef()
924 Local<Value> Environment::GetNow() { in GetNow()
935 void CollectExceptionInfo(Environment* env, in CollectExceptionInfo()
975 void Environment::CollectUVExceptionInfo(Local<Value> object, in CollectUVExceptionInfo()
1019 uv_key_t Environment::thread_local_env = {};
1021 void Environment::Exit(int exit_code) { in Exit()
1035 stderr, "WARNING: Exited the environment with code %d\n", exit_code); in Exit()
1043 void Environment::stop_sub_worker_contexts() { in stop_sub_worker_contexts()
1054 Environment* Environment::worker_parent_env() const { in worker_parent_env()
1059 void Environment::AddUnmanagedFd(int fd) { in AddUnmanagedFd()
1068 void Environment::RemoveUnmanagedFd(int fd) { in RemoveUnmanagedFd()
1077 void Environment::VerifyNoStrongBaseObjects() { in VerifyNoStrongBaseObjects()
1126 void Environment::BuildEmbedderGraph(Isolate* isolate, in BuildEmbedderGraph()
1130 Environment* env = static_cast<Environment*>(data); in BuildEmbedderGraph()
1138 size_t Environment::NearHeapLimitCallback(void* data, in NearHeapLimitCallback()
1141 Environment* env = static_cast<Environment*>(data); in NearHeapLimitCallback()
1258 inline size_t Environment::SelfSize() const { in SelfSize()
1270 void Environment::MemoryInfo(MemoryTracker* tracker) const { in MemoryInfo()
1293 // FIXME(joyeecheung): track other fields in Environment. in MemoryInfo()
1301 // node, we shift its sizeof() size out of the Environment node. in MemoryInfo()
1304 void Environment::RunWeakRefCleanup() { in RunWeakRefCleanup()
1328 Local<FunctionTemplate> BaseObject::GetConstructorTemplate(Environment* env) { in GetConstructorTemplate()