diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-29 10:44:04 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-12-07 14:23:19 -0800 |
commit | a10b76178eec4cc5db8f89619751d2a38c66c37e (patch) | |
tree | 618bf439662128a655cc2a79d50042fcbafd2cbd /src/parseTools.js | |
parent | 098716f2517a1536a8eab615d1ee14f9939fcec9 (diff) |
define local vars asm.js style
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 8 |
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'; |