aboutsummaryrefslogtreecommitdiff
path: root/src/preamble.js
diff options
context:
space:
mode:
authorAlon Zakai <azakai@mozilla.com>2011-02-20 19:03:11 -0800
committerAlon Zakai <azakai@mozilla.com>2011-02-20 19:03:11 -0800
commite82689262a0ab476d5a5bf11476fbb4532b4b638 (patch)
treee217662ed016098b9fc13c9fb3d70f7629ee6ab0 /src/preamble.js
parent8855d03cc54dda19e6cd4a885c0e1171f7a7d126 (diff)
fixes for benchmarks
Diffstat (limited to 'src/preamble.js')
-rw-r--r--src/preamble.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/preamble.js b/src/preamble.js
index 0124e6c3..505217ab 100644
--- a/src/preamble.js
+++ b/src/preamble.js
@@ -286,12 +286,11 @@ function __initializeRuntime__() {
Module['FHEAP'] = FHEAP;
STACK_ROOT = STACKTOP = alignMemoryPage(10);
+ var totalStack = 1024*1024; // XXX: Changing this value can lead to bad perf on v8!
try {
- var x = TOTAL_STACK;
- } catch(e) {
- TOTAL_STACK = 1024*1024; // Reserved room for stack XXX: Changing this value can lead to bad perf on v8!
- }
- STACK_MAX = STACK_ROOT + TOTAL_STACK;
+ totalStack = TOTAL_STACK;
+ } catch(e){}
+ STACK_MAX = STACK_ROOT + totalStack;
STATICTOP = alignMemoryPage(STACK_MAX);
}