diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-24 23:06:44 +0100 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-12-07 14:23:18 -0800 |
commit | 26e9eba5aa1db69ad6fa36f6b6f27aed7532623c (patch) | |
tree | bfd1414c2dfdefca1f7afb4cea96b12fd3d217f7 /src/preamble.js | |
parent | ff39897223947c89af7066f3a9421db28e796605 (diff) |
generate separate type-specific function tables
Diffstat (limited to 'src/preamble.js')
-rw-r--r-- | src/preamble.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/preamble.js b/src/preamble.js index 9342bf2b..931c8f51 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -575,9 +575,6 @@ Module['Array_stringify'] = Array_stringify; // Memory management -var FUNCTION_TABLE; // XXX: In theory the indexes here can be equal to pointers to stacked or malloced memory. Such comparisons should - // be false, but can turn out true. We should probably set the top bit to prevent such issues. - var PAGE_SIZE = 4096; function alignMemoryPage(x) { return ((x+4095)>>12)<<12; @@ -735,7 +732,7 @@ function callRuntimeCallbacks(callbacks) { var callback = callbacks.shift(); var func = callback.func; if (typeof func === 'number') { - func = FUNCTION_TABLE[func]; + func = FUNCTION_TABLE_v[func]; // void() } func(callback.arg === undefined ? null : callback.arg); } |