Lines Matching defs:mod
286 void set(void* handle, node_module* mod) {
290 map_[handle].module = mod;
294 // making it impossible to access fields of `mod` --
295 // unless `mod` *is* dynamically allocated, but we cannot know that
297 map_[handle].wants_delete_module = mod->nm_flags & NM_F_DELETEME;
619 static Local<Object> InitInternalBinding(Realm* realm, node_module* mod) {
623 realm->isolate_data(), mod->nm_modname, context);
624 CHECK_NULL(mod->nm_register_func);
625 CHECK_NOT_NULL(mod->nm_context_register_func);
628 mod->nm_context_register_func(exports, unused, context, mod->nm_priv);
644 node_module* mod = FindModule(modlist_internal, *module_v, NM_F_INTERNAL);
645 if (mod != nullptr) {
646 exports = InitInternalBinding(realm, mod);
647 realm->internal_bindings.insert(mod);
677 node_module* mod = nullptr;
682 while (mod == nullptr && cur_env != nullptr) {
684 mod = FindModule(cur_env->extra_linked_bindings_head(), name, NM_F_LINKED);
688 if (mod == nullptr)
689 mod = FindModule(modlist_linked, name, NM_F_LINKED);
691 if (mod == nullptr) {
702 if (mod->nm_context_register_func != nullptr) {
703 mod->nm_context_register_func(
704 exports, module, env->context(), mod->nm_priv);
705 } else if (mod->nm_register_func != nullptr) {
706 mod->nm_register_func(exports, module, mod->nm_priv);