source: trunk/xcache/xc_opcode_spec.h @ 1371

Last change on this file since 1371 was 1371, checked in by moo, 10 months ago

closes #326: opcode spec info updates for 5.4+

  • Property svn:eol-style set to native
File size: 905 bytes
Line 
1#include "php.h"
2
3#define OPSPECS(OPSPEC) \
4    OPSPEC(STD) \
5    OPSPEC(UNUSED) \
6    OPSPEC(OPLINE) \
7    OPSPEC(FCALL) \
8    OPSPEC(INIT_FCALL) \
9    OPSPEC(ARG) \
10    OPSPEC(CAST) \
11    OPSPEC(FETCH) \
12    OPSPEC(DECLARE) \
13    OPSPEC(SEND) \
14    OPSPEC(SEND_NOREF) \
15    OPSPEC(FCLASS) \
16    OPSPEC(UCLASS) \
17    OPSPEC(CLASS) \
18    OPSPEC(FE) \
19    OPSPEC(IFACE) \
20    OPSPEC(ISSET) \
21    OPSPEC(BIT) \
22    OPSPEC(VAR) \
23    OPSPEC(TMP) \
24    OPSPEC(JMPADDR) \
25    OPSPEC(BRK) \
26    OPSPEC(CONT) \
27    OPSPEC(INCLUDE) \
28    OPSPEC(ASSIGN) \
29    OPSPEC(FETCHTYPE)
30
31#define OPSPECS_DEF_ENUM(name) OPSPEC_##name,
32typedef enum { OPSPECS(OPSPECS_DEF_ENUM) OPSPEC_DUMMY } xc_op_spec_t;
33
34typedef struct {
35    xc_op_spec_t ext;
36    xc_op_spec_t op1;
37    xc_op_spec_t op2;
38    xc_op_spec_t res;
39} xc_opcode_spec_t;
40
41const xc_opcode_spec_t *xc_get_opcode_spec(zend_uchar opcode);
42zend_uchar xc_get_opcode_spec_count();
43zend_uchar xc_get_op_spec_count();
44const char *xc_get_op_spec(zend_uchar spec);
Note: See TracBrowser for help on using the repository browser.