source: trunk/xcache/xc_opcode_spec.h @ 987

Last change on this file since 987 was 982, checked in by moo, 2 years ago

move files to subdirs

  • Property svn:eol-style set to native
File size: 884 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
30#define OPSPECS_DEF_ENUM(name) OPSPEC_##name,
31typedef enum { OPSPECS(OPSPECS_DEF_ENUM) OPSPEC_DUMMY } xc_op_spec_t;
32
33typedef struct {
34    xc_op_spec_t ext;
35    xc_op_spec_t op1;
36    xc_op_spec_t op2;
37    xc_op_spec_t res;
38} xc_opcode_spec_t;
39
40const xc_opcode_spec_t *xc_get_opcode_spec(zend_uchar opcode);
41zend_uchar xc_get_opcode_spec_count();
42zend_uchar xc_get_op_spec_count();
43const char *xc_get_op_spec(zend_uchar spec);
Note: See TracBrowser for help on using the repository browser.