From 692069c6eef63754c27e815fd948fea6185d7619 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 17 Jan 2018 20:26:04 -0800 Subject: Refactor optimization defaults (#1366) Followup to #1357. This moves the optimization settings into pass.h, and uses it from there in the various places. This also splits up huge lines from the tracing code, which put all block children (whose number can be arbitrarily large) on one line. This seems to have caused random errors on the bots, I suspect from overflowing a buffer. Anyhow, it's much more clear to split the lines at a reasonable length. --- test/binaryen.js/kitchen-sink.js.txt | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'test/binaryen.js') diff --git a/test/binaryen.js/kitchen-sink.js.txt b/test/binaryen.js/kitchen-sink.js.txt index ed1bfe10c..f24636554 100644 --- a/test/binaryen.js/kitchen-sink.js.txt +++ b/test/binaryen.js/kitchen-sink.js.txt @@ -1418,7 +1418,22 @@ getExpressionInfo(f32.const)={"id":15,"type":3,"value":8.5} BinaryenConstGetValueF64(expressions[250]); getExpressionInfo(f64.const)={"id":15,"type":4,"value":9.5} { -], expressions[160], expressions[163], expressions[166], expressions[169], expressions[172], expressions[175], expressions[178], expressions[181], expressions[184], expressions[187], expressions[190], expressions[191], expressions[192], expressions[193], expressions[195], expressions[197], expressions[198], expressions[200], expressions[202], expressions[203], expressions[204], expressions[206], expressions[212], expressions[217], expressions[224], expressions[226], expressions[228], expressions[231], expressions[233], expressions[235], expressions[237], expressions[239], expressions[240], expressions[241], expressions[242], expressions[244], expressions[245], expressions[246] }; + BinaryenExpressionRef children[] = { expressions[24], expressions[26], expressions[28], expressions[30], expressions[32], + expressions[34], expressions[36], expressions[38], expressions[40], expressions[42], expressions[44], + expressions[46], expressions[48], expressions[50], expressions[52], expressions[54], expressions[56], + expressions[58], expressions[60], expressions[62], expressions[64], expressions[66], expressions[68], + expressions[70], expressions[72], expressions[74], expressions[76], expressions[78], expressions[80], + expressions[82], expressions[84], expressions[86], expressions[88], expressions[90], expressions[92], + expressions[94], expressions[97], expressions[100], expressions[103], expressions[106], expressions[109], + expressions[112], expressions[115], expressions[118], expressions[121], expressions[124], expressions[127], + expressions[130], expressions[133], expressions[136], expressions[139], expressions[142], expressions[145], + expressions[148], expressions[151], expressions[154], expressions[157], expressions[160], expressions[163], + expressions[166], expressions[169], expressions[172], expressions[175], expressions[178], expressions[181], + expressions[184], expressions[187], expressions[190], expressions[191], expressions[192], expressions[193], + expressions[195], expressions[197], expressions[198], expressions[200], expressions[202], expressions[203], + expressions[204], expressions[206], expressions[212], expressions[217], expressions[224], expressions[226], + expressions[228], expressions[231], expressions[233], expressions[235], expressions[237], expressions[239], + expressions[240], expressions[241], expressions[242], expressions[244], expressions[245], expressions[246] }; expressions[251] = BinaryenBlock(the_module, "the-value", children, 95, 0); } expressions[252] = BinaryenDrop(the_module, expressions[251]); -- cgit v1.2.3