diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-03-29 19:39:07 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-03-29 19:39:07 -0700 |
commit | cf102d3e3b4a6289172a74cd187ccede2cb82261 (patch) | |
tree | 7b95751a8296cc9686e8e10704dccb1bb88a2bfd /src/compiler.js | |
parent | b956a15fb40aa661c7feb0f8b078f1bb0ea1d622 (diff) |
gcparam for spidermonkey
Diffstat (limited to 'src/compiler.js')
-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)) }; |