}
/* These APIs can be used to simplify object get_gc implementations
- * over heterogenous structures. See zend_generator_get_gc() for
+ * over heterogeneous structures. See zend_generator_get_gc() for
* a usage example. */
typedef struct {
#include "php_com_dotnet_internal.h"
#include "Zend/zend_exceptions.h"
-static zval *com_property_read(zend_object *object, zend_string *member, int type, void **cahce_slot, zval *rv)
+static zval *com_property_read(zend_object *object, zend_string *member, int type, void **cache_slot, zval *rv)
{
php_com_dotnet_object *obj;
VARIANT v;
* as a prototype, as it may be overridden with changed signature. */
return same_scope ? fbc : NULL;
}
- /* If the method is non-final, it may be overriden,
+ /* If the method is non-final, it may be overridden,
* but only with a compatible method signature. */
*is_prototype = !is_final;
return fbc;
}
}
- // TODO: Merge two loops implementing paralel move ???
+ // TODO: Merge two loops implementing parallel move ???
for (i = 0; i < parent_vars_count; i++) {
if (STACK_REG(parent_stack, i) != ZREG_NONE) {
if (ra && ra[i] && ra[i]->reg == STACK_REG(parent_stack, i)) {
goto jit_failure;
}
} else {
- /* Register has to be writen back on side exit */
+ /* Register has to be written back on side exit */
SET_STACK_REG(stack, phi->var, ival->reg);
}
}
}
/* Lock-free check if the side trace was already JIT-ed or blacklist-ed in another process */
- // TODO: We may remoive this, becaus of the same check in zend_jit_trace_hot_side() ???
+ // TODO: We may remove this, because of the same check in zend_jit_trace_hot_side() ???
opline = t->exit_info[exit_num].opline;
if (EG(vm_interrupt) || ((uintptr_t)opline & (ZEND_JIT_EXIT_JITED|ZEND_JIT_EXIT_BLACKLISTED))) {
opline = (const zend_op*)((uintptr_t)opline & ~(ZEND_JIT_EXIT_JITED|ZEND_JIT_EXIT_BLACKLISTED));
if ((start & ZEND_JIT_TRACE_START_LOOP) != 0
&& level + ret_level == 0
&& !zend_jit_trace_bad_compiled_loop(orig_opline)) {
- /* Fail to try close outer loop throgh side exit.
+ /* Fail to try close outer loop through side exit.
If this doesn't work just link. */
stop = ZEND_JIT_TRACE_STOP_COMPILED_LOOP;
break;