Lines Matching full:environment
76 void Environment::ResetPromiseHooks(Local<Function> init, in ResetPromiseHooks()
203 void Environment::TrackContext(Local<Context> context) { in TrackContext()
210 void Environment::UntrackContext(Local<Context> context) { in UntrackContext()
227 Environment* env, double default_trigger_async_id) in DefaultTriggerAsyncIdScope()
514 // Ideally, we’d have a consistent story that treats all threads/Environment in UpdateTraceCategoryState()
541 void Environment::AssignToContext(Local<v8::Context> context, in AssignToContext()
567 void Environment::TryLoadAddon( in TryLoadAddon()
577 std::string Environment::GetCwd() { in GetCwd()
593 void Environment::add_refs(int64_t diff) { in add_refs()
602 uv_buf_t Environment::allocate_managed_buffer(const size_t suggested_size) { in allocate_managed_buffer()
611 std::unique_ptr<v8::BackingStore> Environment::release_managed_buffer( in release_managed_buffer()
649 Environment::Environment(IsolateData* isolate_data, in Environment() function in node::Environment
702 // We create new copies of the per-Environment option sets, so that it is in Environment()
703 // easier to modify them after Environment creation. The defaults are in Environment()
735 TRACING_CATEGORY_NODE1(environment)) != 0) { in Environment()
743 TRACE_EVENT_NESTABLE_ASYNC_BEGIN1(TRACING_CATEGORY_NODE1(environment), in Environment()
744 "Environment", in Environment()
751 Environment::Environment(IsolateData* isolate_data, in Environment() function in node::Environment
758 : Environment(isolate_data, in Environment()
768 void Environment::InitializeMainContext(Local<Context> context, in InitializeMainContext()
798 Environment::~Environment() { in ~Environment()
802 if (Environment** interrupt_data = interrupt_data_.load()) { in ~Environment()
854 TRACING_CATEGORY_NODE1(environment), "Environment", this); in ~Environment()
857 // beyond the Environment's lifetime, and unloading them early would break in ~Environment()
862 // Dereference all addons that were loaded into this environment. in ~Environment()
869 void Environment::InitializeLibuv() { in InitializeLibuv()
894 Environment* env = ContainerOf( in InitializeLibuv()
895 &Environment::task_queues_async_, async); in InitializeLibuv()
914 // when the environment is freed, note that they are not cleaned in in InitializeLibuv()
915 // the one environment per process setup, but will be called in in InitializeLibuv()
922 void Environment::ExitEnv(StopFlags::Flags flags) { in ExitEnv()
927 SetImmediateThreadsafe([](Environment* env) { in ExitEnv()
933 void Environment::RegisterHandleCleanups() { in RegisterHandleCleanups()
934 HandleCleanupCb close_and_finish = [](Environment* env, uv_handle_t* handle, in RegisterHandleCleanups()
956 void Environment::CleanupHandles() { in CleanupHandles()
984 void Environment::StartProfilerIdleNotifier() { in StartProfilerIdleNotifier()
986 Environment* env = ContainerOf(&Environment::idle_prepare_handle_, handle); in StartProfilerIdleNotifier()
990 Environment* env = ContainerOf(&Environment::idle_check_handle_, handle); in StartProfilerIdleNotifier()
995 void Environment::PrintSyncTrace() const { in PrintSyncTrace()
1007 MaybeLocal<Value> Environment::RunSnapshotSerializeCallback() const { in RunSnapshotSerializeCallback()
1017 MaybeLocal<Value> Environment::RunSnapshotDeserializeMain() const { in RunSnapshotDeserializeMain()
1027 void Environment::RunCleanup() { in RunCleanup()
1029 TRACE_EVENT0(TRACING_CATEGORY_NODE1(environment), "RunCleanup"); in RunCleanup()
1051 void Environment::RunAtExitCallbacks() { in RunAtExitCallbacks()
1052 TRACE_EVENT0(TRACING_CATEGORY_NODE1(environment), "AtExit"); in RunAtExitCallbacks()
1059 void Environment::AtExit(void (*cb)(void* arg), void* arg) { in AtExit()
1063 void Environment::RunAndClearInterrupts() { in RunAndClearInterrupts()
1077 void Environment::RunAndClearNativeImmediates(bool only_refed) { in RunAndClearNativeImmediates()
1078 TRACE_EVENT0(TRACING_CATEGORY_NODE1(environment), in RunAndClearNativeImmediates()
1139 void Environment::RequestInterruptFromV8() { in RequestInterruptFromV8()
1140 // The Isolate may outlive the Environment, so some logic to handle the in RequestInterruptFromV8()
1141 // situation in which the Environment is destroyed before the handler runs in RequestInterruptFromV8()
1144 // We allocate a new pointer to a pointer to this Environment instance, and in RequestInterruptFromV8()
1147 // and just return. If it was nullptr previously, the Environment** is stored; in RequestInterruptFromV8()
1148 // ~Environment sets the Environment* contained in it to nullptr, so that in RequestInterruptFromV8()
1149 // the callback can check whether ~Environment has already run and it is thus in RequestInterruptFromV8()
1150 // not safe to access the Environment instance itself. in RequestInterruptFromV8()
1151 Environment** interrupt_data = new Environment*(this); in RequestInterruptFromV8()
1152 Environment** dummy = nullptr; in RequestInterruptFromV8()
1159 std::unique_ptr<Environment*> env_ptr { static_cast<Environment**>(data) }; in RequestInterruptFromV8()
1160 Environment* env = *env_ptr; in RequestInterruptFromV8()
1162 // The Environment has already been destroyed. That should be okay; any in RequestInterruptFromV8()
1163 // callback added before the Environment shuts down would have been in RequestInterruptFromV8()
1172 void Environment::ScheduleTimer(int64_t duration_ms) { in ScheduleTimer()
1177 void Environment::ToggleTimerRef(bool ref) { in ToggleTimerRef()
1187 void Environment::RunTimers(uv_timer_t* handle) { in RunTimers()
1188 Environment* env = Environment::from_timer_handle(handle); in RunTimers()
1189 TRACE_EVENT0(TRACING_CATEGORY_NODE1(environment), "RunTimers"); in RunTimers()
1248 void Environment::CheckImmediate(uv_check_t* handle) { in CheckImmediate()
1249 Environment* env = Environment::from_immediate_check_handle(handle); in CheckImmediate()
1250 TRACE_EVENT0(TRACING_CATEGORY_NODE1(environment), "CheckImmediate"); in CheckImmediate()
1273 void Environment::ToggleImmediateRef(bool ref) { in ToggleImmediateRef()
1285 Local<Value> Environment::GetNow() { in GetNow()
1296 void CollectExceptionInfo(Environment* env, in CollectExceptionInfo()
1336 void Environment::CollectUVExceptionInfo(Local<Value> object, in CollectUVExceptionInfo()
1541 void Environment::Exit(int exit_code) { in Exit()
1555 stderr, "WARNING: Exited the environment with code %d\n", exit_code); in Exit()
1563 void Environment::stop_sub_worker_contexts() { in stop_sub_worker_contexts()
1574 Environment* Environment::worker_parent_env() const { in worker_parent_env()
1579 void Environment::AddUnmanagedFd(int fd) { in AddUnmanagedFd()
1588 void Environment::RemoveUnmanagedFd(int fd) { in RemoveUnmanagedFd()
1597 void Environment::PrintInfoForSnapshotIfDebug() { in PrintInfoForSnapshotIfDebug()
1599 fprintf(stderr, "At the exit of the Environment:\n"); in PrintInfoForSnapshotIfDebug()
1604 EnvSerializeInfo Environment::Serialize(SnapshotCreator* creator) { in Serialize()
1626 void Environment::EnqueueDeserializeRequest(DeserializeRequestCallback cb, in EnqueueDeserializeRequest()
1635 void Environment::RunDeserializeRequests() { in RunDeserializeRequests()
1649 void Environment::DeserializeProperties(const EnvSerializeInfo* info) { in DeserializeProperties()
1690 void Environment::BuildEmbedderGraph(Isolate* isolate, in BuildEmbedderGraph()
1694 Environment* env = static_cast<Environment*>(data); in BuildEmbedderGraph()
1695 // Start traversing embedder objects from the root Environment object. in BuildEmbedderGraph()
1699 size_t Environment::NearHeapLimitCallback(void* data, in NearHeapLimitCallback()
1702 Environment* env = static_cast<Environment*>(data); in NearHeapLimitCallback()
1825 inline size_t Environment::SelfSize() const { in SelfSize()
1838 void Environment::MemoryInfo(MemoryTracker* tracker) const { in MemoryInfo()
1855 // FIXME(joyeecheung): track other fields in Environment. in MemoryInfo()
1863 // node, we shift its sizeof() size out of the Environment node. in MemoryInfo()
1866 void Environment::RunWeakRefCleanup() { in RunWeakRefCleanup()