[Wasm] Require location for buildConstF32 & buildConstF64 and fix all usages

This commit is contained in:
Zalim Bashorov
2022-12-07 12:41:27 +01:00
parent 332aca10b0
commit e69bbdd5b4
2 changed files with 8 additions and 8 deletions
@@ -24,12 +24,12 @@ abstract class WasmExpressionBuilder {
buildInstr(WasmOp.I64_CONST, location, WasmImmediate.ConstI64(value))
}
fun buildConstF32(value: Float) {
buildInstr(WasmOp.F32_CONST, WasmImmediate.ConstF32(value.toRawBits().toUInt()))
fun buildConstF32(value: Float, location: SourceLocation) {
buildInstr(WasmOp.F32_CONST, location, WasmImmediate.ConstF32(value.toRawBits().toUInt()))
}
fun buildConstF64(value: Double) {
buildInstr(WasmOp.F64_CONST, WasmImmediate.ConstF64(value.toRawBits().toULong()))
fun buildConstF64(value: Double, location: SourceLocation) {
buildInstr(WasmOp.F64_CONST, location, WasmImmediate.ConstF64(value.toRawBits().toULong()))
}
fun buildConstI32Symbol(value: WasmSymbol<Int>) {