Make dumping of wasm code configurable, and default to false

This commit is contained in:
Fabian 2018-01-26 11:35:22 -06:00
parent 3c976a1c5a
commit 7db37fa6e2
2 changed files with 6 additions and 1 deletions

View file

@ -24,6 +24,11 @@ var LOG_ALL_IO = false;
*/
var LOG_PAGE_FAULTS = false;
/**
* @const
*/
var DUMP_GENERATED_WASM = false;
var LOG_LEVEL = LOG_ALL & ~LOG_PS2 & ~LOG_PIT & ~LOG_VIRTIO & ~LOG_9P & ~LOG_PIC &
~LOG_DMA & ~LOG_SERIAL & ~LOG_NET & ~LOG_FLOPPY & ~LOG_DISK & ~LOG_VGA;

View file

@ -1409,7 +1409,7 @@ CPU.prototype.codegen_finalize = function(cache_index, virtual_start, start, end
if(DEBUG)
{
if(true && !seen_code[start])
if(DUMP_GENERATED_WASM && !seen_code[start])
{
this.debug.dump_wasm(code);