react-native-update-cli 2.22.3 → 2.22.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -555,9 +555,17 @@ function normalizeDisassemblyLine(line, strings) {
555
555
  m = /^(\s*)([A-Za-z]+?)(?:LongIndex|Long|Short)?(\s+.*|)$/.exec(line);
556
556
  if (m)
557
557
  line = `${m[1]}${m[2]}${m[3].replace(/\s+/g, ' ')}`;
558
- // switch jump tables sit after the instructions; their relative offset (and
559
- // the table header hermesc prints for them) moves with instruction widths
560
- m = /^(\s*(?:String|UInt)?SwitchImm r\d+, \d+, )\d+(, .*)$/.exec(line);
558
+ // Switch jump tables sit after the instructions; their relative offset (and
559
+ // the table header hermesc prints for them) moves with instruction widths.
560
+ // The two switch instructions carry that offset in different operands:
561
+ // StringSwitchImm rX, <id>, <jtOffset>, <defaultLabel>, <count>
562
+ // UIntSwitchImm rX, <jtOffset>, <defaultLabel>, <min>, <max>
563
+ // Folding only the first shape let a shifted UIntSwitchImm offset read as a
564
+ // real difference and drop an otherwise good delta build.
565
+ m = /^(\s*StringSwitchImm r\d+, \d+, )\d+(, L\d+, \d+)$/.exec(line);
566
+ if (m)
567
+ line = `${m[1]}<jt>${m[2]}`;
568
+ m = /^(\s*UIntSwitchImm r\d+, )\d+(, L\d+, \d+, \d+)$/.exec(line);
561
569
  if (m)
562
570
  line = `${m[1]}<jt>${m[2]}`;
563
571
  if (/^\s*offset \d+$/.test(line))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-update-cli",
3
- "version": "2.22.3",
3
+ "version": "2.22.4",
4
4
  "description": "command line tool for react-native-update (remote updates for react native)",
5
5
  "main": "lib/exports.js",
6
6
  "types": "lib/exports.d.ts",
@@ -643,9 +643,16 @@ export function normalizeDisassemblyLine(
643
643
  // wider form. Fold the suffix and the column padding that follows it.
644
644
  m = /^(\s*)([A-Za-z]+?)(?:LongIndex|Long|Short)?(\s+.*|)$/.exec(line);
645
645
  if (m) line = `${m[1]}${m[2]}${m[3].replace(/\s+/g, ' ')}`;
646
- // switch jump tables sit after the instructions; their relative offset (and
647
- // the table header hermesc prints for them) moves with instruction widths
648
- m = /^(\s*(?:String|UInt)?SwitchImm r\d+, \d+, )\d+(, .*)$/.exec(line);
646
+ // Switch jump tables sit after the instructions; their relative offset (and
647
+ // the table header hermesc prints for them) moves with instruction widths.
648
+ // The two switch instructions carry that offset in different operands:
649
+ // StringSwitchImm rX, <id>, <jtOffset>, <defaultLabel>, <count>
650
+ // UIntSwitchImm rX, <jtOffset>, <defaultLabel>, <min>, <max>
651
+ // Folding only the first shape let a shifted UIntSwitchImm offset read as a
652
+ // real difference and drop an otherwise good delta build.
653
+ m = /^(\s*StringSwitchImm r\d+, \d+, )\d+(, L\d+, \d+)$/.exec(line);
654
+ if (m) line = `${m[1]}<jt>${m[2]}`;
655
+ m = /^(\s*UIntSwitchImm r\d+, )\d+(, L\d+, \d+, \d+)$/.exec(line);
649
656
  if (m) line = `${m[1]}<jt>${m[2]}`;
650
657
  if (/^\s*offset \d+$/.test(line)) line = line.replace(/\d+$/, '<jt>');
651
658
  return line;