@@ -423,15 +423,15 @@ jmp_from_label_to_label(x86::Assembler &a, bh_list *jmp_info_list,
423
423
424
424
/* *
425
425
* Encode detecting compare result register according to condition code
426
- * and then jumping to suitable label when the condtion is met
426
+ * and then jumping to suitable label when the condition is met
427
427
*
428
428
* @param cc the compiler context
429
429
* @param a the assembler to emit the code
430
430
* @param jmp_info_list the jmp info list
431
431
* @param label_src the index of src label
432
432
* @param op the opcode of condition operation
433
433
* @param r1 the label info when condition is met
434
- * @param r2 the label info when condition is unmet, do nonthing if VOID
434
+ * @param r2 the label info when condition is unmet, do nothing if VOID
435
435
* @param is_last_insn if current insn is the last insn of current block
436
436
*
437
437
* @return true if success, false if failed
@@ -2589,7 +2589,7 @@ alu_r_r_r_i32(x86::Assembler &a, ALU_OP op, int32 reg_no_dst, int32 reg_no1_src,
2589
2589
if (reg_no2_src == REG_EDX_IDX) {
2590
2590
/* convert `REM_S edx, eax, edx` into
2591
2591
`mov esi, edx` and `REM_S edx eax, rsi` to
2592
- avoid overwritting edx when a.cdq() */
2592
+ avoid overwriting edx when a.cdq() */
2593
2593
a.mov (regs_i32[REG_I32_FREE_IDX], regs_i32[REG_EDX_IDX]);
2594
2594
reg_no2_src = REG_I32_FREE_IDX;
2595
2595
}
@@ -2609,7 +2609,7 @@ alu_r_r_r_i32(x86::Assembler &a, ALU_OP op, int32 reg_no_dst, int32 reg_no1_src,
2609
2609
if (reg_no2_src == REG_EDX_IDX) {
2610
2610
/* convert `REM_U edx, eax, edx` into
2611
2611
`mov esi, edx` and `REM_U edx eax, rsi` to
2612
- avoid overwritting edx when unsigned extend
2612
+ avoid overwriting edx when unsigned extend
2613
2613
eax to edx:eax */
2614
2614
a.mov (regs_i32[REG_I32_FREE_IDX], regs_i32[REG_EDX_IDX]);
2615
2615
reg_no2_src = REG_I32_FREE_IDX;
@@ -5602,7 +5602,7 @@ lower_select(JitCompContext *cc, x86::Assembler &a, COND_OP op, JitReg r0,
5602
5602
a.jmp (imm); \
5603
5603
if (!err_handler->err ) { \
5604
5604
/* The offset written by asmjit is always 0, we patch it \
5605
- again, 6 is the size of jmp instruciton */ \
5605
+ again, 6 is the size of jmp instruction */ \
5606
5606
stream = (char *)a.code ()->sectionById (0 )->buffer ().data () \
5607
5607
+ a.code ()->sectionById (0 )->buffer ().size () - 6 ; \
5608
5608
_offset = label_offsets[label_dst] \
@@ -6169,7 +6169,7 @@ lower_return(JitCompContext *cc, x86::Assembler &a, JitInsn *insn)
6169
6169
* Replace all the jmp address pre-saved when the code cache hasn't been
6170
6170
* allocated with actual address after code cache allocated
6171
6171
*
6172
- * @param cc compiler context containting the allocated code cacha info
6172
+ * @param cc compiler context containing the allocated code cacha info
6173
6173
* @param jmp_info_list the jmp info list
6174
6174
*/
6175
6175
static void
@@ -6557,7 +6557,7 @@ at_cmpxchg_r_ra_base_r_offset_imm(x86::Assembler &a, uint32 bytes_dst,
6557
6557
* @param a the assembler to emit the code
6558
6558
* @param bytes_dst the bytes number of the data to actual operated on(load,
6559
6559
* compare, replacement) could be 1(byte), 2(short), 4(int32), 8(int64)
6560
- * @param data_xchg the immediate data for exchange(conditionally replacment
6560
+ * @param data_xchg the immediate data for exchange(conditionally replacement
6561
6561
* value)
6562
6562
* @param reg_no_base the no of register that stores the base address
6563
6563
* of src&dst memory
@@ -6587,7 +6587,7 @@ at_cmpxchg_imm_ra_base_r_offset_r(x86::Assembler &a, uint32 bytes_dst,
6587
6587
* @param a the assembler to emit the code
6588
6588
* @param bytes_dst the bytes number of the data to actual operated on(load,
6589
6589
* compare, replacement) could be 1(byte), 2(short), 4(int32), 8(int64)
6590
- * @param data_xchg the immediate data for exchange(conditionally replacment
6590
+ * @param data_xchg the immediate data for exchange(conditionally replacement
6591
6591
* value)
6592
6592
* @param reg_no_base the no of register that stores the base address
6593
6593
* of src&dst memory
@@ -8820,7 +8820,7 @@ jit_codegen_compile_call_to_fast_jit(const WASMModule *module, uint32 func_idx)
8820
8820
8821
8821
/* If yes, set eax to 0, return to caller */
8822
8822
8823
- /* Pop all integer arument registers */
8823
+ /* Pop all integer argument registers */
8824
8824
for (i = 0 ; i < MAX_REG_INTS; i++) {
8825
8825
a.pop (regs_i64[reg_idx_of_int_args[i]]);
8826
8826
}
@@ -9084,7 +9084,7 @@ jit_codegen_compile_call_to_fast_jit(const WASMModule *module, uint32 func_idx)
9084
9084
a.mov (m, x86::rdx);
9085
9085
}
9086
9086
9087
- /* Pop all integer arument registers */
9087
+ /* Pop all integer argument registers */
9088
9088
for (i = 0 ; i < MAX_REG_INTS; i++) {
9089
9089
a.pop (regs_i64[reg_idx_of_int_args[i]]);
9090
9090
}
0 commit comments