Property | Type | Description | |
---|---|---|---|
$_functionReflection | |||
$_optimizerDirectories | |||
$_optimizers |
Method | Description | |
---|---|---|
addOptimizerDir ( string $directory ) | Appends an optimizer directory to the directory list | |
compile ( zephir\Expression $expr, zephir\CompilationContext $compilationContext ) : zephir\CompiledExpression | Compiles a function | |
functionExists ( string $functionName, zephir\CompilationContext $context ) : boolean | Checks if a function exists or is a built-in Zephir function | |
getReflector ( string $funcName ) : ReflectionFunction | Process the ReflectionFunction for the specified function name | |
isBuiltInFunction ( string $functionName ) | Checks if the function is a built-in provided by Zephir |
Method | Description | |
---|---|---|
_callDynamic ( array $expression, zephir\CompilationContext $compilationContext ) : zephir\CompiledExpression | ||
_callNormal ( array $expression, zephir\CompilationContext $compilationContext ) | ||
isReadOnly ( string $funcName, array $expression ) : boolean | This method gets the reflection of a function to check if any of their parameters are passed by reference Built-in functions rarely change the parameters if they aren't passed by reference | |
markReferences ( string $funcName, array $parameters, zephir\CompilationContext $compilationContext, array &$references, array $expression ) : boolean | Once the function processes the parameters we should mark specific parameters to be passed by reference | |
optimize ( string $funcName, array $expression, |
Tries to find specific an specialized optimizer for function calls |
protected _callDynamic ( array $expression, zephir\CompilationContext $compilationContext ) : zephir\CompiledExpression | ||
$expression | array | |
$compilationContext | zephir\CompilationContext | |
return | zephir\CompiledExpression |
protected _callNormal ( array $expression, zephir\CompilationContext $compilationContext ) | ||
$expression | array | |
$compilationContext | zephir\CompilationContext |
public static addOptimizerDir ( string $directory ) | ||
$directory | string |
public compile ( zephir\Expression $expr, zephir\CompilationContext $compilationContext ) : zephir\CompiledExpression | ||
$expr | zephir\Expression | |
$compilationContext | zephir\CompilationContext | |
return | zephir\CompiledExpression |
public functionExists ( string $functionName, zephir\CompilationContext $context ) : boolean | ||
$functionName | string | |
$context | zephir\CompilationContext | |
return | boolean |
public getReflector ( string $funcName ) : ReflectionFunction | ||
$funcName | string | |
return | ReflectionFunction |
public isBuiltInFunction ( string $functionName ) | ||
$functionName | string |