aboutsummaryrefslogtreecommitdiff
path: root/src/lj_asm.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lj_asm.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lj_asm.c b/src/lj_asm.c
index b8d20f2d..9d874ddb 100644
--- a/src/lj_asm.c
+++ b/src/lj_asm.c
@@ -1086,12 +1086,12 @@ static void asm_bufput(ASMState *as, IRIns *ir)
1086 if (irs->o == IR_TOSTR) { /* Fuse number to string conversions. */ 1086 if (irs->o == IR_TOSTR) { /* Fuse number to string conversions. */
1087 if (irs->op2 == IRTOSTR_NUM) { 1087 if (irs->op2 == IRTOSTR_NUM) {
1088 args[1] = ASMREF_TMP1; /* TValue * */ 1088 args[1] = ASMREF_TMP1; /* TValue * */
1089 ci = &lj_ir_callinfo[IRCALL_lj_buf_putnum]; 1089 ci = &lj_ir_callinfo[IRCALL_lj_strfmt_putnum];
1090 } else { 1090 } else {
1091 lua_assert(irt_isinteger(IR(irs->op1)->t)); 1091 lua_assert(irt_isinteger(IR(irs->op1)->t));
1092 args[1] = irs->op1; /* int */ 1092 args[1] = irs->op1; /* int */
1093 if (irs->op2 == IRTOSTR_INT) 1093 if (irs->op2 == IRTOSTR_INT)
1094 ci = &lj_ir_callinfo[IRCALL_lj_buf_putint]; 1094 ci = &lj_ir_callinfo[IRCALL_lj_strfmt_putint];
1095 else 1095 else
1096 ci = &lj_ir_callinfo[IRCALL_lj_buf_putchar]; 1096 ci = &lj_ir_callinfo[IRCALL_lj_buf_putchar];
1097 } 1097 }
@@ -1131,14 +1131,14 @@ static void asm_tostr(ASMState *as, IRIns *ir)
1131 args[0] = ASMREF_L; 1131 args[0] = ASMREF_L;
1132 as->gcsteps++; 1132 as->gcsteps++;
1133 if (ir->op2 == IRTOSTR_NUM) { 1133 if (ir->op2 == IRTOSTR_NUM) {
1134 args[1] = ASMREF_TMP1; /* const lua_Number * */ 1134 args[1] = ASMREF_TMP1; /* cTValue * */
1135 ci = &lj_ir_callinfo[IRCALL_lj_str_fromnum]; 1135 ci = &lj_ir_callinfo[IRCALL_lj_strfmt_num];
1136 } else { 1136 } else {
1137 args[1] = ir->op1; /* int32_t k */ 1137 args[1] = ir->op1; /* int32_t k */
1138 if (ir->op2 == IRTOSTR_INT) 1138 if (ir->op2 == IRTOSTR_INT)
1139 ci = &lj_ir_callinfo[IRCALL_lj_str_fromint]; 1139 ci = &lj_ir_callinfo[IRCALL_lj_strfmt_int];
1140 else 1140 else
1141 ci = &lj_ir_callinfo[IRCALL_lj_str_fromchar]; 1141 ci = &lj_ir_callinfo[IRCALL_lj_strfmt_char];
1142 } 1142 }
1143 asm_setupresult(as, ir, ci); /* GCstr * */ 1143 asm_setupresult(as, ir, ci); /* GCstr * */
1144 asm_gencall(as, ci, args); 1144 asm_gencall(as, ci, args);