mirror of
https://github.com/php/php-src.git
synced 2026-04-25 08:58:28 +02:00
Microoptimization (avoid code duplication)
This commit is contained in:
+6
-8
@@ -4016,10 +4016,9 @@ ZEND_VM_HOT_HANDLER(129, ZEND_DO_ICALL, ANY, ANY, SPEC(RETVAL))
|
||||
|
||||
if (UNEXPECTED(EG(exception) != NULL)) {
|
||||
zend_rethrow_exception(execute_data);
|
||||
HANDLE_EXCEPTION();
|
||||
} else {
|
||||
ZEND_VM_SET_OPCODE(opline + 1);
|
||||
}
|
||||
|
||||
ZEND_VM_SET_OPCODE(opline + 1);
|
||||
ZEND_VM_CONTINUE();
|
||||
}
|
||||
|
||||
@@ -4124,9 +4123,9 @@ ZEND_VM_C_LABEL(fcall_end):
|
||||
|
||||
if (UNEXPECTED(EG(exception) != NULL)) {
|
||||
zend_rethrow_exception(execute_data);
|
||||
HANDLE_EXCEPTION();
|
||||
} else {
|
||||
ZEND_VM_SET_OPCODE(opline + 1);
|
||||
}
|
||||
ZEND_VM_SET_OPCODE(opline + 1);
|
||||
ZEND_VM_CONTINUE();
|
||||
}
|
||||
|
||||
@@ -4235,10 +4234,9 @@ ZEND_VM_C_LABEL(fcall_end):
|
||||
zend_vm_stack_free_call_frame(call);
|
||||
if (UNEXPECTED(EG(exception) != NULL)) {
|
||||
zend_rethrow_exception(execute_data);
|
||||
HANDLE_EXCEPTION();
|
||||
} else {
|
||||
ZEND_VM_SET_OPCODE(opline + 1);
|
||||
}
|
||||
|
||||
ZEND_VM_SET_OPCODE(opline + 1);
|
||||
ZEND_VM_CONTINUE();
|
||||
}
|
||||
|
||||
|
||||
+12
-16
@@ -1286,10 +1286,9 @@ static ZEND_VM_HOT ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_DO_ICALL_SPEC_RETV
|
||||
|
||||
if (UNEXPECTED(EG(exception) != NULL)) {
|
||||
zend_rethrow_exception(execute_data);
|
||||
HANDLE_EXCEPTION();
|
||||
} else {
|
||||
ZEND_VM_SET_OPCODE(opline + 1);
|
||||
}
|
||||
|
||||
ZEND_VM_SET_OPCODE(opline + 1);
|
||||
ZEND_VM_CONTINUE();
|
||||
}
|
||||
|
||||
@@ -1331,10 +1330,9 @@ static ZEND_VM_HOT ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_DO_ICALL_SPEC_RETV
|
||||
|
||||
if (UNEXPECTED(EG(exception) != NULL)) {
|
||||
zend_rethrow_exception(execute_data);
|
||||
HANDLE_EXCEPTION();
|
||||
} else {
|
||||
ZEND_VM_SET_OPCODE(opline + 1);
|
||||
}
|
||||
|
||||
ZEND_VM_SET_OPCODE(opline + 1);
|
||||
ZEND_VM_CONTINUE();
|
||||
}
|
||||
|
||||
@@ -1462,9 +1460,9 @@ fcall_end:
|
||||
|
||||
if (UNEXPECTED(EG(exception) != NULL)) {
|
||||
zend_rethrow_exception(execute_data);
|
||||
HANDLE_EXCEPTION();
|
||||
} else {
|
||||
ZEND_VM_SET_OPCODE(opline + 1);
|
||||
}
|
||||
ZEND_VM_SET_OPCODE(opline + 1);
|
||||
ZEND_VM_CONTINUE();
|
||||
}
|
||||
|
||||
@@ -1546,9 +1544,9 @@ fcall_end:
|
||||
|
||||
if (UNEXPECTED(EG(exception) != NULL)) {
|
||||
zend_rethrow_exception(execute_data);
|
||||
HANDLE_EXCEPTION();
|
||||
} else {
|
||||
ZEND_VM_SET_OPCODE(opline + 1);
|
||||
}
|
||||
ZEND_VM_SET_OPCODE(opline + 1);
|
||||
ZEND_VM_CONTINUE();
|
||||
}
|
||||
|
||||
@@ -1657,10 +1655,9 @@ fcall_end:
|
||||
zend_vm_stack_free_call_frame(call);
|
||||
if (UNEXPECTED(EG(exception) != NULL)) {
|
||||
zend_rethrow_exception(execute_data);
|
||||
HANDLE_EXCEPTION();
|
||||
} else {
|
||||
ZEND_VM_SET_OPCODE(opline + 1);
|
||||
}
|
||||
|
||||
ZEND_VM_SET_OPCODE(opline + 1);
|
||||
ZEND_VM_CONTINUE();
|
||||
}
|
||||
|
||||
@@ -1769,10 +1766,9 @@ fcall_end:
|
||||
zend_vm_stack_free_call_frame(call);
|
||||
if (UNEXPECTED(EG(exception) != NULL)) {
|
||||
zend_rethrow_exception(execute_data);
|
||||
HANDLE_EXCEPTION();
|
||||
} else {
|
||||
ZEND_VM_SET_OPCODE(opline + 1);
|
||||
}
|
||||
|
||||
ZEND_VM_SET_OPCODE(opline + 1);
|
||||
ZEND_VM_CONTINUE();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user