diff options
author | Ash Wolf <ninji@wuffs.org> | 2022-12-29 12:32:55 +0000 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2022-12-29 12:32:55 +0000 |
commit | fcfbafff31869ed808bff0639532db1828660e92 (patch) | |
tree | 7425b346b031c4cb47a06250b3f6f950374d44ae /compiler_and_linker/unsorted/SpillCode.c | |
parent | bc1321735c15104ffad195e1509cab5f3a044260 (diff) | |
download | MWCC-fcfbafff31869ed808bff0639532db1828660e92.tar.gz MWCC-fcfbafff31869ed808bff0639532db1828660e92.zip |
dump lots more code
Diffstat (limited to 'compiler_and_linker/unsorted/SpillCode.c')
-rw-r--r-- | compiler_and_linker/unsorted/SpillCode.c | 36 |
1 files changed, 12 insertions, 24 deletions
diff --git a/compiler_and_linker/unsorted/SpillCode.c b/compiler_and_linker/unsorted/SpillCode.c index e583613..bfafbac 100644 --- a/compiler_and_linker/unsorted/SpillCode.c +++ b/compiler_and_linker/unsorted/SpillCode.c @@ -79,8 +79,7 @@ static Object *makespilltemporary(Type *type) { static PCode *rematerialize_spilled_register(short reg, IGNode *node) { PCode *instr = copypcode(node->instr8); -#line 128 - CError_ASSERT(instr->args[0].kind == PCOp_REGISTER); + CError_ASSERT(128, instr->args[0].kind == PCOp_REGISTER); instr->args[0].data.reg.reg = reg; return instr; @@ -113,23 +112,19 @@ static void insert_load_spilled_register(PCode *instr, short reg, IGNode *node) opcode = PC_LWZ; break; default: -#line 187 - CError_FATAL(); + CError_FATAL(187); } memclrw(&operand, sizeof(Operand)); operand.optype = OpndType_Symbol; operand.object = node->spillTemporary; -#line 222 - CError_ASSERT(node->spillTemporary->datatype == DLOCAL); + CError_ASSERT(222, node->spillTemporary->datatype == DLOCAL); coerce_to_addressable(&operand); -#line 233 - CError_ASSERT(operand.optype == OpndType_GPR_ImmOffset); + CError_ASSERT(233, operand.optype == OpndType_GPR_ImmOffset); -#line 237 - CError_ASSERT(node->spillTemporary->datatype == DLOCAL); + CError_ASSERT(237, node->spillTemporary->datatype == DLOCAL); if (node->flags & fPairLow) offset = low_offset; @@ -141,8 +136,7 @@ static void insert_load_spilled_register(PCode *instr, short reg, IGNode *node) break; case RegClass_FPR: -#line 253 - CError_ASSERT(node->spillTemporary->datatype == DLOCAL); + CError_ASSERT(253, node->spillTemporary->datatype == DLOCAL); if (node->flags & fPairLow) offset = low_offset; @@ -165,8 +159,7 @@ static void insert_load_spilled_register(PCode *instr, short reg, IGNode *node) break; case RegClass_VR: -#line 320 - CError_ASSERT(node->spillTemporary->datatype == DLOCAL); + CError_ASSERT(320, node->spillTemporary->datatype == DLOCAL); object = node->spillTemporary; newInstr = makepcode(PC_ADDI, rTEMP_for_VR_spill, local_base_register(object), object, 0); @@ -176,8 +169,7 @@ static void insert_load_spilled_register(PCode *instr, short reg, IGNode *node) break; default: -#line 333 - CError_FATAL(); + CError_FATAL(333); } } @@ -209,8 +201,7 @@ static void insert_store_spilled_register(PCode *instr, Boolean flag, short reg, opcode = PC_STW; break; default: -#line 391 - CError_FATAL(); + CError_FATAL(391); } if (node->flags & fPairLow) @@ -249,8 +240,7 @@ static void insert_store_spilled_register(PCode *instr, Boolean flag, short reg, break; default: -#line 527 - CError_FATAL(); + CError_FATAL(527); } } @@ -270,8 +260,7 @@ static void spillinstruction(PCodeBlock *block, PCode *instr) { regs = used_virtual_registers[coloring_class]; flag = 0; for (i = 0, op = instr->args; i < instr->argCount; i++, op++) { -#line 563 - CError_ASSERT(instr->block != NULL); + CError_ASSERT(563, instr->block != NULL); if ( PC_OP_IS_ANY_REGISTER(op, coloring_class) && @@ -401,8 +390,7 @@ static void assign_spill_locations(void) { type = TYPE(&stvectorunsignedchar); break; default: -#line 771 - CError_FATAL(); + CError_FATAL(771); } node->spillTemporary = makespilltemporary(type); |