Lines Matching defs:global
3695 void WasmGraphBuilder::GetGlobalBaseAndOffset(const wasm::WasmGlobal& global,
3697 if (global.mutability && global.imported) {
3701 Int32Constant(global.index * kSystemPointerSize));
3702 if (global.type.is_reference()) {
3706 *base = gasm_->LoadFixedArrayElementAny(buffers, global.index);
3708 // For this case, {base_or_index} gives the index of the global in the
3719 } else if (global.type.is_reference()) {
3723 wasm::ObjectAccess::ElementOffsetInTaggedFixedArray(global.offset));
3726 *offset = gasm_->IntPtrConstant(global.offset);
3731 const wasm::WasmGlobal& global = env_->module->globals[index];
3732 if (global.type == wasm::kWasmS128) has_simd_ = true;
3735 GetGlobalBaseAndOffset(global, &base, &offset);
3736 MachineType mem_type = global.type.machine_type();
3737 return global.mutability ? gasm_->LoadFromObject(mem_type, base, offset)
3742 const wasm::WasmGlobal& global = env_->module->globals[index];
3743 if (global.type == wasm::kWasmS128) has_simd_ = true;
3746 GetGlobalBaseAndOffset(global, &base, &offset);
3747 ObjectAccess access(global.type.machine_type(), global.type.is_reference()
7039 // Load global receiver if sloppy else use undefined.