summaryrefslogtreecommitdiff
path: root/Zend/zend_opcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_opcode.c')
-rw-r--r--Zend/zend_opcode.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/Zend/zend_opcode.c b/Zend/zend_opcode.c
index aa3e6fbeb2..1dfd6a7d8e 100644
--- a/Zend/zend_opcode.c
+++ b/Zend/zend_opcode.c
@@ -1028,32 +1028,23 @@ ZEND_API binary_op_type get_binary_op(int opcode)
{
switch (opcode) {
case ZEND_ADD:
- case ZEND_ASSIGN_ADD:
return (binary_op_type) add_function;
case ZEND_SUB:
- case ZEND_ASSIGN_SUB:
return (binary_op_type) sub_function;
case ZEND_MUL:
- case ZEND_ASSIGN_MUL:
return (binary_op_type) mul_function;
case ZEND_POW:
- case ZEND_ASSIGN_POW:
return (binary_op_type) pow_function;
case ZEND_DIV:
- case ZEND_ASSIGN_DIV:
return (binary_op_type) div_function;
case ZEND_MOD:
- case ZEND_ASSIGN_MOD:
return (binary_op_type) mod_function;
case ZEND_SL:
- case ZEND_ASSIGN_SL:
return (binary_op_type) shift_left_function;
case ZEND_SR:
- case ZEND_ASSIGN_SR:
return (binary_op_type) shift_right_function;
case ZEND_FAST_CONCAT:
case ZEND_CONCAT:
- case ZEND_ASSIGN_CONCAT:
return (binary_op_type) concat_function;
case ZEND_IS_IDENTICAL:
return (binary_op_type) is_identical_function;
@@ -1071,17 +1062,15 @@ ZEND_API binary_op_type get_binary_op(int opcode)
case ZEND_SPACESHIP:
return (binary_op_type) compare_function;
case ZEND_BW_OR:
- case ZEND_ASSIGN_BW_OR:
return (binary_op_type) bitwise_or_function;
case ZEND_BW_AND:
- case ZEND_ASSIGN_BW_AND:
return (binary_op_type) bitwise_and_function;
case ZEND_BW_XOR:
- case ZEND_ASSIGN_BW_XOR:
return (binary_op_type) bitwise_xor_function;
case ZEND_BOOL_XOR:
return (binary_op_type) boolean_xor_function;
default:
+ ZEND_ASSERT(0);
return (binary_op_type) NULL;
}
}