diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-05-09 18:01:35 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-05-09 18:01:35 -0700 |
commit | 598bef06e3063686aaf368684b10268c0af83a7a (patch) | |
tree | 2d9a748af9ab5a85b415f885dda6c7160ed5a7ca /src/parseTools.js | |
parent | 895696aca0830a741b5b33f1ca1fc1e3c8b23c47 (diff) |
FORCE_ALIGNED_MEMORY option
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index db834206..d0d66929 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -1118,6 +1118,8 @@ var asmPrintCounter = 0; // See makeSetValue function makeGetValue(ptr, pos, type, noNeedFirst, unsigned, ignore, align, noSafe, forceAsm) { if (UNALIGNED_MEMORY) align = 1; + else if (FORCE_ALIGNED_MEMORY) align = 8; + if (isStructType(type)) { var typeData = Types.types[type]; var ret = []; @@ -1220,6 +1222,8 @@ function indexizeFunctions(value, type) { //! @param noNeedFirst Whether to ignore the offset in the pointer itself. function makeSetValue(ptr, pos, value, type, noNeedFirst, ignore, align, noSafe, sep, forcedAlign, forceAsm) { if (UNALIGNED_MEMORY && !forcedAlign) align = 1; + else if (FORCE_ALIGNED_MEMORY) align = 8; + sep = sep || ';'; if (isStructType(type)) { var typeData = Types.types[type]; |