Lines Matching defs:module
60 #include "src/objects/module-inl.h"
66 #include "src/objects/synthetic-module-inl.h"
1217 Handle<Context> Factory::NewModuleContext(Handle<SourceTextModule> module,
1228 context.set_extension(*module);
2774 SourceTextModule module = SourceTextModule::cast(
2777 module.set_code(*sfi);
2778 module.set_exports(*exports);
2779 module.set_regular_exports(*regular_exports);
2780 module.set_regular_imports(*regular_imports);
2781 module.set_hash(isolate()->GenerateIdentityHash(Smi::kMaxValue));
2782 module.set_module_namespace(roots.undefined_value(), SKIP_WRITE_BARRIER);
2783 module.set_requested_modules(*requested_modules);
2784 module.set_status(Module::kUnlinked);
2785 module.set_exception(roots.the_hole_value(), SKIP_WRITE_BARRIER);
2786 module.set_top_level_capability(roots.undefined_value(), SKIP_WRITE_BARRIER);
2787 module.set_import_meta(roots.the_hole_value(), kReleaseStore,
2789 module.set_dfs_index(-1);
2790 module.set_dfs_ancestor_index(-1);
2791 module.set_flags(0);
2792 module.set_async(IsAsyncModule(sfi->kind()));
2793 module.set_async_evaluating_ordinal(SourceTextModule::kNotAsyncEvaluated);
2794 module.set_cycle_root(roots.the_hole_value(), SKIP_WRITE_BARRIER);
2795 module.set_async_parent_modules(roots.empty_array_list());
2796 module.set_pending_async_dependencies(0);
2797 return handle(module, isolate());
2810 SyntheticModule module =
2813 module.set_hash(isolate()->GenerateIdentityHash(Smi::kMaxValue));
2814 module.set_module_namespace(roots.undefined_value(), SKIP_WRITE_BARRIER);
2815 module.set_status(Module::kUnlinked);
2816 module.set_exception(roots.the_hole_value(), SKIP_WRITE_BARRIER);
2817 module.set_top_level_capability(roots.undefined_value(), SKIP_WRITE_BARRIER);
2818 module.set_name(*module_name);
2819 module.set_export_names(*export_names);
2820 module.set_exports(*exports);
2821 module.set_evaluation_steps(*evaluation_steps_foreign);
2822 return handle(module, isolate());