Lines Matching refs:op1

60 int zend_optimizer_eval_binary_op(zval *result, zend_uchar opcode, zval *op1, zval *op2) /* {{{ */  in zend_optimizer_eval_binary_op()  argument
62 if (zend_binary_op_produces_error(opcode, op1, op2)) { in zend_optimizer_eval_binary_op()
67 return binary_op(result, op1, op2); in zend_optimizer_eval_binary_op()
71 int zend_optimizer_eval_unary_op(zval *result, zend_uchar opcode, zval *op1) /* {{{ */ in zend_optimizer_eval_unary_op() argument
76 if (zend_unary_op_produces_error(opcode, op1)) { in zend_optimizer_eval_unary_op()
79 return unary_op(result, op1); in zend_optimizer_eval_unary_op()
81 ZVAL_BOOL(result, zend_is_true(op1)); in zend_optimizer_eval_unary_op()
87 int zend_optimizer_eval_cast(zval *result, uint32_t type, zval *op1) /* {{{ */ in zend_optimizer_eval_cast() argument
94 ZVAL_BOOL(result, zval_is_true(op1)); in zend_optimizer_eval_cast()
97 ZVAL_LONG(result, zval_get_long(op1)); in zend_optimizer_eval_cast()
100 ZVAL_DOUBLE(result, zval_get_double(op1)); in zend_optimizer_eval_cast()
105 if (Z_TYPE_P(op1) != IS_ARRAY && Z_TYPE_P(op1) != IS_DOUBLE) { in zend_optimizer_eval_cast()
106 ZVAL_STR(result, zval_get_string(op1)); in zend_optimizer_eval_cast()
111 ZVAL_COPY(result, op1); in zend_optimizer_eval_cast()
119 int zend_optimizer_eval_strlen(zval *result, zval *op1) /* {{{ */ in zend_optimizer_eval_strlen() argument
121 if (Z_TYPE_P(op1) != IS_STRING) { in zend_optimizer_eval_strlen()
124 ZVAL_LONG(result, Z_STRLEN_P(op1)); in zend_optimizer_eval_strlen()
195 opline->op1.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op1_const()
217 opline->op1.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op1_const()
224 opline->op1.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op1_const()
231 opline->op1.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op1_const()
238 opline->op1.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op1_const()
247 opline->op1.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op1_const()
273 opline->op1.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op1_const()
282 opline->op1.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op1_const()
286 opline->op1.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op1_const()
290 opline->op1.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op1_const()
310 opline->op1.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op1_const()
334 opline->op1.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op1_const()
542 opline->op1.var == var) { in zend_optimizer_replace_by_const()
584 if (opline->op1_type == type && opline->op1.var == var) { in zend_optimizer_replace_by_const()
623 ZEND_ASSERT(opline->op1.var == var); in zend_optimizer_replace_by_const()
648 ZEND_SET_OP_JMP_ADDR(new_opline, new_opline->op1, ZEND_OP1_JMP_ADDR(opline)); in zend_optimizer_migrate_jump()
694 …ZEND_SET_OP_JMP_ADDR(opline, opline->op1, ZEND_OP1_JMP_ADDR(opline) - shiftlist[ZEND_OP1_JMP_ADDR(… in zend_optimizer_shift_jump()
752 zval *op1 = CRT_CONSTANT(opline->op1); in get_class_entry_from_op1() local
753 if (Z_TYPE_P(op1) == IS_STRING) { in get_class_entry_from_op1()
754 return zend_optimizer_get_class_entry(script, Z_STR_P(op1 + 1)); in get_class_entry_from_op1()
758 && (opline->op1.num & ZEND_FETCH_CLASS_MASK) == ZEND_FETCH_CLASS_SELF) { in get_class_entry_from_op1()
880 uint32_t var = free_opline->op1.var; in zend_optimizer_get_loop_var_def()
1019 ZEND_PASS_TWO_UNDO_CONSTANT(op_array, opline, opline->op1); in zend_revert_pass_two()
1069 ZEND_PASS_TWO_UPDATE_CONSTANT(op_array, opline, opline->op1); in zend_redo_pass_two()
1079 opline->op1.jmp_addr = &op_array->opcodes[opline->op1.jmp_addr - old_opcodes]; in zend_redo_pass_two()
1132 && (opline+1)->op1.var == opline->result.var) { in zend_redo_pass_two()
1136 && (opline+1)->op1.var == opline->result.var) { in zend_redo_pass_two()
1191 ZEND_PASS_TWO_UPDATE_CONSTANT(op_array, opline, opline->op1); in zend_redo_pass_two_ex()
1202 opline->op1.jmp_addr = &op_array->opcodes[opline->op1.jmp_addr - old_opcodes]; in zend_redo_pass_two_ex()
1255 && (opline+1)->op1.var == opline->result.var) { in zend_redo_pass_two_ex()
1259 && (opline+1)->op1.var == opline->result.var) { in zend_redo_pass_two_ex()
1303 opline->op1.num = zend_vm_calc_used_stack(opline->extended_value, func); in zend_adjust_fcall_stack_size()
1322 opline->op1.num = zend_vm_calc_used_stack(opline->extended_value, call_info->callee_func); in zend_adjust_fcall_stack_size_graph()