php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
block_pass.c File Reference
#include "Optimizer/zend_optimizer.h"
#include "Optimizer/zend_optimizer_internal.h"
#include "zend_API.h"
#include "zend_constants.h"
#include "zend_execute.h"
#include "zend_vm.h"
#include "zend_bitset.h"
#include "zend_cfg.h"
#include "zend_dump.h"

Go to the source code of this file.

Macros

#define VAR_SOURCE(op)
 
#define SET_VAR_SOURCE(opline)
 
#define CHECK_LOOP(target)
 
#define PASSES   3
 

Functions

bool zend_optimizer_get_persistent_constant (zend_string *name, zval *result, int copy)
 
void zend_optimize_cfg (zend_op_array *op_array, zend_optimizer_ctx *ctx)
 

Macro Definition Documentation

◆ CHECK_LOOP

#define CHECK_LOOP ( target)
Value:
if (EXPECTED(!in_hitlist(target, jmp_hitlist, jmp_hitlist_count))) { \
jmp_hitlist[jmp_hitlist_count++] = target; \
} else { \
break; \
}
#define EXPECTED(condition)

Definition at line 1175 of file block_pass.c.

◆ PASSES

#define PASSES   3

Definition at line 1671 of file block_pass.c.

◆ SET_VAR_SOURCE

#define SET_VAR_SOURCE ( opline)
Value:
Tsource[VAR_NUM(opline->result.var)] = opline
#define VAR_NUM(v)

Definition at line 63 of file block_pass.c.

◆ VAR_SOURCE

#define VAR_SOURCE ( op)
Value:
Tsource[VAR_NUM(op.var)]

Definition at line 62 of file block_pass.c.

Function Documentation

◆ zend_optimize_cfg()

void zend_optimize_cfg ( zend_op_array * op_array,
zend_optimizer_ctx * ctx )

Definition at line 1673 of file block_pass.c.

◆ zend_optimizer_get_persistent_constant()

bool zend_optimizer_get_persistent_constant ( zend_string * name,
zval * result,
int copy )

Definition at line 33 of file block_pass.c.