aboutsummaryrefslogtreecommitdiff
path: root/src/parseTools.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-01-23 17:19:42 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-01-23 17:19:42 -0800
commit5330f281492e6e38d6448d8900006565b8c19a03 (patch)
treec46e24cca33a6fce4dac1abf6b79c352aab61001 /src/parseTools.js
parent7307d02a3b8b6ca382432a2c47287fa49c728b61 (diff)
optimize i32 read as two i16 values
Diffstat (limited to 'src/parseTools.js')
-rw-r--r--src/parseTools.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parseTools.js b/src/parseTools.js
index b94d9eaa..3410c4c9 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -1106,7 +1106,7 @@ function makeGetValue(ptr, pos, type, noNeedFirst, unsigned, ignore, align, noSa
if (isIntImplemented(type)) {
if (bytes == 4 && align == 2) {
// Special case that we can optimize
- ret += makeGetValue(ptr, pos, 'i16', noNeedFirst, 2, ignore) + '+' +
+ ret += makeGetValue(ptr, pos, 'i16', noNeedFirst, 2, ignore) + '|' +
'(' + makeGetValue(ptr, getFastValue(pos, '+', 2), 'i16', noNeedFirst, 2, ignore) + '<<16)';
} else { // XXX we cannot truly handle > 4...
ret = '';