Skip to content

Commit 1dad13c

Browse files
committed
Remove long-deprecated used args from makeGetValue/makeSetValue
1 parent ec0d9c7 commit 1dad13c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/parseTools.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -364,9 +364,7 @@ function makeSetTempDouble(i, type, value) {
364364
}
365365

366366
// See makeSetValue
367-
function makeGetValue(ptr, pos, type, noNeedFirst, unsigned, ignore, align, noSafe, forceAsm) {
368-
assert(!forceAsm, 'forceAsm is no longer supported');
369-
367+
function makeGetValue(ptr, pos, type, noNeedFirst, unsigned, ignore, align, noSafe) {
370368
if (type == 'double' && (align < 8)) {
371369
const setdouble1 = makeSetTempDouble(0, 'i32', makeGetValue(ptr, pos, 'i32', noNeedFirst, unsigned, ignore, align, noSafe));
372370
const setdouble2 = makeSetTempDouble(1, 'i32', makeGetValue(ptr, getFastValue(pos, '+', Runtime.getNativeTypeSize('i32')), 'i32', noNeedFirst, unsigned, ignore, align, noSafe));
@@ -436,12 +434,9 @@ function makeGetValue(ptr, pos, type, noNeedFirst, unsigned, ignore, align, noSa
436434
* @param {number} align: TODO
437435
* @param {bool} noSafe: TODO
438436
* @param {string} sep: TODO
439-
* @param {bool} forcedAlign: legacy, ignored.
440437
* @return {TODO}
441438
*/
442-
function makeSetValue(ptr, pos, value, type, noNeedFirst, ignore, align, noSafe, sep = ';', forcedAlign) {
443-
assert(!forcedAlign, 'forcedAlign is no longer supported');
444-
439+
function makeSetValue(ptr, pos, value, type, noNeedFirst, ignore, align, noSafe, sep = ';') {
445440
if (type == 'double' && (align < 8)) {
446441
return '(' + makeSetTempDouble(0, 'double', value) + ',' +
447442
makeSetValue(ptr, pos, makeGetTempDouble(0, 'i32'), 'i32', noNeedFirst, ignore, align, noSafe, ',') + ',' +

0 commit comments

Comments
 (0)