lisachenko / z-engine

:zap: PHP Engine Direct API
MIT License
448 stars 22 forks source link

[Feature] Provide an access to opcode's operands #22

Closed lisachenko closed 4 years ago

lisachenko commented 4 years ago

This feature is required to provide user-defined opcode handlers, otherwise it won't be possible to resolve values in current context.

Opcode contains two nodes and one return value, by default, most of them are stored in the current stack frame (except the IS_CONST values that are inlined into opcode memory itself).