aboutsummaryrefslogtreecommitdiff
path: root/src/parseTools.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-11-29 12:00:21 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-12-07 14:23:20 -0800
commit18e2c1f8add758844474f2adf931d54626785d4f (patch)
tree3962f9a555f4b41e120f3b87876e1cb153f279bc /src/parseTools.js
parent1b591a0b0c8d330dafdac65e732c6f14c22a19ca (diff)
fix asm initializers for int implemented
Diffstat (limited to 'src/parseTools.js')
-rw-r--r--src/parseTools.js6
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;