Fix typos
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 17 Mar 2020 11:08:46 +0000 (12:08 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 17 Mar 2020 11:59:37 +0000 (12:59 +0100)
ext/opcache/jit/zend_jit_trace.c

index 22e705bed28c0d55734fd75927afaedc08a00c50..f066699e63ec18a4106c1d4f684a19f339d7ca4b 100644 (file)
@@ -1717,7 +1717,7 @@ static const void *zend_jit_trace(zend_jit_trace_rec *trace_buffer, uint32_t par
 
        // TODO: register allocation ???
 
-       dasm_growpc(&dasm_state, 1); /* trace needs just one global lable for loop */
+       dasm_growpc(&dasm_state, 1); /* trace needs just one global label for loop */
 
        zend_jit_align_func(&dasm_state);
        if (!parent_trace) {
@@ -1741,7 +1741,7 @@ static const void *zend_jit_trace(zend_jit_trace_rec *trace_buffer, uint32_t par
         || trace_buffer->stop == ZEND_JIT_TRACE_STOP_RECURSIVE_RET) {
 
                if (trace_buffer->stop == ZEND_JIT_TRACE_STOP_LOOP) {
-                       /* Check loop-invariant varaible types */
+                       /* Check loop-invariant variable types */
                        for (i = 0; i < op_array->last_var + op_array->T; i++) {
                                uint32_t info = ssa->var_info[i].type;
 
@@ -1880,7 +1880,7 @@ static const void *zend_jit_trace(zend_jit_trace_rec *trace_buffer, uint32_t par
                                                        if (frame->call) {
                                                                uint8_t res_type = p->op1_type;
                                                                if (res_type & IS_TRACE_REFERENCE) {
-                                                                       res_type = IS_UNKNOWN;;
+                                                                       res_type = IS_UNKNOWN;
                                                                }
                                                                if (res_type != IS_UNKNOWN) {
                                                                        zend_jit_trace_send_type(opline+1, frame->call, res_type);
@@ -1935,7 +1935,7 @@ static const void *zend_jit_trace(zend_jit_trace_rec *trace_buffer, uint32_t par
                                                         && frame->call->func->type == ZEND_USER_FUNCTION) {
                                                                uint8_t res_type = p->op1_type;
                                                                if (res_type & IS_TRACE_REFERENCE) {
-                                                                       res_type = IS_UNKNOWN;;
+                                                                       res_type = IS_UNKNOWN;
                                                                }
                                                                if (res_type != IS_UNKNOWN) {
                                                                        zend_jit_trace_send_type(opline+1, frame->call, res_type);
@@ -1992,7 +1992,7 @@ static const void *zend_jit_trace(zend_jit_trace_rec *trace_buffer, uint32_t par
                                                         && frame->call->func->type == ZEND_USER_FUNCTION) {
                                                                uint8_t res_type = p->op1_type;
                                                                if (res_type & IS_TRACE_REFERENCE) {
-                                                                       res_type = IS_UNKNOWN;;
+                                                                       res_type = IS_UNKNOWN;
                                                                }
                                                                if (res_type != IS_UNKNOWN) {
                                                                        zend_jit_trace_send_type(opline+1, frame->call, res_type);