aboutsummaryrefslogtreecommitdiff
path: root/src/preamble.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/preamble.js')
-rw-r--r--src/preamble.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/preamble.js b/src/preamble.js
index 17b74cd9..92305ca0 100644
--- a/src/preamble.js
+++ b/src/preamble.js
@@ -6,6 +6,15 @@
{{RUNTIME}}
+#if ASM_JS
+#if RESERVED_FUNCTION_POINTERS
+function jsCall() {
+ var args = Array.prototype.slice.call(arguments);
+ return Runtime.functionPointers[args[0]].apply(null, args.slice(1));
+}
+#endif
+#endif
+
#if BENCHMARK
Module.realPrint = Module.print;
Module.print = Module.printErr = function(){};