aboutsummaryrefslogtreecommitdiff
path: root/src/runtime.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-03-21 19:48:26 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-03-21 19:48:26 -0700
commit24856d20699818b35f01963e4144c87d1a5c56ff (patch)
treeade6915ad86dedcc646eec29bcca845d5bf90212 /src/runtime.js
parent98f6e8924d27246f40f50ec3f75084f1f04b6459 (diff)
optimize FUNCTION_POINTER and exporting
Diffstat (limited to 'src/runtime.js')
-rw-r--r--src/runtime.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/runtime.js b/src/runtime.js
index 6ab78611..acd5ed8d 100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -77,14 +77,6 @@ Runtime = {
staticAlloc: unInline('staticAlloc', ['size']),
alignMemory: unInline('alignMemory', ['size', 'quantum']),
- getFunctionIndex: function getFunctionIndex(func, ident) {
- var key = FUNCTION_TABLE.length;
- FUNCTION_TABLE[key] = func;
- FUNCTION_TABLE[key+1] = null; // Need to have keys be even numbers, see |polymorph| test
- Module[ident] = func; // Export using full name, for Closure Compiler
- return key;
- },
-
// TODO: cleanup
isNumberType: function(type) {
return type in Runtime.INT_TYPES || type in Runtime.FLOAT_TYPES;