@@ -1106,7 +1106,7 @@ static bool logical_immediate_p(uint64_t value, uint32_t reg_size)
1106
1106
| // In x64, if the range of this LONG value can be represented via INT type, only move the low 32 bits into dst_addr.
1107
1107
| // Note that imm32 is signed extended to 64 bits during mov.
1108
1108
| // 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 .
1110
1110
| SET_ZVAL_LVAL dst_addr, Z_LVAL_P(zv), Rx(tmp_reg1), Rx(tmp_reg2)
1111
1111
|| }
1112
1112
|| }
@@ -1794,7 +1794,7 @@ static int zend_jit_interrupt_handler_stub(dasm_State **Dst)
1794
1794
| ldp x29, x30, [sp], # SPAD // stack alignment
1795
1795
| JMP_IP TMP1
1796
1796
} else {
1797
- | ldp FP, RX, T2 // retore FP and IP
1797
+ | ldp FP, RX, T2 // restore FP and IP
1798
1798
| ldp x29, x30, [sp], # NR_SPAD // stack alignment
1799
1799
| mov RETVALx, #1 // ZEND_VM_ENTER
1800
1800
| ret
@@ -1821,7 +1821,7 @@ static int zend_jit_exception_handler_stub(dasm_State **Dst)
1821
1821
} else {
1822
1822
| mov FCARG1x, FP
1823
1823
| EXT_CALL handler, REG0
1824
- | ldp FP, RX, T2 // retore FP and IP
1824
+ | ldp FP, RX, T2 // restore FP and IP
1825
1825
| ldp x29, x30, [sp], # NR_SPAD // stack alignment
1826
1826
| tbnz RETVALw, #31, >1
1827
1827
| mov RETVALw, #1 // ZEND_VM_ENTER
@@ -1909,7 +1909,7 @@ static int zend_jit_leave_function_stub(dasm_State **Dst)
1909
1909
| ldp x29, x30, [sp], # SPAD // stack alignment
1910
1910
} else {
1911
1911
| mov FCARG2x, FP
1912
- | ldp FP, RX, T2 // retore FP and IP
1912
+ | ldp FP, RX, T2 // restore FP and IP
1913
1913
| ldp x29, x30, [sp], # NR_SPAD // stack alignment
1914
1914
}
1915
1915
| TST_32_WITH_CONST FCARG1w, ZEND_CALL_TOP, TMP1w
@@ -1947,7 +1947,7 @@ static int zend_jit_leave_throw_stub(dasm_State **Dst)
1947
1947
|5:
1948
1948
| // opline = EG(exception_op);
1949
1949
| 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
1951
1951
| ldp x29, x30, [sp], # NR_SPAD // stack alignment
1952
1952
| mov RETVALx, #2 // ZEND_VM_LEAVE
1953
1953
| ret
@@ -2418,7 +2418,7 @@ static int zend_jit_trace_halt_stub(dasm_State **Dst)
2418
2418
| mov IP, xzr // PC must be zero
2419
2419
| ret
2420
2420
} else {
2421
- | ldp FP, RX, T2 // retore FP and IP
2421
+ | ldp FP, RX, T2 // restore FP and IP
2422
2422
| ldp x29, x30, [sp], # NR_SPAD // stack alignment
2423
2423
| movn RETVALx, #0 // ZEND_VM_RETURN (-1)
2424
2424
| ret
@@ -2492,7 +2492,7 @@ static int zend_jit_trace_exit_stub(dasm_State **Dst)
2492
2492
| ldp x29, x30, [sp], # SPAD // stack alignment
2493
2493
| JMP_IP TMP1
2494
2494
} else {
2495
- | ldp FP, RX, T2 // retore FP and IP
2495
+ | ldp FP, RX, T2 // restore FP and IP
2496
2496
| ldp x29, x30, [sp], # NR_SPAD // stack alignment
2497
2497
| mov RETVALx, #1 // ZEND_VM_ENTER
2498
2498
| ret
@@ -2536,7 +2536,7 @@ static int zend_jit_trace_exit_stub(dasm_State **Dst)
2536
2536
| tst RETVALw, RETVALw
2537
2537
| blt ->trace_halt
2538
2538
|
2539
- | ldp FP, RX, T2 // retore FP and IP
2539
+ | ldp FP, RX, T2 // restore FP and IP
2540
2540
| ldp x29, x30, [sp], # NR_SPAD // stack alignment
2541
2541
| mov RETVALx, #1 // ZEND_VM_ENTER
2542
2542
| ret
@@ -2556,7 +2556,7 @@ static int zend_jit_trace_escape_stub(dasm_State **Dst)
2556
2556
| ldp x29, x30, [sp], # SPAD // stack alignment
2557
2557
| JMP_IP, TMP1
2558
2558
} else {
2559
- | ldp FP, RX, T2 // retore FP and IP
2559
+ | ldp FP, RX, T2 // restore FP and IP
2560
2560
| ldp x29, x30, [sp], # NR_SPAD // stack alignment
2561
2561
| mov RETVALx, #1 // ZEND_VM_ENTER
2562
2562
| ret
@@ -3038,7 +3038,7 @@ static int zend_jit_patch(const void *code, size_t size, uint32_t jmp_table_size
3038
3038
if (((ins ^ (uint32_t)delta) & 0x01ffffffu) == 0) {
3039
3039
delta = (uint32_t*)to_addr - ins_ptr;
3040
3040
if (((delta + 0x02000000) >> 26) != 0) {
3041
- abort(); // brnach target out of range
3041
+ abort(); // branch target out of range
3042
3042
}
3043
3043
*ins_ptr = (ins & 0xfc000000u) | ((uint32_t)delta & 0x03ffffffu);
3044
3044
ret++;
@@ -3056,10 +3056,10 @@ static int zend_jit_patch(const void *code, size_t size, uint32_t jmp_table_size
3056
3056
if (veneer) {
3057
3057
delta = (uint32_t*)veneer - ins_ptr;
3058
3058
if (((delta + 0x40000) >> 19) != 0) {
3059
- abort(); // brnach target out of range
3059
+ abort(); // branch target out of range
3060
3060
}
3061
3061
} else {
3062
- abort(); // brnach target out of range
3062
+ abort(); // branch target out of range
3063
3063
}
3064
3064
}
3065
3065
*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
3074
3074
if (veneer) {
3075
3075
delta = (uint32_t*)veneer - ins_ptr;
3076
3076
if (((delta + 0x2000) >> 14) != 0) {
3077
- abort(); // brnach target out of range
3077
+ abort(); // branch target out of range
3078
3078
}
3079
3079
} else {
3080
- abort(); // brnach target out of range
3080
+ abort(); // branch target out of range
3081
3081
}
3082
3082
}
3083
3083
*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
3169
3169
| ldr REG0, [IP, REG0]
3170
3170
| blr REG0
3171
3171
}
3172
- | ldp FP, RX, T2 // retore FP and IP
3172
+ | ldp FP, RX, T2 // restore FP and IP
3173
3173
| ldp x29, x30, [sp], # NR_SPAD // stack alignment
3174
3174
if (!original_handler || !opline ||
3175
3175
(opline->opcode != ZEND_RETURN
@@ -3452,7 +3452,7 @@ static int zend_jit_tail_handler(dasm_State **Dst, const zend_op *opline)
3452
3452
| ldp x29, x30, [sp], # SPAD // stack alignment
3453
3453
} else {
3454
3454
| mov FCARG1x, FP
3455
- | ldp FP, RX, T2 // retore FP and IP
3455
+ | ldp FP, RX, T2 // restore FP and IP
3456
3456
| ldp x29, x30, [sp], # NR_SPAD // stack alignment
3457
3457
}
3458
3458
| EXT_JMP handler, REG0
@@ -4972,7 +4972,7 @@ static int zend_jit_concat_helper(dasm_State **Dst,
4972
4972
}
4973
4973
| LOAD_ZVAL_ADDR FCARG2x, op2_addr
4974
4974
| EXT_CALL zend_jit_fast_assign_concat_helper, REG0
4975
- /* concatination with itself may reduce refcount */
4975
+ /* concatenation with itself may reduce refcount */
4976
4976
op2_info |= MAY_BE_RC1;
4977
4977
} else {
4978
4978
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,
4986
4986
| EXT_CALL zend_jit_fast_concat_tmp_helper, REG0
4987
4987
}
4988
4988
}
4989
- /* concatination with empty string may increase refcount */
4989
+ /* concatenation with empty string may increase refcount */
4990
4990
op2_info |= MAY_BE_RCN;
4991
4991
| FREE_OP op2_type, op2, op2_info, 0, opline, ZREG_TMP1, ZREG_TMP2
4992
4992
|5:
@@ -5011,7 +5011,7 @@ static int zend_jit_concat_helper(dasm_State **Dst,
5011
5011
| LOAD_ZVAL_ADDR CARG3, op2_addr
5012
5012
| SET_EX_OPLINE opline, REG0
5013
5013
| EXT_CALL concat_function, REG0
5014
- /* concatination with empty string may increase refcount */
5014
+ /* concatenation with empty string may increase refcount */
5015
5015
op1_info |= MAY_BE_RCN;
5016
5016
op2_info |= MAY_BE_RCN;
5017
5017
| 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
9528
9528
| ldp x29, x30, [sp], # SPAD // stack alignment
9529
9529
| JMP_IP TMP1
9530
9530
} else {
9531
- | ldp FP, RX, T2 // retore FP and IP
9531
+ | ldp FP, RX, T2 // restore FP and IP
9532
9532
| ldp x29, x30, [sp], # NR_SPAD // stack alignment
9533
9533
| mov RETVALx, #1 // ZEND_VM_ENTER
9534
9534
| ret
@@ -10865,7 +10865,7 @@ static int zend_jit_leave_func(dasm_State **Dst,
10865
10865
// the value of execute_data in execute_ex()
10866
10866
| NIY // TODO
10867
10867
#else
10868
- | ldp FP, RX, T2 // retore FP and IP
10868
+ | ldp FP, RX, T2 // restore FP and IP
10869
10869
| ldp x29, x30, [sp], # NR_SPAD // stack alignment
10870
10870
| mov RETVALx, #2 // ZEND_VM_LEAVE ????
10871
10871
| ret
@@ -14832,7 +14832,7 @@ static bool zend_jit_fetch_indirect_var(dasm_State **Dst, const zend_op *opline,
14832
14832
| IF_NOT_ZVAL_TYPE var_addr, IS_INDIRECT, &exit_addr, ZREG_TMP1
14833
14833
| GET_ZVAL_PTR FCARG1x, var_addr, TMP1
14834
14834
} 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 */
14836
14836
if (opline->op1_type != IS_VAR ||
14837
14837
(opline-1)->result_type != IS_VAR ||
14838
14838
(opline-1)->result.var != opline->op1.var ||
0 commit comments