PHP Class Zephir\Backends\ZendEngine3\Backend

Inheritance: extends Zephir\Backends\ZendEngine2\Backend
Datei anzeigen Open project: phalcon/zephir

Protected Properties

Property Type Description
$name

Public Methods

Method Description
addArrayEntry ( Variable $variable, $key, $value, Zephir\CompilationContext $context, $statement = null, $useCodePrinter = true )
arrayIsset ( Variable $var, $resolvedExpr, $expression, Zephir\CompilationContext $context )
arrayIssetFetch ( Variable $target, Variable $var, $resolvedExpr, $flags, $expression, Zephir\CompilationContext $context )
arrayUnset ( Variable $variable, $exprIndex, $flags, Zephir\CompilationContext $context )
assignString ( Variable $variable, $value, Zephir\CompilationContext $context, $useCodePrinter = true, $doCopy = null ) * Assign value to variable
assignZval ( Variable $variable, string $code, Zephir\CompilationContext $context ) Assigns a zval to another
callMethod ( $symbolVariable, Variable $variable, $methodName, $cachePointer, $params, Zephir\CompilationContext $context )
copyOnWrite ( Variable $target, $var, Zephir\CompilationContext $context )
createClosure ( Variable $variable, $classDefinition, Zephir\CompilationContext $context )
declareConstant ( $type, $name, $value, Zephir\CompilationContext $context )
destroyIterator ( Variable $iteratorVariable, Zephir\CompilationContext $context )
fetchClass ( Variable $zendClassEntry, $className, $guarded, Zephir\CompilationContext $context )
fetchClassEntry ( $str )
fetchGlobal ( Variable $globalVar, Zephir\CompilationContext $compilationContext, $useCodePrinter = true )
fetchProperty ( Variable $symbolVariable, Variable $variableVariable, $property, $readOnly, Zephir\CompilationContext $context, $useOptimized = false )
fetchStaticProperty ( Variable $symbolVariable, $classDefinition, $property, $readOnly, Zephir\CompilationContext $context )
forStatement ( Variable $exprVariable, $keyVariable, $variable, $duplicateKey, $duplicateHash, $statement, $statementBlock, Zephir\CompilationContext $compilationContext )
forStatementIterator ( Variable $iteratorVariable, Variable $targetVariable, Zephir\CompilationContext $compilationContext )
generateInitCode ( &$groupVariables, $type, $pointer, Variable $variable )
getBoolCode ( Variable $variable, Zephir\CompilationContext $context, $useCodePrinter = true )
getFcallManager ( )
getInternalSignature ( ClassMethod $method, Zephir\CompilationContext $context ) Returns the signature of an internal method
getScalarTempVariable ( $type, Zephir\CompilationContext $compilationContext, $isLocal = true )
getStringsManager ( )
getTypeDefinition ( $type )
getTypeofCondition ( Variable $variableVariable, string $operator, string $value, Zephir\CompilationContext $context ) : string Checks the type of a variable using the ZendEngine constants
getVariableCode ( Variable $variable )
getVariableCodePointer ( Variable $variable )
ifVariableValueUndefined ( Variable $var, Zephir\CompilationContext $context, $useBody = false, $useCodePrinter = true )
isZE3 ( ) * TODO: This should not be used, temporary (until its completely refactored)
onPostCompile ( $method, Zephir\CompilationContext $context )
onPreCompile ( $method, Zephir\CompilationContext $context )
onPreInitVar ( $method, Zephir\CompilationContext $context )
propertyIsset ( Variable $var, $key, Zephir\CompilationContext $context )
resolveValue ( $value, Zephir\CompilationContext $context, $usePointer = false )
returnString ( $value, Zephir\CompilationContext $context, $useCodePrinter = true )
setSymbolIfSeparated ( Variable $variableTempSeparated, Variable $variable, Zephir\CompilationContext $context )
updateProperty ( Variable $symbolVariable, $propertyName, $value, Zephir\CompilationContext $context )
updateStaticProperty ( $classEntry, $property, $value, Zephir\CompilationContext $context )

Method Details

addArrayEntry() public method

public addArrayEntry ( Variable $variable, $key, $value, Zephir\CompilationContext $context, $statement = null, $useCodePrinter = true )
$variable Zephir\Variable
$context Zephir\CompilationContext

arrayIsset() public method

public arrayIsset ( Variable $var, $resolvedExpr, $expression, Zephir\CompilationContext $context )
$var Zephir\Variable
$context Zephir\CompilationContext

arrayIssetFetch() public method

public arrayIssetFetch ( Variable $target, Variable $var, $resolvedExpr, $flags, $expression, Zephir\CompilationContext $context )
$target Zephir\Variable
$var Zephir\Variable
$context Zephir\CompilationContext

arrayUnset() public method

public arrayUnset ( Variable $variable, $exprIndex, $flags, Zephir\CompilationContext $context )
$variable Zephir\Variable
$context Zephir\CompilationContext

assignString() public method

* Assign value to variable
public assignString ( Variable $variable, $value, Zephir\CompilationContext $context, $useCodePrinter = true, $doCopy = null )
$variable Zephir\Variable
$context Zephir\CompilationContext

assignZval() public method

Assigns a zval to another
public assignZval ( Variable $variable, string $code, Zephir\CompilationContext $context )
$variable Zephir\Variable
$code string
$context Zephir\CompilationContext

callMethod() public method

public callMethod ( $symbolVariable, Variable $variable, $methodName, $cachePointer, $params, Zephir\CompilationContext $context )
$variable Zephir\Variable
$context Zephir\CompilationContext

copyOnWrite() public method

public copyOnWrite ( Variable $target, $var, Zephir\CompilationContext $context )
$target Zephir\Variable
$context Zephir\CompilationContext

createClosure() public method

public createClosure ( Variable $variable, $classDefinition, Zephir\CompilationContext $context )
$variable Zephir\Variable
$context Zephir\CompilationContext

declareConstant() public method

public declareConstant ( $type, $name, $value, Zephir\CompilationContext $context )
$context Zephir\CompilationContext

destroyIterator() public method

public destroyIterator ( Variable $iteratorVariable, Zephir\CompilationContext $context )
$iteratorVariable Zephir\Variable
$context Zephir\CompilationContext

fetchClass() public method

public fetchClass ( Variable $zendClassEntry, $className, $guarded, Zephir\CompilationContext $context )
$zendClassEntry Zephir\Variable
$context Zephir\CompilationContext

fetchClassEntry() public method

public fetchClassEntry ( $str )

fetchGlobal() public method

public fetchGlobal ( Variable $globalVar, Zephir\CompilationContext $compilationContext, $useCodePrinter = true )
$globalVar Zephir\Variable
$compilationContext Zephir\CompilationContext

fetchProperty() public method

public fetchProperty ( Variable $symbolVariable, Variable $variableVariable, $property, $readOnly, Zephir\CompilationContext $context, $useOptimized = false )
$symbolVariable Zephir\Variable
$variableVariable Zephir\Variable
$context Zephir\CompilationContext

fetchStaticProperty() public method

public fetchStaticProperty ( Variable $symbolVariable, $classDefinition, $property, $readOnly, Zephir\CompilationContext $context )
$symbolVariable Zephir\Variable
$context Zephir\CompilationContext

forStatement() public method

public forStatement ( Variable $exprVariable, $keyVariable, $variable, $duplicateKey, $duplicateHash, $statement, $statementBlock, Zephir\CompilationContext $compilationContext )
$exprVariable Zephir\Variable
$compilationContext Zephir\CompilationContext

forStatementIterator() public method

public forStatementIterator ( Variable $iteratorVariable, Variable $targetVariable, Zephir\CompilationContext $compilationContext )
$iteratorVariable Zephir\Variable
$targetVariable Zephir\Variable
$compilationContext Zephir\CompilationContext

generateInitCode() public method

public generateInitCode ( &$groupVariables, $type, $pointer, Variable $variable )
$variable Zephir\Variable

getBoolCode() public method

public getBoolCode ( Variable $variable, Zephir\CompilationContext $context, $useCodePrinter = true )
$variable Zephir\Variable
$context Zephir\CompilationContext

getFcallManager() public method

public getFcallManager ( )

getInternalSignature() public method

Returns the signature of an internal method
public getInternalSignature ( ClassMethod $method, Zephir\CompilationContext $context )
$method Zephir\ClassMethod
$context Zephir\CompilationContext

getScalarTempVariable() public method

public getScalarTempVariable ( $type, Zephir\CompilationContext $compilationContext, $isLocal = true )
$compilationContext Zephir\CompilationContext

getStringsManager() public method

public getStringsManager ( )

getTypeDefinition() public method

public getTypeDefinition ( $type )

getTypeofCondition() public method

Checks the type of a variable using the ZendEngine constants
public getTypeofCondition ( Variable $variableVariable, string $operator, string $value, Zephir\CompilationContext $context ) : string
$variableVariable Zephir\Variable
$operator string
$value string
$context Zephir\CompilationContext
return string

getVariableCode() public method

public getVariableCode ( Variable $variable )
$variable Zephir\Variable

getVariableCodePointer() public method

public getVariableCodePointer ( Variable $variable )
$variable Zephir\Variable

ifVariableValueUndefined() public method

public ifVariableValueUndefined ( Variable $var, Zephir\CompilationContext $context, $useBody = false, $useCodePrinter = true )
$var Zephir\Variable
$context Zephir\CompilationContext

isZE3() public method

* TODO: This should not be used, temporary (until its completely refactored)
public isZE3 ( )

onPostCompile() public method

public onPostCompile ( $method, Zephir\CompilationContext $context )
$context Zephir\CompilationContext

onPreCompile() public method

public onPreCompile ( $method, Zephir\CompilationContext $context )
$context Zephir\CompilationContext

onPreInitVar() public method

public onPreInitVar ( $method, Zephir\CompilationContext $context )
$context Zephir\CompilationContext

propertyIsset() public method

public propertyIsset ( Variable $var, $key, Zephir\CompilationContext $context )
$var Zephir\Variable
$context Zephir\CompilationContext

resolveValue() public method

public resolveValue ( $value, Zephir\CompilationContext $context, $usePointer = false )
$context Zephir\CompilationContext

returnString() public method

public returnString ( $value, Zephir\CompilationContext $context, $useCodePrinter = true )
$context Zephir\CompilationContext

setSymbolIfSeparated() public method

public setSymbolIfSeparated ( Variable $variableTempSeparated, Variable $variable, Zephir\CompilationContext $context )
$variableTempSeparated Zephir\Variable
$variable Zephir\Variable
$context Zephir\CompilationContext

updateProperty() public method

public updateProperty ( Variable $symbolVariable, $propertyName, $value, Zephir\CompilationContext $context )
$symbolVariable Zephir\Variable
$context Zephir\CompilationContext

updateStaticProperty() public method

public updateStaticProperty ( $classEntry, $property, $value, Zephir\CompilationContext $context )
$context Zephir\CompilationContext

Property Details

$name protected_oe property

protected $name