Lines Matching refs:cell_index
111 int ExportIndex(int cell_index) { in ExportIndex() argument
112 DCHECK_EQ(ModuleDescriptor::GetCellIndexKind(cell_index), in ExportIndex()
114 return cell_index - 1; in ExportIndex()
117 int ImportIndex(int cell_index) { in ImportIndex() argument
118 DCHECK_EQ(ModuleDescriptor::GetCellIndexKind(cell_index), in ImportIndex()
120 return -cell_index - 1; in ImportIndex()
135 int cell_index, Handle<FixedArray> names) { in CreateExport() argument
139 module->regular_exports()->set(ExportIndex(cell_index), *cell); in CreateExport()
150 Cell* Module::GetCell(int cell_index) { in GetCell() argument
153 switch (ModuleDescriptor::GetCellIndexKind(cell_index)) { in GetCell()
155 cell = regular_imports()->get(ImportIndex(cell_index)); in GetCell()
158 cell = regular_exports()->get(ExportIndex(cell_index)); in GetCell()
168 int cell_index) { in LoadVariable() argument
169 return handle(module->GetCell(cell_index)->value(), isolate); in LoadVariable()
172 void Module::StoreVariable(Handle<Module> module, int cell_index, in StoreVariable() argument
174 DCHECK_EQ(ModuleDescriptor::GetCellIndexKind(cell_index), in StoreVariable()
176 module->GetCell(cell_index)->set_value(*value); in StoreVariable()
512 int cell_index = module_info->RegularExportCellIndex(i); in PrepareInstantiate() local
515 CreateExport(isolate, module, cell_index, export_names); in PrepareInstantiate()
645 module->regular_imports()->set(ImportIndex(entry->cell_index()), *cell); in FinishInstantiate()