Home | History | Annotate | Download | only in ast

Lines Matching refs:Entry

36   Entry* entry = new (zone) Entry(loc);
37 entry->local_name = local_name;
38 entry->import_name = import_name;
39 entry->module_request = AddModuleRequest(module_request, specifier_loc);
40 AddRegularImport(entry);
48 Entry* entry = new (zone) Entry(loc);
49 entry->local_name = local_name;
50 entry->module_request = AddModuleRequest(module_request, specifier_loc);
51 AddNamespaceImport(entry, zone);
63 Entry* entry = new (zone) Entry(loc);
64 entry->export_name = export_name;
65 entry->local_name = local_name;
66 AddRegularExport(entry);
77 Entry* entry = new (zone) Entry(loc);
78 entry->export_name = export_name;
79 entry->import_name = import_name;
80 entry->module_request = AddModuleRequest(module_request, specifier_loc);
81 AddSpecialExport(entry, zone);
88 Entry* entry = new (zone) Entry(loc);
89 entry->module_request = AddModuleRequest(module_request, specifier_loc);
90 AddSpecialExport(entry, zone);
110 Handle<ModuleInfoEntry> ModuleDescriptor::Entry::Serialize(
120 ModuleDescriptor::Entry* ModuleDescriptor::Entry::Deserialize(
122 Handle<ModuleInfoEntry> entry) {
123 Entry* result = new (avfactory->zone()) Entry(Scanner::Location::invalid());
125 isolate, avfactory, handle(entry->export_name(), isolate));
127 isolate, avfactory, handle(entry->local_name(), isolate));
129 isolate, avfactory, handle(entry->import_name(), isolate));
130 result->module_request = entry->module_request();
131 result->cell_index = entry->cell_index();
198 Entry* entry =
199 new (avfactory->zone()) Entry(Scanner::Location::invalid());
200 entry->local_name = avfactory->GetString(local_name);
201 entry->export_name = avfactory->GetString(export_name);
202 entry->cell_index = cell_index;
204 AddRegularExport(entry);
211 Entry* entry = it->second;
212 DCHECK_NOT_NULL(entry->local_name);
213 auto import = regular_imports_.find(entry->local_name);
215 // Found an indirect export. Patch export entry and move it from regular
217 DCHECK_NULL(entry->import_name);
218 DCHECK_LT(entry->module_request, 0);
223 entry->import_name = import->second->import_name;
224 entry->module_request = import->second->module_request;
227 // Therefore we overwrite [entry]'s location here. Note that Validate()
231 entry->location = import->second->location;
232 entry->local_name = nullptr;
233 AddSpecialExport(entry, zone);
253 // same index to each such entry.
255 Entry* entry = it->second;
256 DCHECK_NOT_NULL(entry->local_name);
257 DCHECK_NULL(entry->import_name);
258 DCHECK_LT(entry->module_request, 0);
259 DCHECK_EQ(entry->cell_index, 0);
260 entry->cell_index = export_index;
268 Entry* entry = elem.second;
269 DCHECK_NOT_NULL(entry->local_name);
270 DCHECK_NOT_NULL(entry->import_name);
271 DCHECK_LE(0, entry->module_request);
272 DCHECK_EQ(entry->cell_index, 0);
273 entry->cell_index = import_index;
280 const ModuleDescriptor::Entry* BetterDuplicate(
281 const ModuleDescriptor::Entry* candidate,
282 ZoneMap<const AstRawString*, const ModuleDescriptor::Entry*>& export_names,
283 const ModuleDescriptor::Entry* current_duplicate) {
299 const ModuleDescriptor::Entry* ModuleDescriptor::FindDuplicateExport(
301 const ModuleDescriptor::Entry* duplicate = nullptr;
302 ZoneMap<const AstRawString*, const ModuleDescriptor::Entry*> export_names(
307 for (auto entry : special_exports_) {
308 if (entry->export_name == nullptr) continue; // Star export.
309 duplicate = BetterDuplicate(entry, export_names, duplicate);
322 const Entry* entry = FindDuplicateExport(zone);
323 if (entry != nullptr) {
325 entry->location.beg_pos, entry->location.end_pos,
326 MessageTemplate::kDuplicateExport, entry->export_name);
333 const Entry* entry = elem.second;
334 DCHECK_NOT_NULL(entry->local_name);
335 if (module_scope->LookupLocal(entry->local_name) == nullptr) {
337 entry->location.beg_pos, entry->location.end_pos,
338 MessageTemplate::kModuleExportUndefined, entry->local_name);