Lines Matching refs:op1
52 int zend_optimizer_eval_binary_op(zval *result, zend_uchar opcode, zval *op1, zval *op2) /* {{{ */ in zend_optimizer_eval_binary_op() argument
57 if (zend_binary_op_produces_error(opcode, op1, op2)) { in zend_optimizer_eval_binary_op()
63 ret = binary_op(result, op1, op2); in zend_optimizer_eval_binary_op()
70 int zend_optimizer_eval_unary_op(zval *result, zend_uchar opcode, zval *op1) /* {{{ */ in zend_optimizer_eval_unary_op() argument
76 && Z_TYPE_P(op1) != IS_LONG in zend_optimizer_eval_unary_op()
77 && Z_TYPE_P(op1) != IS_DOUBLE in zend_optimizer_eval_unary_op()
78 && Z_TYPE_P(op1) != IS_STRING) { in zend_optimizer_eval_unary_op()
82 return unary_op(result, op1); in zend_optimizer_eval_unary_op()
84 ZVAL_BOOL(result, zend_is_true(op1)); in zend_optimizer_eval_unary_op()
90 int zend_optimizer_eval_cast(zval *result, uint32_t type, zval *op1) /* {{{ */ in zend_optimizer_eval_cast() argument
97 ZVAL_BOOL(result, zval_is_true(op1)); in zend_optimizer_eval_cast()
100 ZVAL_LONG(result, zval_get_long(op1)); in zend_optimizer_eval_cast()
103 ZVAL_DOUBLE(result, zval_get_double(op1)); in zend_optimizer_eval_cast()
108 if (Z_TYPE_P(op1) != IS_ARRAY && Z_TYPE_P(op1) != IS_DOUBLE) { in zend_optimizer_eval_cast()
109 ZVAL_STR(result, zval_get_string(op1)); in zend_optimizer_eval_cast()
114 ZVAL_COPY(result, op1); in zend_optimizer_eval_cast()
122 int zend_optimizer_eval_strlen(zval *result, zval *op1) /* {{{ */ in zend_optimizer_eval_strlen() argument
124 if (Z_TYPE_P(op1) != IS_STRING) { in zend_optimizer_eval_strlen()
127 ZVAL_LONG(result, Z_STRLEN_P(op1)); in zend_optimizer_eval_strlen()
198 opline->op1.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op1_const()
220 opline->op1.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op1_const()
227 opline->op1.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op1_const()
234 opline->op1.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op1_const()
241 opline->op1.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op1_const()
250 opline->op1.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op1_const()
276 opline->op1.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op1_const()
285 opline->op1.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op1_const()
308 opline->op1.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op1_const()
330 opline->op1.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op1_const()
538 opline->op1.var == var) { in zend_optimizer_replace_by_const()
578 m->op1.var == var) { in zend_optimizer_replace_by_const()
584 m->op1.constant = zend_optimizer_add_literal(op_array, &v); in zend_optimizer_replace_by_const()
588 } while (m->opcode != ZEND_FREE || m->op1_type != type || m->op1.var != var); in zend_optimizer_replace_by_const()
590 ZEND_ASSERT(m->opcode == ZEND_FREE && m->op1_type == type && m->op1.var == var); in zend_optimizer_replace_by_const()
602 if (opline->op1_type == type && opline->op1.var == var) { in zend_optimizer_replace_by_const()
621 opline->op1.constant = zend_optimizer_add_literal(op_array, &v); in zend_optimizer_replace_by_const()
653 ZEND_ASSERT(opline->op1.var == var); in zend_optimizer_replace_by_const()
678 ZEND_SET_OP_JMP_ADDR(new_opline, new_opline->op1, ZEND_OP1_JMP_ADDR(opline)); in zend_optimizer_migrate_jump()
724 …ZEND_SET_OP_JMP_ADDR(opline, opline->op1, ZEND_OP1_JMP_ADDR(opline) - shiftlist[ZEND_OP1_JMP_ADDR(… in zend_optimizer_shift_jump()
768 zval *op1 = CRT_CONSTANT(opline->op1); in get_class_entry_from_op1() local
769 if (Z_TYPE_P(op1) == IS_STRING) { in get_class_entry_from_op1()
770 zend_string *class_name = Z_STR_P(op1 + 1); in get_class_entry_from_op1()
786 && (opline->op1.num & ZEND_FETCH_CLASS_MASK) == ZEND_FETCH_CLASS_SELF) { in get_class_entry_from_op1()
908 uint32_t var = free_opline->op1.var; in zend_optimizer_get_loop_var_def()
1047 ZEND_PASS_TWO_UNDO_CONSTANT(op_array, opline, opline->op1); in zend_revert_pass_two()
1097 ZEND_PASS_TWO_UPDATE_CONSTANT(op_array, opline, opline->op1); in zend_redo_pass_two()
1107 opline->op1.jmp_addr = &op_array->opcodes[opline->op1.jmp_addr - old_opcodes]; in zend_redo_pass_two()
1160 && (opline+1)->op1.var == opline->result.var) { in zend_redo_pass_two()
1164 && (opline+1)->op1.var == opline->result.var) { in zend_redo_pass_two()
1219 ZEND_PASS_TWO_UPDATE_CONSTANT(op_array, opline, opline->op1); in zend_redo_pass_two_ex()
1230 opline->op1.jmp_addr = &op_array->opcodes[opline->op1.jmp_addr - old_opcodes]; in zend_redo_pass_two_ex()
1283 && (opline+1)->op1.var == opline->result.var) { in zend_redo_pass_two_ex()
1287 && (opline+1)->op1.var == opline->result.var) { in zend_redo_pass_two_ex()
1331 opline->op1.num = zend_vm_calc_used_stack(opline->extended_value, func); in zend_adjust_fcall_stack_size()
1349 opline->op1.num = zend_vm_calc_used_stack(opline->extended_value, call_info->callee_func); in zend_adjust_fcall_stack_size_graph()