diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-05-01 18:26:15 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-05-01 18:26:15 -0700 |
commit | c7359d1c1113e480061906a6f4bb930936711c13 (patch) | |
tree | 35590a180f13570ed11b01c619a4f9c560f39569 | |
parent | 8da1f7e4285732527955c5b8a97c25fca79f7943 (diff) |
remove unneeded corrections in unrolled memcpy
-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 5e5df88f..6d65a9c7 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -1367,6 +1367,10 @@ function makeCopyValues(dest, src, num, type, modifier, align, sep) { return '_memcpy(' + dest + ', ' + src + ', ' + num + ')'; } num = parseInt(num); + if (ASM_JS) { + dest = stripCorrections(dest); // remove corrections, since we will be correcting after we add anyhow, + src = stripCorrections(src); // and in the heap assignment expression + } var ret = []; [4, 2, 1].forEach(function(possibleAlign) { if (num == 0) return; |