Make dumping of wasm code configurable, and default to false
This commit is contained in:
parent
3c976a1c5a
commit
7db37fa6e2
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue