diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler.js b/src/compiler.js index c0bd64d3..ced13cca 100644 --- a/src/compiler.js +++ b/src/compiler.js @@ -1,5 +1,10 @@ // LLVM => JavaScript compiler, main entry point +try { + // On SpiderMonkey, prepare a large amount of GC space + gcparam('maxBytes', 1024*1024*1024); +} catch(e) {} + // Prep - allow this to run in both SpiderMonkey and V8 if (!this['load']) { load = function(f) { eval(snarf(f)) }; |