summaryrefslogtreecommitdiff
path: root/src/lj_asm_arm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_asm_arm.h')
-rw-r--r--src/lj_asm_arm.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lj_asm_arm.h b/src/lj_asm_arm.h
index 19250254..d5a242e7 100644
--- a/src/lj_asm_arm.h
+++ b/src/lj_asm_arm.h
@@ -947,9 +947,9 @@ static void asm_sload(ASMState *as, IRIns *ir)
947static void asm_cnew(ASMState *as, IRIns *ir) 947static void asm_cnew(ASMState *as, IRIns *ir)
948{ 948{
949 CTState *cts = ctype_ctsG(J2G(as->J)); 949 CTState *cts = ctype_ctsG(J2G(as->J));
950 CTypeID typeid = (CTypeID)IR(ir->op1)->i; 950 CTypeID ctypeid = (CTypeID)IR(ir->op1)->i;
951 CTSize sz = (ir->o == IR_CNEWI || ir->op2 == REF_NIL) ? 951 CTSize sz = (ir->o == IR_CNEWI || ir->op2 == REF_NIL) ?
952 lj_ctype_size(cts, typeid) : (CTSize)IR(ir->op2)->i; 952 lj_ctype_size(cts, ctypeid) : (CTSize)IR(ir->op2)->i;
953 const CCallInfo *ci = &lj_ir_callinfo[IRCALL_lj_mem_newgco]; 953 const CCallInfo *ci = &lj_ir_callinfo[IRCALL_lj_mem_newgco];
954 IRRef args[2]; 954 IRRef args[2];
955 RegSet allow = (RSET_GPR & ~RSET_SCRATCH); 955 RegSet allow = (RSET_GPR & ~RSET_SCRATCH);
@@ -982,12 +982,12 @@ static void asm_cnew(ASMState *as, IRIns *ir)
982 ofs -= 4; ir--; 982 ofs -= 4; ir--;
983 } 983 }
984 } 984 }
985 /* Initialize gct and typeid. lj_mem_newgco() already sets marked. */ 985 /* Initialize gct and ctypeid. lj_mem_newgco() already sets marked. */
986 { 986 {
987 uint32_t k = emit_isk12(ARMI_MOV, typeid); 987 uint32_t k = emit_isk12(ARMI_MOV, ctypeid);
988 Reg r = k ? RID_R1 : ra_allock(as, typeid, allow); 988 Reg r = k ? RID_R1 : ra_allock(as, ctypeid, allow);
989 emit_lso(as, ARMI_STRB, RID_TMP, RID_RET, offsetof(GCcdata, gct)); 989 emit_lso(as, ARMI_STRB, RID_TMP, RID_RET, offsetof(GCcdata, gct));
990 emit_lsox(as, ARMI_STRH, r, RID_RET, offsetof(GCcdata, typeid)); 990 emit_lsox(as, ARMI_STRH, r, RID_RET, offsetof(GCcdata, ctypeid));
991 emit_d(as, ARMI_MOV|ARMI_K12|~LJ_TCDATA, RID_TMP); 991 emit_d(as, ARMI_MOV|ARMI_K12|~LJ_TCDATA, RID_TMP);
992 if (k) emit_d(as, ARMI_MOV^k, RID_R1); 992 if (k) emit_d(as, ARMI_MOV^k, RID_R1);
993 } 993 }