diff options
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index bd3109e7..eaf0b91e 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -949,8 +949,8 @@ function getHeapOffset(offset, type) { } } -function asmInitializer(type) { - if (type in Runtime.INT_TYPES) { +function asmInitializer(type, impl) { + if (isIntImplemented(type)) {// || (impl && impl == 'VAR_EMULATED')) { return '0'; } else { return '+0'; @@ -958,7 +958,7 @@ function asmInitializer(type) { } function asmCoercion(value, type) { - if (type in Runtime.INT_TYPES) { + if (isIntImplemented(type)) { return value + '|0'; } else { return '+' + value; |