From ff710e63eaed7cf8fbf3042843f6243597da49be Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 22 Apr 2019 14:00:35 -0700 Subject: wasm2js: unreachability fixes (#2037) Also test in pass-debug mode, for better coverage. --- test/wasm2js/br.2asm.js | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'test/wasm2js/br.2asm.js') diff --git a/test/wasm2js/br.2asm.js b/test/wasm2js/br.2asm.js index 1aa2f3edc..83401094a 100644 --- a/test/wasm2js/br.2asm.js +++ b/test/wasm2js/br.2asm.js @@ -449,15 +449,14 @@ function asmFunc(global, env, buffer) { } function $47() { - var i64toi32_i32$0 = 0, $0 = 0, $0$hi = 0; + var $0 = 0, $0$hi = 0, i64toi32_i32$1 = 0; block : { - i64toi32_i32$0 = 0; $0 = 45; - $0$hi = i64toi32_i32$0; + $0$hi = 0; break block; } - i64toi32_i32$0 = $0$hi; - i64toi32_i32$HIGH_BITS = i64toi32_i32$0; + i64toi32_i32$1 = $0$hi; + i64toi32_i32$HIGH_BITS = i64toi32_i32$1; return $0 | 0; } @@ -519,10 +518,8 @@ function asmFunc(global, env, buffer) { function $54() { var $0 = 0; block : { - block0 : { - $0 = 8; - break block; - } + $0 = 8; + break block; } return 1 + $0 | 0 | 0; } -- cgit v1.2.3