diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-15 10:33:54 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-15 10:33:54 -0800 |
commit | cd98696a7af53f8805e09eb612a440abb3656e61 (patch) | |
tree | a1fbdf94b0e21ab89ce8d20ef189b44087a51ade /src/parseTools.js | |
parent | 00876c9bd1f4363f897f59e0b5212128390bf1b4 (diff) |
make bitshift64 use integer constants for the op
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index e0c99c52..4e95164e 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -1908,7 +1908,7 @@ function processMathop(item) { case 'ashr': case 'lshr': { if (!isNumber(idents[1])) { - return '(Runtime' + (ASM_JS ? '_' : '.') + 'bitshift64(' + idents[0] + '[0], ' + idents[0] + '[1],"' + op + '",' + stripCorrections(idents[1]) + '[0]|0),' + + return '(Runtime' + (ASM_JS ? '_' : '.') + 'bitshift64(' + idents[0] + '[0], ' + idents[0] + '[1],' + Runtime['BITSHIFT64_' + op.toUpperCase()] + ',' + stripCorrections(idents[1]) + '[0]|0),' + '[' + makeGetTempDouble(0, 'i32') + ',' + makeGetTempDouble(1, 'i32') + '])'; } bits = parseInt(idents[1]); |