Skip to content

Commit ac9d872

Browse files
authored
Remove long-deprecated unused args from makeGetValue/makeSetValue (#16797)
1 parent 1df8aa3 commit ac9d872

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/parseTools.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,7 @@ function makeSetTempDouble(i, type, value) {
366366
}
367367

368368
// See makeSetValue
369-
function makeGetValue(ptr, pos, type, noNeedFirst, unsigned, ignore, align, noSafe, forceAsm) {
370-
assert(!forceAsm, 'forceAsm is no longer supported');
371-
369+
function makeGetValue(ptr, pos, type, noNeedFirst, unsigned, ignore, align, noSafe) {
372370
if (type == 'double' && (align < 8)) {
373371
const setdouble1 = makeSetTempDouble(0, 'i32', makeGetValue(ptr, pos, 'i32', noNeedFirst, unsigned, ignore, align, noSafe));
374372
const setdouble2 = makeSetTempDouble(1, 'i32', makeGetValue(ptr, getFastValue(pos, '+', Runtime.getNativeTypeSize('i32')), 'i32', noNeedFirst, unsigned, ignore, align, noSafe));
@@ -417,9 +415,6 @@ function makeGetValue(ptr, pos, type, noNeedFirst, unsigned, ignore, align, noSa
417415
if (slab.substr(slab.length - 2) == '64') {
418416
ret = `Number(${ret})`;
419417
}
420-
if (forceAsm) {
421-
ret = asmCoercion(ret, type);
422-
}
423418
return ret;
424419
}
425420

@@ -438,12 +433,9 @@ function makeGetValue(ptr, pos, type, noNeedFirst, unsigned, ignore, align, noSa
438433
* @param {number} align: TODO
439434
* @param {bool} noSafe: TODO
440435
* @param {string} sep: TODO
441-
* @param {bool} forcedAlign: legacy, ignored.
442436
* @return {TODO}
443437
*/
444-
function makeSetValue(ptr, pos, value, type, noNeedFirst, ignore, align, noSafe, sep = ';', forcedAlign) {
445-
assert(!forcedAlign, 'forcedAlign is no longer supported');
446-
438+
function makeSetValue(ptr, pos, value, type, noNeedFirst, ignore, align, noSafe, sep = ';') {
447439
if (type == 'double' && (align < 8)) {
448440
return '(' + makeSetTempDouble(0, 'double', value) + ',' +
449441
makeSetValue(ptr, pos, makeGetTempDouble(0, 'i32'), 'i32', noNeedFirst, ignore, align, noSafe, ',') + ',' +

0 commit comments

Comments
 (0)