dump_function_code: Respect DUMP_GENERATED_WASM configuration

This commit is contained in:
Fabian 2018-04-24 15:29:03 -05:00
parent cba5491fc4
commit c04a21037b

View file

@ -1358,6 +1358,11 @@ CPU.prototype.log_uncompiled_code = function(start, end)
CPU.prototype.dump_function_code = function(block_ptr, count)
{
if(!DEBUG || !DUMP_GENERATED_WASM)
{
return;
}
const SIZEOF_BASIC_BLOCK_IN_DWORDS = 7;
const mem32 = new Int32Array(this.wm.memory.buffer);