@@ -1106,7 +1106,7 @@ static bool logical_immediate_p(uint64_t value, uint32_t reg_size)
11061106| // In x64, if the range of this LONG value can be represented via INT type, only move the low 32 bits into dst_addr.
11071107| // Note that imm32 is signed extended to 64 bits during mov.
11081108| // In aarch64, we choose to handle both cases in the same way. Even though 4 mov's are used for 64-bit value and 2 mov's are
1109- | // needed for 32-bit value, an extra ext insn is needed for 32-bit vlaue .
1109+ | // needed for 32-bit value, an extra ext insn is needed for 32-bit value .
11101110| SET_ZVAL_LVAL dst_addr, Z_LVAL_P(zv), Rx(tmp_reg1), Rx(tmp_reg2)
11111111|| }
11121112|| }
@@ -1794,7 +1794,7 @@ static int zend_jit_interrupt_handler_stub(dasm_State **Dst)
17941794 | ldp x29, x30, [sp], # SPAD // stack alignment
17951795 | JMP_IP TMP1
17961796 } else {
1797- | ldp FP, RX, T2 // retore FP and IP
1797+ | ldp FP, RX, T2 // restore FP and IP
17981798 | ldp x29, x30, [sp], # NR_SPAD // stack alignment
17991799 | mov RETVALx, #1 // ZEND_VM_ENTER
18001800 | ret
@@ -1821,7 +1821,7 @@ static int zend_jit_exception_handler_stub(dasm_State **Dst)
18211821 } else {
18221822 | mov FCARG1x, FP
18231823 | EXT_CALL handler, REG0
1824- | ldp FP, RX, T2 // retore FP and IP
1824+ | ldp FP, RX, T2 // restore FP and IP
18251825 | ldp x29, x30, [sp], # NR_SPAD // stack alignment
18261826 | tbnz RETVALw, #31, >1
18271827 | mov RETVALw, #1 // ZEND_VM_ENTER
@@ -1909,7 +1909,7 @@ static int zend_jit_leave_function_stub(dasm_State **Dst)
19091909 | ldp x29, x30, [sp], # SPAD // stack alignment
19101910 } else {
19111911 | mov FCARG2x, FP
1912- | ldp FP, RX, T2 // retore FP and IP
1912+ | ldp FP, RX, T2 // restore FP and IP
19131913 | ldp x29, x30, [sp], # NR_SPAD // stack alignment
19141914 }
19151915 | TST_32_WITH_CONST FCARG1w, ZEND_CALL_TOP, TMP1w
@@ -1947,7 +1947,7 @@ static int zend_jit_leave_throw_stub(dasm_State **Dst)
19471947 |5:
19481948 | // opline = EG(exception_op);
19491949 | LOAD_IP_ADDR_ZTS executor_globals, exception_op, TMP2
1950- | ldp FP, RX, T2 // retore FP and IP
1950+ | ldp FP, RX, T2 // restore FP and IP
19511951 | ldp x29, x30, [sp], # NR_SPAD // stack alignment
19521952 | mov RETVALx, #2 // ZEND_VM_LEAVE
19531953 | ret
@@ -2418,7 +2418,7 @@ static int zend_jit_trace_halt_stub(dasm_State **Dst)
24182418 | mov IP, xzr // PC must be zero
24192419 | ret
24202420 } else {
2421- | ldp FP, RX, T2 // retore FP and IP
2421+ | ldp FP, RX, T2 // restore FP and IP
24222422 | ldp x29, x30, [sp], # NR_SPAD // stack alignment
24232423 | movn RETVALx, #0 // ZEND_VM_RETURN (-1)
24242424 | ret
@@ -2492,7 +2492,7 @@ static int zend_jit_trace_exit_stub(dasm_State **Dst)
24922492 | ldp x29, x30, [sp], # SPAD // stack alignment
24932493 | JMP_IP TMP1
24942494 } else {
2495- | ldp FP, RX, T2 // retore FP and IP
2495+ | ldp FP, RX, T2 // restore FP and IP
24962496 | ldp x29, x30, [sp], # NR_SPAD // stack alignment
24972497 | mov RETVALx, #1 // ZEND_VM_ENTER
24982498 | ret
@@ -2536,7 +2536,7 @@ static int zend_jit_trace_exit_stub(dasm_State **Dst)
25362536 | tst RETVALw, RETVALw
25372537 | blt ->trace_halt
25382538 |
2539- | ldp FP, RX, T2 // retore FP and IP
2539+ | ldp FP, RX, T2 // restore FP and IP
25402540 | ldp x29, x30, [sp], # NR_SPAD // stack alignment
25412541 | mov RETVALx, #1 // ZEND_VM_ENTER
25422542 | ret
@@ -2556,7 +2556,7 @@ static int zend_jit_trace_escape_stub(dasm_State **Dst)
25562556 | ldp x29, x30, [sp], # SPAD // stack alignment
25572557 | JMP_IP, TMP1
25582558 } else {
2559- | ldp FP, RX, T2 // retore FP and IP
2559+ | ldp FP, RX, T2 // restore FP and IP
25602560 | ldp x29, x30, [sp], # NR_SPAD // stack alignment
25612561 | mov RETVALx, #1 // ZEND_VM_ENTER
25622562 | ret
@@ -3038,7 +3038,7 @@ static int zend_jit_patch(const void *code, size_t size, uint32_t jmp_table_size
30383038 if (((ins ^ (uint32_t)delta) & 0x01ffffffu) == 0) {
30393039 delta = (uint32_t*)to_addr - ins_ptr;
30403040 if (((delta + 0x02000000) >> 26) != 0) {
3041- abort(); // brnach target out of range
3041+ abort(); // branch target out of range
30423042 }
30433043 *ins_ptr = (ins & 0xfc000000u) | ((uint32_t)delta & 0x03ffffffu);
30443044 ret++;
@@ -3056,10 +3056,10 @@ static int zend_jit_patch(const void *code, size_t size, uint32_t jmp_table_size
30563056 if (veneer) {
30573057 delta = (uint32_t*)veneer - ins_ptr;
30583058 if (((delta + 0x40000) >> 19) != 0) {
3059- abort(); // brnach target out of range
3059+ abort(); // branch target out of range
30603060 }
30613061 } else {
3062- abort(); // brnach target out of range
3062+ abort(); // branch target out of range
30633063 }
30643064 }
30653065 *ins_ptr = (ins & 0xff00001fu) | (((uint32_t)delta & 0x7ffffu) << 5);
@@ -3074,10 +3074,10 @@ static int zend_jit_patch(const void *code, size_t size, uint32_t jmp_table_size
30743074 if (veneer) {
30753075 delta = (uint32_t*)veneer - ins_ptr;
30763076 if (((delta + 0x2000) >> 14) != 0) {
3077- abort(); // brnach target out of range
3077+ abort(); // branch target out of range
30783078 }
30793079 } else {
3080- abort(); // brnach target out of range
3080+ abort(); // branch target out of range
30813081 }
30823082 }
30833083 *ins_ptr = (ins & 0xfff8001fu) | (((uint32_t)delta & 0x3fffu) << 5);
@@ -3169,7 +3169,7 @@ static int zend_jit_trace_return(dasm_State **Dst, bool original_handler, const
31693169 | ldr REG0, [IP, REG0]
31703170 | blr REG0
31713171 }
3172- | ldp FP, RX, T2 // retore FP and IP
3172+ | ldp FP, RX, T2 // restore FP and IP
31733173 | ldp x29, x30, [sp], # NR_SPAD // stack alignment
31743174 if (!original_handler || !opline ||
31753175 (opline->opcode != ZEND_RETURN
@@ -3452,7 +3452,7 @@ static int zend_jit_tail_handler(dasm_State **Dst, const zend_op *opline)
34523452 | ldp x29, x30, [sp], # SPAD // stack alignment
34533453 } else {
34543454 | mov FCARG1x, FP
3455- | ldp FP, RX, T2 // retore FP and IP
3455+ | ldp FP, RX, T2 // restore FP and IP
34563456 | ldp x29, x30, [sp], # NR_SPAD // stack alignment
34573457 }
34583458 | EXT_JMP handler, REG0
@@ -4972,7 +4972,7 @@ static int zend_jit_concat_helper(dasm_State **Dst,
49724972 }
49734973 | LOAD_ZVAL_ADDR FCARG2x, op2_addr
49744974 | EXT_CALL zend_jit_fast_assign_concat_helper, REG0
4975- /* concatination with itself may reduce refcount */
4975+ /* concatenation with itself may reduce refcount */
49764976 op2_info |= MAY_BE_RC1;
49774977 } else {
49784978 if (Z_REG(res_addr) != ZREG_FCARG1 || Z_OFFSET(res_addr) != 0) {
@@ -4986,7 +4986,7 @@ static int zend_jit_concat_helper(dasm_State **Dst,
49864986 | EXT_CALL zend_jit_fast_concat_tmp_helper, REG0
49874987 }
49884988 }
4989- /* concatination with empty string may increase refcount */
4989+ /* concatenation with empty string may increase refcount */
49904990 op2_info |= MAY_BE_RCN;
49914991 | FREE_OP op2_type, op2, op2_info, 0, opline, ZREG_TMP1, ZREG_TMP2
49924992 |5:
@@ -5011,7 +5011,7 @@ static int zend_jit_concat_helper(dasm_State **Dst,
50115011 | LOAD_ZVAL_ADDR CARG3, op2_addr
50125012 | SET_EX_OPLINE opline, REG0
50135013 | EXT_CALL concat_function, REG0
5014- /* concatination with empty string may increase refcount */
5014+ /* concatenation with empty string may increase refcount */
50155015 op1_info |= MAY_BE_RCN;
50165016 op2_info |= MAY_BE_RCN;
50175017 | FREE_OP op1_type, op1, op1_info, 0, NULL, ZREG_TMP1, ZREG_TMP2
@@ -9528,7 +9528,7 @@ static int zend_jit_do_fcall(dasm_State **Dst, const zend_op *opline, const zend
95289528 | ldp x29, x30, [sp], # SPAD // stack alignment
95299529 | JMP_IP TMP1
95309530 } else {
9531- | ldp FP, RX, T2 // retore FP and IP
9531+ | ldp FP, RX, T2 // restore FP and IP
95329532 | ldp x29, x30, [sp], # NR_SPAD // stack alignment
95339533 | mov RETVALx, #1 // ZEND_VM_ENTER
95349534 | ret
@@ -10865,7 +10865,7 @@ static int zend_jit_leave_func(dasm_State **Dst,
1086510865 // the value of execute_data in execute_ex()
1086610866 | NIY // TODO
1086710867#else
10868- | ldp FP, RX, T2 // retore FP and IP
10868+ | ldp FP, RX, T2 // restore FP and IP
1086910869 | ldp x29, x30, [sp], # NR_SPAD // stack alignment
1087010870 | mov RETVALx, #2 // ZEND_VM_LEAVE ????
1087110871 | ret
@@ -14832,7 +14832,7 @@ static bool zend_jit_fetch_indirect_var(dasm_State **Dst, const zend_op *opline,
1483214832 | IF_NOT_ZVAL_TYPE var_addr, IS_INDIRECT, &exit_addr, ZREG_TMP1
1483314833 | GET_ZVAL_PTR FCARG1x, var_addr, TMP1
1483414834 } else {
14835- /* May be already loaded into FCARG1a or RAX by previus FETCH_OBJ_W/DIM_W */
14835+ /* May be already loaded into FCARG1a or RAX by previous FETCH_OBJ_W/DIM_W */
1483614836 if (opline->op1_type != IS_VAR ||
1483714837 (opline-1)->result_type != IS_VAR ||
1483814838 (opline-1)->result.var != opline->op1.var ||
0 commit comments