diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-05-03 16:40:18 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-05-04 19:53:45 -0700 |
commit | eadd89b7c87921ea3274e76017046b8bf884b336 (patch) | |
tree | 8c77b931a6323823542f33836ba765f46d6ff97c /src/compiler.js | |
parent | 0560adda8a6c0259478a54e5b514ceaafe8fc10c (diff) |
make memory management sane: 0 is null, then static including globals, then stack, then dynamic/sbrk. deprecate shared libs (BUILD_AS_SHARED_LIB)
Diffstat (limited to 'src/compiler.js')
-rw-r--r-- | src/compiler.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/compiler.js b/src/compiler.js index 313fd5f7..8b9606f1 100644 --- a/src/compiler.js +++ b/src/compiler.js @@ -184,6 +184,7 @@ if (ASM_JS) { assert((TOTAL_MEMORY&(TOTAL_MEMORY-1)) == 0, 'asm.js heap must be power of 2'); } assert(!(!NAMED_GLOBALS && BUILD_AS_SHARED_LIB)); // shared libraries must have named globals +assert(!BUILD_AS_SHARED_LIB, 'shared libs are deprecated'); // Output some info and warnings based on settings @@ -208,7 +209,10 @@ load('parseTools.js'); load('intertyper.js'); load('analyzer.js'); load('jsifier.js'); -if (RELOOP) load(RELOOPER) +if (RELOOP) { + load(RELOOPER); + assert(typeof Relooper != 'undefined'); +} globalEval(processMacros(preprocess(read('runtime.js')))); Runtime.QUANTUM_SIZE = QUANTUM_SIZE; |