From a0de6e95733602f7f246bb537af79e87c4a6070a Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 3 Nov 2015 21:18:56 -0800 Subject: factor out float_ --- src/asm2wasm.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/asm2wasm.h') diff --git a/src/asm2wasm.h b/src/asm2wasm.h index 4d12a66f1..e9b0ce2c6 100644 --- a/src/asm2wasm.h +++ b/src/asm2wasm.h @@ -602,7 +602,6 @@ Function* Asm2WasmBuilder::processFunction(Ref ast) { MappedGlobal global = mappedGlobals[name]; auto ret = allocator.alloc(); ret->bytes = getWasmTypeSize(global.type); - ret->float_ = isWasmTypeFloat(global.type); ret->offset = 0; ret->align = ret->bytes; auto ptr = allocator.alloc(); @@ -620,7 +619,6 @@ Function* Asm2WasmBuilder::processFunction(Ref ast) { View& view = views[heap]; auto ret = allocator.alloc(); ret->bytes = view.bytes; - ret->float_ = !view.integer; ret->offset = 0; ret->align = view.bytes; ret->ptr = processUnshifted(target[2], view.bytes); @@ -681,7 +679,6 @@ Function* Asm2WasmBuilder::processFunction(Ref ast) { auto ret = allocator.alloc(); ret->bytes = getWasmTypeSize(global.type); ret->signed_ = true; // but doesn't matter - ret->float_ = isWasmTypeFloat(global.type); ret->offset = 0; ret->align = ret->bytes; auto ptr = allocator.alloc(); @@ -699,7 +696,6 @@ Function* Asm2WasmBuilder::processFunction(Ref ast) { auto ret = allocator.alloc(); ret->bytes = view.bytes; ret->signed_ = view.signed_; - ret->float_ = !view.integer; ret->offset = 0; ret->align = view.bytes; ret->ptr = processUnshifted(ast[2], view.bytes); -- cgit v1.2.3