aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-09-27 20:00:58 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-09-27 20:00:58 -0700
commitf8de87e641f8ed42fc2dd547ebf869bc6f1793c9 (patch)
tree66a16f9cc67214b5101115fcb70b49972c6a0fdb /src
parent5f5c99ded3fc10bcdc513e0ff78d0e71c67ccdba (diff)
parent121f12727da4825a860284ae26c7b0603313765b (diff)
Merge branch 'llvm-svn' of github.com:kripken/emscripten into llvm-svn
Diffstat (limited to 'src')
-rw-r--r--src/modules.js2
-rw-r--r--src/preamble.js3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/modules.js b/src/modules.js
index a4a64790..942f58ba 100644
--- a/src/modules.js
+++ b/src/modules.js
@@ -244,7 +244,7 @@ var Functions = {
// Shared libraries reuse the parent's function table.
return 'FUNCTION_TABLE = FUNCTION_TABLE.concat([' + indices + ']);';
} else {
- return 'FUNCTION_TABLE = [' + indices + '];';
+ return 'FUNCTION_TABLE = [' + indices + ']; Module["FUNCTION_TABLE"] = FUNCTION_TABLE;';
}
}
};
diff --git a/src/preamble.js b/src/preamble.js
index 1c1ec915..c59a50d1 100644
--- a/src/preamble.js
+++ b/src/preamble.js
@@ -430,6 +430,9 @@ Module['getValue'] = getValue;
var ALLOC_NORMAL = 0; // Tries to use _malloc()
var ALLOC_STACK = 1; // Lives for the duration of the current function call
var ALLOC_STATIC = 2; // Cannot be freed
+Module['ALLOC_NORMAL'] = ALLOC_NORMAL;
+Module['ALLOC_STACK'] = ALLOC_STACK;
+Module['ALLOC_STATIC'] = ALLOC_STATIC;
function allocate(slab, types, allocator) {
var zeroinit, size;