Lines Matching defs:global
53 return "global";
847 // ===== Imported global =============================================
850 WasmGlobal* global = &module_->globals.back();
851 global->type = consume_value_type();
852 global->mutability = consume_mutability();
853 if (global->mutability) {
1014 WasmGlobal* global = nullptr;
1015 exp->index = consume_global_index(module_.get(), &global);
1016 if (global) {
1017 global->exported = true;
1126 // Make sure global offset were calculated before they get accessed during
1479 // We calculate the global offsets here, because there may not be a
1480 // global section and code section that would have triggered the
1628 // Calculate individual global offsets and total size of globals table. This
1630 // after the import section and the global section, but before the global
1632 // function should be called is not well-defined, as the global section may
1644 for (WasmGlobal& global : module->globals) {
1645 if (global.mutability && global.imported) {
1646 global.index = num_imported_mutable_globals++;
1647 } else if (global.type.is_reference()) {
1648 global.offset = tagged_offset;
1652 int size = global.type.value_kind_size();
1654 global.offset = untagged_offset;
1730 uint32_t consume_global_index(WasmModule* module, WasmGlobal** global) {
1731 return consume_index("global index", &module->globals, global);