php-src/Zend/Optimizer
Levi Morrison c461b60060
refactor: change zend_is_true to return bool (#14301)
Previously this returned `int`. Many functions actually take advantage
of the fact this returns exactly 0 or 1. For instance,
`main/streams/xp_socket.c` does:

    sockopts |= STREAM_SOCKOP_IPV6_V6ONLY_ENABLED * zend_is_true(tmpzval);

And `Zend/zend_compile.c` does:

    child = &ast->child[2 - zend_is_true(zend_ast_get_zval(ast->child[0]))];

I changed a few places trivially from `int` to `bool`, but there are
still many places such as the object handlers which return `int` that
should eventually be `bool`.
2024-05-24 15:16:36 -06:00
..
block_pass.c Implement stackless internal function calls 2024-02-06 17:42:28 +01:00
compact_literals.c Implement stackless internal function calls 2024-02-06 17:42:28 +01:00
compact_vars.c
dce.c Implement stackless internal function calls 2024-02-06 17:42:28 +01:00
dfa_pass.c Implement stackless internal function calls 2024-02-06 17:42:28 +01:00
escape_analysis.c Fix create_object checks 2024-01-30 16:13:51 +01:00
nop_removal.c
optimize_func_calls.c Merge branch 'PHP-8.1' into PHP-8.2 2023-09-07 14:25:43 +02:00
optimize_temp_vars_5.c
pass1.c refactor: change zend_is_true to return bool (#14301) 2024-05-24 15:16:36 -06:00
pass3.c
sccp.c Implement stackless internal function calls 2024-02-06 17:42:28 +01:00
scdf.c Revert GH-10279 2023-01-16 12:25:59 +01:00
scdf.h Make various pointers const in Zend/ (#10608) 2023-02-20 14:00:59 +00:00
ssa_integrity.c Merge branch 'PHP-8.2' into PHP-8.3 2023-12-18 13:15:19 +01:00
zend_call_graph.c Implement stackless internal function calls 2024-02-06 17:42:28 +01:00
zend_call_graph.h Implement stackless internal function calls 2024-02-06 17:42:28 +01:00
zend_cfg.c Implement stackless internal function calls 2024-02-06 17:42:28 +01:00
zend_cfg.h Revert GH-10279 2023-01-16 12:25:59 +01:00
zend_dfg.c Implement stackless internal function calls 2024-02-06 17:42:28 +01:00
zend_dfg.h
zend_dump.c Remove unused zend_dump_variables() (#13767) 2024-03-20 14:37:32 +01:00
zend_dump.h Remove unused zend_dump_variables() (#13767) 2024-03-20 14:37:32 +01:00
zend_func_info.c Fix opline argument for getting the function info for range() 2024-04-01 22:42:18 +02:00
zend_func_info.h
zend_func_infos.h Migrate ext/dba resources to objects (#14239) 2024-05-17 08:43:33 +02:00
zend_inference.c Mark multple functions as static (#13864) 2024-05-22 13:11:46 +02:00
zend_inference.h Fix GH-13834: Applying non-zero offset 36 to null pointer in zend_jit.c (#13846) 2024-04-01 13:37:15 +02:00
zend_optimizer.c Improve optimizer support for class constants (#13438) 2024-03-18 07:30:44 +01:00
zend_optimizer.h Revert GH-10279 2023-01-16 12:25:59 +01:00
zend_optimizer_internal.h Improve optimizer support for class constants (#13438) 2024-03-18 07:30:44 +01:00
zend_ssa.c Implement stackless internal function calls 2024-02-06 17:42:28 +01:00
zend_ssa.h zend_ssa minor struct changes. (#13387) 2024-02-14 07:41:52 +00:00
zend_worklist.h Make various pointers const in Zend/ (#10608) 2023-02-20 14:00:59 +00:00