if (ssa->vars[src].definition_phi
&& ssa->vars[src].definition_phi->pi >= 0
&& phi->block == ssa->vars[src].definition_phi->block) {
- /* Skip zero-lenght interval for Pi variable */
+ /* Skip zero-length interval for Pi variable */
src = ssa->vars[src].definition_phi->sources[0];
}
if (intervals[src]) {
}
/* TODO: Allow usage of preserved registers ???
- * Their values have to be stored in prologuee and restored in epilogue
+ * Their values have to be stored in prologue and restored in epilogue
*/
available = ZEND_REGSET_DIFFERENCE(available, ZEND_REGSET_PRESERVED);
} while (range);
#if 0
- /* Coalesing */
+ /* Coalescing */
if (ssa->vars[current->ssa_var].definition == current->start) {
zend_op *opline = op_array->opcodes + current->start;
int hint = -1;
}
return 1;
#if 0
- // TODO: allow low prioirity register usage
+ // TODO: allow low priority register usage
} else if (reg2 != ZREG_NONE && zend_interval_end(current) < pos2) {
/* register available for the whole interval */
current->reg = reg2;
if (ssa->vars[src].definition_phi
&& ssa->vars[src].definition_phi->pi >= 0
&& phi->block == ssa->vars[src].definition_phi->block) {
- /* Skip zero-lenght interval for Pi variable */
+ /* Skip zero-length interval for Pi variable */
src = ssa->vars[src].definition_phi->sources[0];
}
if (intervals[i]) {
if (ssa->vars[src].definition_phi
&& ssa->vars[src].definition_phi->pi >= 0
&& phi->block == ssa->vars[src].definition_phi->block) {
- /* Skip zero-lenght interval for Pi variable */
+ /* Skip zero-length interval for Pi variable */
src = ssa->vars[src].definition_phi->sources[0];
}
if (intervals[src]) {
|.define FP, r14
|.define IP, r15
|.define IPl, r15d
- |.define RX, r15 // the same as VM IP reused as a general purpos reg
+ |.define RX, r15 // the same as VM IP reused as a general purpose reg
|.define CARG1, rcx // x64/POSIX C call arguments.
|.define CARG2, rdx
|.define CARG3, r8
|.define FP, r14
|.define IP, r15
|.define IPl, r15d
- |.define RX, r15 // the same as VM IP reused as a general purpos reg
+ |.define RX, r15 // the same as VM IP reused as a general purpose reg
|.define CARG1, rdi // x64/POSIX C call arguments.
|.define CARG2, rsi
|.define CARG3, rdx
|.define FP, esi
|.define IP, edi
|.define IPl, edi
- |.define RX, edi // the same as VM IP reused as a general purpos reg
+ |.define RX, edi // the same as VM IP reused as a general purpose reg
|.define FCARG1a, ecx // x86 fastcall arguments.
|.define FCARG2a, edx
|.define FCARG1d, ecx
/* In 64-bit build we compare only low 32-bits.
* x86_64 cmp instruction doesn't support immediate 64-bit operand, and full
- * comparison would require additinal load of 64-bit address into register.
+ * comparison would require an additional load of 64-bit address into register.
* This is not a problem at all, while JIT buffer size is less than 4GB.
*/
|.macro CMP_IP, addr
|.else
| add r4, 8*4+8*8 /* CPU regs + SSE regs */
|.endif
- | // execute_data = EG(current_excute_data)
+ | // execute_data = EG(current_execute_data)
| MEM_OP2_2_ZTS mov, FP, aword, executor_globals, current_execute_data, r0
| test eax, eax
| jl ->trace_halt
}
}
if (!func) {
- /* resolve function ar run time */
+ /* resolve function at run time */
} else if (func->type == ZEND_USER_FUNCTION) {
ZEND_ASSERT(opline->opcode != ZEND_DO_ICALL);
call_num_args = call_info->num_args;
call_num_args = call_info->num_args;
#if ZEND_DEBUG
if (func->common.fn_flags & ZEND_ACC_HAS_RETURN_TYPE) {
- // TODO: Mow most internal functions have type hints ???
+ // TODO: Now most internal functions have type hints ???
if (!trace) {
goto fallback;
}
}
if (trace) {
- // TODO: This is a qucik dirty fix ??????
+ // TODO: This is a quick dirty fix ??????
//
// Internal function may call another trace that,
// replaces EG(trace_id) and the following side exit
}
if (ce->info.user.filename != filename) {
- /* class declaration might be changed infdependently */
+ /* class declaration might be changed independently */
return ZEND_WRONG_PROPERTY_OFFSET;
}
if (parent->type == ZEND_INTERNAL_CLASS) {
break;
} else if (parent->info.user.filename != filename) {
- /* some of parents class declarations might be changed infdependently */
+ /* some of parents class declarations might be changed independently */
/* TODO: this check may be not enough, because even
* in the same it's possible to conditionally define
* few classes with the same name, and "parent" may
}
if (ce->info.user.filename != filename) {
- /* class declaration might be changed infdependently */
+ /* class declaration might be changed independently */
return 1;
}
if (zend_jit_reg_alloc < ZEND_JIT_REG_ALLOC_GLOBAL) {
/* Disable global register allocation,
- * register allocation forSAA variables connected through Phi functions
+ * register allocation for SSA variables connected through Phi functions
*/
if (ssa->vars[var].definition_phi) {
return 0;