opline = get_next_op(CG(active_op_array));
opline->opcode = ZEND_EXT_STMT;
- SET_UNUSED(opline->op1);
- SET_UNUSED(opline->op2);
}
/* }}} */
opline = get_next_op(CG(active_op_array));
opline->opcode = ZEND_EXT_FCALL_BEGIN;
- SET_UNUSED(opline->op1);
- SET_UNUSED(opline->op2);
}
/* }}} */
opline = get_next_op(CG(active_op_array));
opline->opcode = ZEND_EXT_FCALL_END;
- SET_UNUSED(opline->op1);
- SET_UNUSED(opline->op2);
}
/* }}} */
zend_op *opline = get_next_op(CG(active_op_array));
opline->opcode = opcode;
- if (op1 == NULL) {
- SET_UNUSED(opline->op1);
- } else {
+ if (op1 != NULL) {
SET_NODE(opline->op1, op1);
}
- if (op2 == NULL) {
- SET_UNUSED(opline->op2);
- } else {
+ if (op2 != NULL) {
SET_NODE(opline->op2, op2);
}
zend_op *opline = get_next_op(CG(active_op_array));
opline->opcode = opcode;
- if (op1 == NULL) {
- SET_UNUSED(opline->op1);
- } else {
+ if (op1 != NULL) {
SET_NODE(opline->op1, op1);
}
- if (op2 == NULL) {
- SET_UNUSED(opline->op2);
- } else {
+ if (op2 != NULL) {
SET_NODE(opline->op2, op2);
}
opline = get_next_op(CG(active_op_array));
opline->opcode = ZEND_TICKS;
- SET_UNUSED(opline->op1);
- SET_UNUSED(opline->op2);
opline->extended_value = FC(declarables).ticks;
}
/* }}} */
static inline zend_op *zend_delayed_emit_op(znode *result, zend_uchar opcode, znode *op1, znode *op2) /* {{{ */
{
zend_op tmp_opline;
+
init_op(&tmp_opline);
+
tmp_opline.opcode = opcode;
- if (op1 == NULL) {
- SET_UNUSED(tmp_opline.op1);
- } else {
+ if (op1 != NULL) {
SET_NODE(tmp_opline.op1, op1);
}
- if (op2 == NULL) {
- SET_UNUSED(tmp_opline.op2);
- } else {
+ if (op2 != NULL) {
SET_NODE(tmp_opline.op2, op2);
}
if (result) {
{
zend_op *opline = get_next_op(CG(active_op_array));
opline->opcode = ZEND_INIT_NS_FCALL_BY_NAME;
- SET_UNUSED(opline->op1);
opline->op2_type = IS_CONST;
opline->op2.constant = zend_add_ns_func_name_literal(
CG(active_op_array), Z_STR(name_node->u.constant));
zend_op *opline = get_next_op(CG(active_op_array));
opline->opcode = ZEND_INIT_FCALL_BY_NAME;
- SET_UNUSED(opline->op1);
opline->op2_type = IS_CONST;
opline->op2.constant = zend_add_func_name_literal(CG(active_op_array), str);
opline->result.num = zend_alloc_cache_slot();
opline->opcode = ZEND_FAST_CALL;
opline->result_type = IS_TMP_VAR;
opline->result.var = loop_var->var_num;
- SET_UNUSED(opline->op1);
if (return_value) {
SET_NODE(opline->op2, return_value);
- } else {
- SET_UNUSED(opline->op2);
}
opline->op1.num = loop_var->u.try_catch_offset;
} else if (loop_var->opcode == ZEND_DISCARD_EXCEPTION) {
opline->opcode = ZEND_DISCARD_EXCEPTION;
opline->op1_type = IS_TMP_VAR;
opline->op1.var = loop_var->var_num;
- SET_UNUSED(opline->op2);
} else if (loop_var->opcode == ZEND_RETURN) {
/* Stack separator */
break;
opline->opcode = loop_var->opcode;
opline->op1_type = loop_var->var_type;
opline->op1.var = loop_var->var_num;
- SET_UNUSED(opline->op2);
opline->extended_value = ZEND_FREE_ON_RETURN;
depth--;
}
opline = get_next_op(CG(active_op_array));
opline->opcode = ZEND_FREE;
SET_NODE(opline->op1, &expr_node);
- SET_UNUSED(opline->op2);
} else if (expr_node.op_type == IS_CONST) {
zval_dtor(&expr_node.u.constant);
}
LITERAL_STR(opline->op1, zend_string_copy(lcname));
/* RTD key is placed after lcname literal in op1 */
zend_add_literal_string(CG(active_op_array), &key);
- SET_UNUSED(opline->op2);
}
zend_string_release(lcname);
SET_NODE(opline->op2, &extends_node);
} else {
opline->opcode = ZEND_DECLARE_CLASS;
- SET_UNUSED(opline->op2);
}
key = zend_build_runtime_definition_key(lcname, decl->lex_pos);
result->op_type = IS_TMP_VAR;
result->u.op.var = -1;
opline->opcode = ZEND_ROPE_INIT;
- SET_UNUSED(opline->op1);
} else {
opline->opcode = ZEND_ROPE_ADD;
SET_NODE(opline->op1, result);