Skip to content

Commit c89a3ce

Browse files
committed
TypeScript set tags ts-ignore
1 parent 978ffb4 commit c89a3ce

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/backend/targets/x86_64/hwm/main.cts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ class HardwareMachineFactoryEncoder {
270270
modrm.rm = 4; // Indicates SIB byte follows
271271
const ScaleMap: { [key: number]: number } = { 1: 0, 2: 1, 4: 2, 8: 3 };
272272
sib = {
273+
// @ts-ignore
273274
scale: ScaleMap[memory_address.scale || 1],
274275
// Index=ESP is invalid, use 100b for 'none'
275276
index: index_register_value ? (index_register_value.code === 4 ? 4 : index_register_value.code) : 4,

src/backend/targets/x86_64/hwm/units.cts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ try {
202202
compiler.clearSource();
203203

204204
// REX.W + B8+rd io: MOV r64, imm64 -> MOV RAX, 0x1122334455667788
205+
// @ts-ignore
205206
compiler.compile('mov', [providetypes.parseReg('rax') as Operand, providetypes.parseImm((0x1122334455667788n))]);
206207
UnitTest.test('MOV RAX, 0x1122334455667788', compiler.getSource(), Buffer.from([0x48, 0xb8, 0x88, 0x77, 0x66, 0x55, 0x44, 0x33, 0x22, 0x11]));
207208
compiler.clearSource();

0 commit comments

Comments
 (0)