aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-06 14:14:40 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-06 14:14:40 -0800
commit832f3fd0e578e0ed70af28bbaf241ec84733bb91 (patch)
tree5c29756c07e2c83365f5c92880fb34cd4c6dcc95 /src
parent4245dd48d1cb9b741ba637781fb332a6fc450efe (diff)
change default settings in settings.js to what we want
Diffstat (limited to 'src')
-rw-r--r--src/settings.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/settings.js b/src/settings.js
index 4dc94f4a..da39cbee 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -29,18 +29,18 @@ var ASSERTIONS = 1; // Whether we should add runtime assertions, for example to
var INVOKE_RUN = 1; // Whether we will call run(). Disable if you embed the generated
// code in your own, and will call run() yourself at the right time
-var INIT_STACK = 1; // Whether to initialize memory on the stack to 0.
+var INIT_STACK = 0; // Whether to initialize memory on the stack to 0.
var INIT_HEAP = 0; // Whether to initialize memory anywhere other than the stack to 0.
var FAST_MEMORY = 2*1024*1024; // The amount of memory to initialize to 0. This ensures it will be
// in a flat array. This only matters in non-typed array builds.
-var TOTAL_MEMORY = 50*1024*1024; // The total amount of memory to use. Using more memory than this will
+var TOTAL_MEMORY = 10*1024*1024; // The total amount of memory to use. Using more memory than this will
// cause us to expand the heap, which can be costly with typed arrays:
// we need to copy the old heap into a new one in that case.
// Code embetterments
-var MICRO_OPTS = 0; // Various micro-optimizations, like nativizing variables
+var MICRO_OPTS = 1; // Various micro-optimizations, like nativizing variables
var RELOOP = 0; // Recreate js native loops from llvm data
-var USE_TYPED_ARRAYS = 0; // Try to use typed arrays for the heap
+var USE_TYPED_ARRAYS = 2; // Use typed arrays for the heap
// 1 has two heaps, IHEAP (int32) and FHEAP (double),
// and addresses there are a match for normal addresses. This wastes memory but can be fast.
// 2 is a single heap, accessible through views as int8, int32, etc. This saves memory but
@@ -51,7 +51,7 @@ var USE_TYPED_ARRAYS = 0; // Try to use typed arrays for the heap
// TODO: require compiling with -malign-double, which does align doubles
var USE_FHEAP = 1; // Relevant in USE_TYPED_ARRAYS == 1. If this is disabled, only IHEAP will be used, and FHEAP
// not generated at all. This is useful if your code is 100% ints without floats or doubles
-var I64_MODE = 0; // How to implement 64-bit integers:
+var I64_MODE = 1; // How to implement 64-bit integers:
// 0: As doubles. This will work up to about 53 bits.
// 1: As [low, high]. This will support all 64 bits for bit ops, etc. properly, but will still
// use doubles for addition etc., like mode 0. This mode is slower than