OLD | NEW |
1 // -*- C++ -*- | 1 // -*- C++ -*- |
2 #ifndef UTIL_PYBYTECODEDISPATCH_H | 2 #ifndef UTIL_PYBYTECODEDISPATCH_H |
3 #define UTIL_PYBYTECODEDISPATCH_H | 3 #define UTIL_PYBYTECODEDISPATCH_H |
4 | 4 |
5 #ifndef __cplusplus | 5 #ifndef __cplusplus |
6 #error This header expects to be included only in C++ source | 6 #error This header expects to be included only in C++ source |
7 #endif | 7 #endif |
8 | 8 |
9 namespace llvm { | 9 namespace llvm { |
10 class BasicBlock; | 10 class BasicBlock; |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 void DELETE_SLICE_BOTH(); | 131 void DELETE_SLICE_BOTH(); |
132 void STORE_SUBSCR(); | 132 void STORE_SUBSCR(); |
133 void DELETE_SUBSCR(); | 133 void DELETE_SUBSCR(); |
134 void STORE_MAP(); | 134 void STORE_MAP(); |
135 void LIST_APPEND(); | 135 void LIST_APPEND(); |
136 void IMPORT_NAME(); | 136 void IMPORT_NAME(); |
137 | 137 |
138 void COMPARE_OP(int cmp_op); | 138 void COMPARE_OP(int cmp_op); |
139 | 139 |
140 void CALL_FUNCTION(int num_args); | 140 void CALL_FUNCTION(int num_args); |
| 141 void CALL_METHOD(int num_args); |
141 void CALL_FUNCTION_VAR(int num_args); | 142 void CALL_FUNCTION_VAR(int num_args); |
142 void CALL_FUNCTION_KW(int num_args); | 143 void CALL_FUNCTION_KW(int num_args); |
143 void CALL_FUNCTION_VAR_KW(int num_args); | 144 void CALL_FUNCTION_VAR_KW(int num_args); |
144 | 145 |
145 void BUILD_TUPLE(int size); | 146 void BUILD_TUPLE(int size); |
146 void BUILD_LIST(int size); | 147 void BUILD_LIST(int size); |
147 void BUILD_MAP(int size); | 148 void BUILD_MAP(int size); |
148 void BUILD_SLICE_TWO(); | 149 void BUILD_SLICE_TWO(); |
149 void BUILD_SLICE_THREE(); | 150 void BUILD_SLICE_THREE(); |
150 void UNPACK_SEQUENCE(int size); | 151 void UNPACK_SEQUENCE(int size); |
151 | 152 |
152 void LOAD_GLOBAL(int index); | 153 void LOAD_GLOBAL(int index); |
153 void STORE_GLOBAL(int index); | 154 void STORE_GLOBAL(int index); |
154 void DELETE_GLOBAL(int index); | 155 void DELETE_GLOBAL(int index); |
155 | 156 |
156 void LOAD_NAME(int index); | 157 void LOAD_NAME(int index); |
157 void STORE_NAME(int index); | 158 void STORE_NAME(int index); |
158 void DELETE_NAME(int index); | 159 void DELETE_NAME(int index); |
159 | 160 |
160 void LOAD_ATTR(int index); | 161 void LOAD_ATTR(int index); |
| 162 void LOAD_METHOD(int index); |
161 void STORE_ATTR(int index); | 163 void STORE_ATTR(int index); |
162 void DELETE_ATTR(int index); | 164 void DELETE_ATTR(int index); |
163 | 165 |
164 void LOAD_CLOSURE(int freevar_index); | 166 void LOAD_CLOSURE(int freevar_index); |
165 void MAKE_CLOSURE(int num_defaults); | 167 void MAKE_CLOSURE(int num_defaults); |
166 void LOAD_DEREF(int index); | 168 void LOAD_DEREF(int index); |
167 void STORE_DEREF(int index); | 169 void STORE_DEREF(int index); |
168 | 170 |
169 void RAISE_VARARGS_ZERO(); | 171 void RAISE_VARARGS_ZERO(); |
170 void RAISE_VARARGS_ONE(); | 172 void RAISE_VARARGS_ONE(); |
171 void RAISE_VARARGS_TWO(); | 173 void RAISE_VARARGS_TWO(); |
172 void RAISE_VARARGS_THREE(); | 174 void RAISE_VARARGS_THREE(); |
173 | 175 |
174 private: | 176 private: |
175 LlvmFunctionBuilder *fbuilder_; | 177 LlvmFunctionBuilder *fbuilder_; |
176 }; | 178 }; |
177 | 179 |
178 } | 180 } |
179 | 181 |
180 #endif // UTIL_PYBYTECODEDISPATCH_H | 182 #endif // UTIL_PYBYTECODEDISPATCH_H |
OLD | NEW |