aboutsummaryrefslogtreecommitdiff
path: root/src/analyzer.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-01-15 10:33:54 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-01-15 10:33:54 -0800
commitcd98696a7af53f8805e09eb612a440abb3656e61 (patch)
treea1fbdf94b0e21ab89ce8d20ef189b44087a51ade /src/analyzer.js
parent00876c9bd1f4363f897f59e0b5212128390bf1b4 (diff)
make bitshift64 use integer constants for the op
Diffstat (limited to 'src/analyzer.js')
-rw-r--r--src/analyzer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyzer.js b/src/analyzer.js
index d91bbe73..cafd4745 100644
--- a/src/analyzer.js
+++ b/src/analyzer.js
@@ -655,7 +655,7 @@ function analyzer(data, sidePass) {
assert(sourceBits == 64, 'TODO: handle nonconstant shifts on != 64 bits');
value.intertype = 'value';
value.ident = 'Runtime' + (ASM_JS ? '_' : '.') + 'bitshift64(' + sourceElements[0].ident + ', ' +
- sourceElements[1].ident + ',"' + value.op + '",' + value.params[1].ident + '$0);' +
+ sourceElements[1].ident + ',' + Runtime['BITSHIFT64_' + value.op.toUpperCase()] + ',' + value.params[1].ident + '$0);' +
'var ' + value.assignTo + '$0 = ' + makeGetTempDouble(0, 'i32') + ', ' + value.assignTo + '$1 = ' + makeGetTempDouble(1, 'i32') + ';';
value.assignTo = null;
i++;