cranelift: Implement global_value in interpreter (#4396)

This commit is contained in:
Afonso Bordado
2022-07-06 23:53:52 +01:00
committed by GitHub
parent f9e5f274e8
commit 9575ed4eb7
2 changed files with 30 additions and 1 deletions

View File

@@ -381,7 +381,13 @@ where
})
})
}
Opcode::GlobalValue => unimplemented!("GlobalValue"),
Opcode::GlobalValue => {
if let InstructionData::UnaryGlobalValue { global_value, .. } = inst {
assign_or_memtrap(state.resolve_global_value(global_value))
} else {
unreachable!()
}
}
Opcode::SymbolValue => unimplemented!("SymbolValue"),
Opcode::TlsValue => unimplemented!("TlsValue"),
Opcode::HeapAddr => {