aboutsummaryrefslogtreecommitdiff
path: root/src/parseTools.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/parseTools.js')
-rw-r--r--src/parseTools.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/parseTools.js b/src/parseTools.js
index 7a8637a0..bd3109e7 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -949,6 +949,14 @@ function getHeapOffset(offset, type) {
}
}
+function asmInitializer(type) {
+ if (type in Runtime.INT_TYPES) {
+ return '0';
+ } else {
+ return '+0';
+ }
+}
+
function asmCoercion(value, type) {
if (type in Runtime.INT_TYPES) {
return value + '|0';