Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(243)

Unified Diff: Python/opt/gen/inca-instr-decoding.h.gen

Issue 14757: INCA: Inline Caching meets Quickening in Python 3.3
Patch Set: Created 1 year ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Python/opt/gen/debug-opcodes.h.gen ('k') | Python/opt/gen/instr-impl.h.gen » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Python/opt/gen/inca-instr-decoding.h.gen Fri May 11 16:21:51 2012 -0700
@@ -0,0 +1,118 @@
+/*
+ * This files was auto-generated on 2012-04-25T16:14:56.787571, please don't change!
+ * Project-Id: contrib-3.3
+ * Years: 2010, 2011, 2012
+ */
+
+
+static inline int
+instr_has_argument(unsigned char opcode) {
+ switch (opcode) {
+ case INCA_UNPACK_TUPLE_TWO:
+ case INCA_BUILD_TUPLE_TWO:
+ case INCA_UNPACK_LIST_TWO:
+ case INCA_BUILD_LIST_TWO:
+ case INCA_UNPACK_TUPLE_THREE:
+ case INCA_BUILD_TUPLE_THREE:
+ case INCA_UNPACK_LIST_THREE:
+ case INCA_BUILD_LIST_THREE:
+ case INCA_BUILD_SLICE_TWO:
+ case INCA_BUILD_SLICE_THREE:
+ case INCA_CMP_FLOAT:
+ case INCA_CMP_DICT:
+ case FOR_ITER_ENUM:
+ case INCA_CMP_TUPLE:
+ case INCA_CMP_COMPLEX:
+ case STORE_NAME:
+ case DELETE_NAME:
+ case UNPACK_SEQUENCE:
+ case FOR_ITER:
+ case UNPACK_EX:
+ case STORE_ATTR:
+ case DELETE_ATTR:
+ case STORE_GLOBAL:
+ case DELETE_GLOBAL:
+ case LOAD_CONST:
+ case LOAD_NAME:
+ case BUILD_TUPLE:
+ case BUILD_LIST:
+ case BUILD_SET:
+ case BUILD_MAP:
+ case LOAD_ATTR:
+ case COMPARE_OP:
+ case IMPORT_NAME:
+ case IMPORT_FROM:
+ case JUMP_FORWARD:
+ case JUMP_IF_FALSE_OR_POP:
+ case JUMP_IF_TRUE_OR_POP:
+ case JUMP_ABSOLUTE:
+ case POP_JUMP_IF_FALSE:
+ case POP_JUMP_IF_TRUE:
+ case LOAD_GLOBAL:
+ case FOR_ITER_LONGRANGEITER:
+ case CONTINUE_LOOP:
+ case SETUP_LOOP:
+ case SETUP_EXCEPT:
+ case SETUP_FINALLY:
+ case INCA_CMP_LIST:
+ case LOAD_FAST:
+ case STORE_FAST:
+ case DELETE_FAST:
+ case INCA_CMP_BYTEARRAY:
+ case RAISE_VARARGS:
+ case CALL_FUNCTION:
+ case MAKE_FUNCTION:
+ case BUILD_SLICE:
+ case MAKE_CLOSURE:
+ case LOAD_CLOSURE:
+ case LOAD_DEREF:
+ case STORE_DEREF:
+ case DELETE_DEREF:
+ case CALL_FUNCTION_VAR:
+ case CALL_FUNCTION_KW:
+ case CALL_FUNCTION_VAR_KW:
+ case SETUP_WITH:
+ case EXTENDED_ARG:
+ case LIST_APPEND:
+ case SET_ADD:
+ case MAP_ADD:
+ case FOR_ITER_BYTESITER:
+ case INCA_CMP_UNICODE:
+ case FOR_ITER_RANGEITER:
+ case INCA_CMP_LONG:
+ case INCA_CMP_DICTKEYS:
+ case FOR_ITER_SEQITER:
+ case FOR_ITER_CALLITER:
+ case FOR_ITER_UNICODEITER:
+ case INCA_CMP_SET:
+ case FOR_ITER_REVERSED:
+ case FOR_ITER_SETITER:
+ case FOR_ITER_MAP:
+ case FOR_ITER_BYTEARRAYITER:
+ case FOR_ITER_LISTITER:
+ case FOR_ITER_ZIP:
+ case FOR_ITER_TUPLEITER:
+ case FOR_ITER_LISTREVITER:
+ case FAST_C_ZERO:
+ case FAST_C_ONE:
+ case FAST_CALL_GENERATOR_ONE:
+ case FAST_C_VARARGS_ZERO:
+ case FAST_C_VARARGS_ONE:
+ case FAST_C_VARARGS_TWO:
+ case FAST_C_VARARGS_THREE:
+ case FAST_PYFUN_DOCALL_ZERO:
+ case FAST_PYFUN_DOCALL_ONE:
+ case FAST_PYFUN_DOCALL_TWO:
+ case FAST_PYMETH_ZERO:
+ case FAST_PYMETH_ONE:
+ case FAST_PYMETH_TWO:
+ case FAST_PYMETH_THREE:
+ case FAST_PYFUN_ZERO:
+ case FAST_PYFUN_ONE:
+ case FAST_PYFUN_TWO:
+ return 1;
+ } // switch-case
+
+ return 0;
+} // END instr_has_argument
+
« no previous file with comments | « Python/opt/gen/debug-opcodes.h.gen ('k') | Python/opt/gen/instr-impl.h.gen » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld cbc36f91f3f7