aboutsummaryrefslogtreecommitdiff
path: root/src/jsifier.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-14 12:52:50 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-03-14 12:52:50 -0700
commit83db455d3c69971e1d109fdb8f92e91b7ee667d8 (patch)
tree8f255689c0429984a70f8ae06f1564ec110b887b /src/jsifier.js
parente28105b8e3767ac6691bd6410a484d0fb0a6437e (diff)
move dynamic 64-bit shifts into asm library calls
Diffstat (limited to 'src/jsifier.js')
-rw-r--r--src/jsifier.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index 18740e74..4263618a 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -1570,10 +1570,12 @@ function JSify(data, functionsOnly, givenFunctions) {
// rest of the output that we started to print out earlier (see comment on the
// "Final shape that will be created").
if (PRECISE_I64_MATH && Types.preciseI64MathUsed) {
- ['i64Add'].forEach(function(func) {
- print(processLibraryFunction(LibraryManager.library[func], func)); // must be first to be close to generated code
- Functions.implementedFunctions['_' + func] = LibraryManager.library[func + '__sig'];
- });
+ if (!INCLUDE_FULL_LIBRARY) {
+ ['i64Add', 'bitshift64Shl', 'bitshift64Lshr', 'bitshift64Ashr'].forEach(function(func) {
+ print(processLibraryFunction(LibraryManager.library[func], func)); // must be first to be close to generated code
+ Functions.implementedFunctions['_' + func] = LibraryManager.library[func + '__sig'];
+ });
+ }
print('// EMSCRIPTEN_END_FUNCS\n');
print(read('long.js'));
} else {