diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/analyzer.js | 4 | ||||
-rw-r--r-- | src/compiler.js | 2 | ||||
-rw-r--r-- | src/settings.js | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/analyzer.js b/src/analyzer.js index efba03e8..52017f27 100644 --- a/src/analyzer.js +++ b/src/analyzer.js @@ -363,10 +363,10 @@ function analyzer(data) { variable.impl = VAR_EMULATED; } else if (variable.type == 'i64*' && I64_MODE == 1) { variable.impl = VAR_EMULATED; - } else if (OPTIMIZE && variable.pointingLevels === 0 && !variable.hasAddrTaken) { + } else if (MICRO_OPTS && variable.pointingLevels === 0 && !variable.hasAddrTaken) { // A simple int value, can be implemented as a native variable variable.impl = VAR_NATIVE; - } else if (OPTIMIZE && variable.origin === 'alloca' && !variable.hasAddrTaken && !variable.hasValueTaken && + } else if (MICRO_OPTS && variable.origin === 'alloca' && !variable.hasAddrTaken && !variable.hasValueTaken && variable.allocatedNum === 1 && (Runtime.isNumberType(pointedType) || Runtime.isPointerType(pointedType))) { // A pointer to a value which is only accessible through this pointer. Basically diff --git a/src/compiler.js b/src/compiler.js index 3d33ed22..fd96386c 100644 --- a/src/compiler.js +++ b/src/compiler.js @@ -62,7 +62,7 @@ assert(!(USE_TYPED_ARRAYS === 2 && QUANTUM_SIZE !== 4), 'For USE_TYPED_ARRAYS == // Output some info and warnings based on settings -if (!OPTIMIZE || !RELOOP || ASSERTIONS || CHECK_SIGNS || CHECK_OVERFLOWS || INIT_STACK || INIT_HEAP || +if (!MICRO_OPTS || !RELOOP || ASSERTIONS || CHECK_SIGNS || CHECK_OVERFLOWS || INIT_STACK || INIT_HEAP || !SKIP_STACK_IN_SMALL || SAFE_HEAP || PGO || PROFILE || !DISABLE_EXCEPTION_CATCHING) { print('// Note: Some Emscripten settings will significantly limit the speed of the generated code.'); } else { diff --git a/src/settings.js b/src/settings.js index 1d64f143..acdb8c14 100644 --- a/src/settings.js +++ b/src/settings.js @@ -37,7 +37,7 @@ TOTAL_MEMORY = 50*1024*1024; // The total amount of memory to use. This mainly m // is currently no warning about that! // Code embetterments -OPTIMIZE = 0; // Optimize llvm operations into js commands +MICRO_OPTS = 0; // Various micro-optimizations, like nativizing variables RELOOP = 0; // Recreate js native loops from llvm data USE_TYPED_ARRAYS = 0; // Try to use typed arrays for the heap // 1 has two heaps, IHEAP (int32) and FHEAP (double), |