Numworks Epsilon  1.4.1
Graphing Calculator Operating System
vmentrytable.h
Go to the documentation of this file.
1 /*
2  * This file is part of the MicroPython project, http://micropython.org/
3  *
4  * The MIT License (MIT)
5  *
6  * Copyright (c) 2013, 2014 Damien P. George
7  *
8  * Permission is hereby granted, free of charge, to any person obtaining a copy
9  * of this software and associated documentation files (the "Software"), to deal
10  * in the Software without restriction, including without limitation the rights
11  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12  * copies of the Software, and to permit persons to whom the Software is
13  * furnished to do so, subject to the following conditions:
14  *
15  * The above copyright notice and this permission notice shall be included in
16  * all copies or substantial portions of the Software.
17  *
18  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24  * THE SOFTWARE.
25  */
26 
27 #if __clang__
28 #pragma clang diagnostic push
29 #pragma clang diagnostic ignored "-Winitializer-overrides"
30 #endif // __clang__
31 
32 static const void *const entry_table[256] = {
33  [0 ... 255] = &&entry_default,
34  [MP_BC_LOAD_CONST_FALSE] = &&entry_MP_BC_LOAD_CONST_FALSE,
35  [MP_BC_LOAD_CONST_NONE] = &&entry_MP_BC_LOAD_CONST_NONE,
36  [MP_BC_LOAD_CONST_TRUE] = &&entry_MP_BC_LOAD_CONST_TRUE,
37  [MP_BC_LOAD_CONST_SMALL_INT] = &&entry_MP_BC_LOAD_CONST_SMALL_INT,
38  [MP_BC_LOAD_CONST_STRING] = &&entry_MP_BC_LOAD_CONST_STRING,
39  [MP_BC_LOAD_CONST_OBJ] = &&entry_MP_BC_LOAD_CONST_OBJ,
40  [MP_BC_LOAD_NULL] = &&entry_MP_BC_LOAD_NULL,
41  [MP_BC_LOAD_FAST_N] = &&entry_MP_BC_LOAD_FAST_N,
42  [MP_BC_LOAD_DEREF] = &&entry_MP_BC_LOAD_DEREF,
43  [MP_BC_LOAD_NAME] = &&entry_MP_BC_LOAD_NAME,
44  [MP_BC_LOAD_GLOBAL] = &&entry_MP_BC_LOAD_GLOBAL,
45  [MP_BC_LOAD_ATTR] = &&entry_MP_BC_LOAD_ATTR,
46  [MP_BC_LOAD_METHOD] = &&entry_MP_BC_LOAD_METHOD,
47  [MP_BC_LOAD_SUPER_METHOD] = &&entry_MP_BC_LOAD_SUPER_METHOD,
48  [MP_BC_LOAD_BUILD_CLASS] = &&entry_MP_BC_LOAD_BUILD_CLASS,
49  [MP_BC_LOAD_SUBSCR] = &&entry_MP_BC_LOAD_SUBSCR,
50  [MP_BC_STORE_FAST_N] = &&entry_MP_BC_STORE_FAST_N,
51  [MP_BC_STORE_DEREF] = &&entry_MP_BC_STORE_DEREF,
52  [MP_BC_STORE_NAME] = &&entry_MP_BC_STORE_NAME,
53  [MP_BC_STORE_GLOBAL] = &&entry_MP_BC_STORE_GLOBAL,
54  [MP_BC_STORE_ATTR] = &&entry_MP_BC_STORE_ATTR,
55  [MP_BC_STORE_SUBSCR] = &&entry_MP_BC_STORE_SUBSCR,
56  [MP_BC_DELETE_FAST] = &&entry_MP_BC_DELETE_FAST,
57  [MP_BC_DELETE_DEREF] = &&entry_MP_BC_DELETE_DEREF,
58  [MP_BC_DELETE_NAME] = &&entry_MP_BC_DELETE_NAME,
59  [MP_BC_DELETE_GLOBAL] = &&entry_MP_BC_DELETE_GLOBAL,
60  [MP_BC_DUP_TOP] = &&entry_MP_BC_DUP_TOP,
61  [MP_BC_DUP_TOP_TWO] = &&entry_MP_BC_DUP_TOP_TWO,
62  [MP_BC_POP_TOP] = &&entry_MP_BC_POP_TOP,
63  [MP_BC_ROT_TWO] = &&entry_MP_BC_ROT_TWO,
64  [MP_BC_ROT_THREE] = &&entry_MP_BC_ROT_THREE,
65  [MP_BC_JUMP] = &&entry_MP_BC_JUMP,
66  [MP_BC_POP_JUMP_IF_TRUE] = &&entry_MP_BC_POP_JUMP_IF_TRUE,
67  [MP_BC_POP_JUMP_IF_FALSE] = &&entry_MP_BC_POP_JUMP_IF_FALSE,
68  [MP_BC_JUMP_IF_TRUE_OR_POP] = &&entry_MP_BC_JUMP_IF_TRUE_OR_POP,
69  [MP_BC_JUMP_IF_FALSE_OR_POP] = &&entry_MP_BC_JUMP_IF_FALSE_OR_POP,
70  [MP_BC_SETUP_WITH] = &&entry_MP_BC_SETUP_WITH,
71  [MP_BC_WITH_CLEANUP] = &&entry_MP_BC_WITH_CLEANUP,
72  [MP_BC_UNWIND_JUMP] = &&entry_MP_BC_UNWIND_JUMP,
73  [MP_BC_SETUP_EXCEPT] = &&entry_MP_BC_SETUP_EXCEPT,
74  [MP_BC_SETUP_FINALLY] = &&entry_MP_BC_SETUP_FINALLY,
75  [MP_BC_END_FINALLY] = &&entry_MP_BC_END_FINALLY,
76  [MP_BC_GET_ITER] = &&entry_MP_BC_GET_ITER,
77  [MP_BC_GET_ITER_STACK] = &&entry_MP_BC_GET_ITER_STACK,
78  [MP_BC_FOR_ITER] = &&entry_MP_BC_FOR_ITER,
79  [MP_BC_POP_BLOCK] = &&entry_MP_BC_POP_BLOCK,
80  [MP_BC_POP_EXCEPT] = &&entry_MP_BC_POP_EXCEPT,
81  [MP_BC_BUILD_TUPLE] = &&entry_MP_BC_BUILD_TUPLE,
82  [MP_BC_BUILD_LIST] = &&entry_MP_BC_BUILD_LIST,
83  [MP_BC_BUILD_MAP] = &&entry_MP_BC_BUILD_MAP,
84  [MP_BC_STORE_MAP] = &&entry_MP_BC_STORE_MAP,
85  #if MICROPY_PY_BUILTINS_SET
86  [MP_BC_BUILD_SET] = &&entry_MP_BC_BUILD_SET,
87  #endif
88  #if MICROPY_PY_BUILTINS_SLICE
89  [MP_BC_BUILD_SLICE] = &&entry_MP_BC_BUILD_SLICE,
90  #endif
91  [MP_BC_STORE_COMP] = &&entry_MP_BC_STORE_COMP,
92  [MP_BC_UNPACK_SEQUENCE] = &&entry_MP_BC_UNPACK_SEQUENCE,
93  [MP_BC_UNPACK_EX] = &&entry_MP_BC_UNPACK_EX,
94  [MP_BC_MAKE_FUNCTION] = &&entry_MP_BC_MAKE_FUNCTION,
95  [MP_BC_MAKE_FUNCTION_DEFARGS] = &&entry_MP_BC_MAKE_FUNCTION_DEFARGS,
96  [MP_BC_MAKE_CLOSURE] = &&entry_MP_BC_MAKE_CLOSURE,
97  [MP_BC_MAKE_CLOSURE_DEFARGS] = &&entry_MP_BC_MAKE_CLOSURE_DEFARGS,
98  [MP_BC_CALL_FUNCTION] = &&entry_MP_BC_CALL_FUNCTION,
99  [MP_BC_CALL_FUNCTION_VAR_KW] = &&entry_MP_BC_CALL_FUNCTION_VAR_KW,
100  [MP_BC_CALL_METHOD] = &&entry_MP_BC_CALL_METHOD,
101  [MP_BC_CALL_METHOD_VAR_KW] = &&entry_MP_BC_CALL_METHOD_VAR_KW,
102  [MP_BC_RETURN_VALUE] = &&entry_MP_BC_RETURN_VALUE,
103  [MP_BC_RAISE_VARARGS] = &&entry_MP_BC_RAISE_VARARGS,
104  [MP_BC_YIELD_VALUE] = &&entry_MP_BC_YIELD_VALUE,
105  [MP_BC_YIELD_FROM] = &&entry_MP_BC_YIELD_FROM,
106  [MP_BC_IMPORT_NAME] = &&entry_MP_BC_IMPORT_NAME,
107  [MP_BC_IMPORT_FROM] = &&entry_MP_BC_IMPORT_FROM,
108  [MP_BC_IMPORT_STAR] = &&entry_MP_BC_IMPORT_STAR,
109  [MP_BC_LOAD_CONST_SMALL_INT_MULTI ... MP_BC_LOAD_CONST_SMALL_INT_MULTI + 63] = &&entry_MP_BC_LOAD_CONST_SMALL_INT_MULTI,
110  [MP_BC_LOAD_FAST_MULTI ... MP_BC_LOAD_FAST_MULTI + 15] = &&entry_MP_BC_LOAD_FAST_MULTI,
111  [MP_BC_STORE_FAST_MULTI ... MP_BC_STORE_FAST_MULTI + 15] = &&entry_MP_BC_STORE_FAST_MULTI,
112  [MP_BC_UNARY_OP_MULTI ... MP_BC_UNARY_OP_MULTI + MP_UNARY_OP_NUM_BYTECODE - 1] = &&entry_MP_BC_UNARY_OP_MULTI,
113  [MP_BC_BINARY_OP_MULTI ... MP_BC_BINARY_OP_MULTI + MP_BINARY_OP_NUM_BYTECODE - 1] = &&entry_MP_BC_BINARY_OP_MULTI,
114 };
115 
116 #if __clang__
117 #pragma clang diagnostic pop
118 #endif // __clang__
#define MP_BC_CALL_FUNCTION_VAR_KW
Definition: bc0.h:105
#define MP_BC_LOAD_CONST_FALSE
Definition: bc0.h:32
#define MP_BC_BUILD_SET
Definition: bc0.h:89
#define MP_BC_BUILD_MAP
Definition: bc0.h:87
#define MP_BC_BUILD_TUPLE
Definition: bc0.h:85
#define MP_BC_LOAD_NAME
Definition: bc0.h:42
#define MP_BC_STORE_NAME
Definition: bc0.h:52
#define MP_BC_STORE_COMP
Definition: bc0.h:91
#define MP_BC_LOAD_DEREF
Definition: bc0.h:41
#define MP_BC_RAISE_VARARGS
Definition: bc0.h:96
#define MP_BC_GET_ITER_STACK
Definition: bc0.h:83
#define MP_BC_LOAD_NULL
Definition: bc0.h:38
#define MP_BC_UNARY_OP_MULTI
Definition: bc0.h:116
#define MP_BC_IMPORT_FROM
Definition: bc0.h:110
#define MP_BC_LOAD_SUPER_METHOD
Definition: bc0.h:46
#define MP_BC_STORE_ATTR
Definition: bc0.h:54
#define MP_BC_BINARY_OP_MULTI
Definition: bc0.h:117
#define MP_BC_LOAD_CONST_SMALL_INT_MULTI
Definition: bc0.h:113
#define MP_BC_DUP_TOP_TWO
Definition: bc0.h:63
#define MP_BC_LOAD_CONST_NONE
Definition: bc0.h:33
#define MP_BC_LOAD_BUILD_CLASS
Definition: bc0.h:47
#define MP_BC_IMPORT_NAME
Definition: bc0.h:109
#define MP_BC_MAKE_FUNCTION_DEFARGS
Definition: bc0.h:101
#define MP_BC_POP_EXCEPT
Definition: bc0.h:81
#define MP_BC_STORE_MAP
Definition: bc0.h:88
#define MP_BC_MAKE_CLOSURE_DEFARGS
Definition: bc0.h:103
#define MP_BC_LOAD_CONST_TRUE
Definition: bc0.h:34
#define MP_BC_DELETE_DEREF
Definition: bc0.h:58
#define MP_BC_CALL_METHOD_VAR_KW
Definition: bc0.h:107
#define MP_BC_CALL_FUNCTION
Definition: bc0.h:104
#define MP_BC_POP_TOP
Definition: bc0.h:64
#define MP_BC_POP_JUMP_IF_FALSE
Definition: bc0.h:70
#define MP_BC_BUILD_SLICE
Definition: bc0.h:90
#define MP_BC_DELETE_NAME
Definition: bc0.h:59
#define MP_BC_JUMP_IF_TRUE_OR_POP
Definition: bc0.h:71
#define MP_BC_LOAD_GLOBAL
Definition: bc0.h:43
#define MP_BC_MAKE_CLOSURE
Definition: bc0.h:102
#define MP_BC_DELETE_GLOBAL
Definition: bc0.h:60
#define MP_BC_UNPACK_SEQUENCE
Definition: bc0.h:92
#define MP_BC_STORE_GLOBAL
Definition: bc0.h:53
#define MP_BC_DELETE_FAST
Definition: bc0.h:57
#define MP_BC_ROT_TWO
Definition: bc0.h:65
#define MP_BC_LOAD_ATTR
Definition: bc0.h:44
#define MP_BC_LOAD_SUBSCR
Definition: bc0.h:48
#define MP_BC_UNWIND_JUMP
Definition: bc0.h:82
#define MP_BC_LOAD_CONST_OBJ
Definition: bc0.h:37
#define MP_BC_CALL_METHOD
Definition: bc0.h:106
#define MP_BC_JUMP
Definition: bc0.h:68
#define MP_BC_JUMP_IF_FALSE_OR_POP
Definition: bc0.h:72
#define MP_BC_FOR_ITER
Definition: bc0.h:79
#define MP_BC_POP_BLOCK
Definition: bc0.h:80
#define MP_BC_GET_ITER
Definition: bc0.h:78
#define MP_BC_WITH_CLEANUP
Definition: bc0.h:74
#define MP_BC_SETUP_WITH
Definition: bc0.h:73
#define MP_BC_ROT_THREE
Definition: bc0.h:66
#define MP_BC_UNPACK_EX
Definition: bc0.h:93
#define MP_BC_SETUP_EXCEPT
Definition: bc0.h:75
#define MP_BC_LOAD_METHOD
Definition: bc0.h:45
#define MP_BC_LOAD_CONST_SMALL_INT
Definition: bc0.h:35
#define MP_BC_LOAD_FAST_MULTI
Definition: bc0.h:114
#define MP_BC_STORE_FAST_MULTI
Definition: bc0.h:115
#define MP_BC_DUP_TOP
Definition: bc0.h:62
#define MP_BC_MAKE_FUNCTION
Definition: bc0.h:100
#define MP_BC_END_FINALLY
Definition: bc0.h:77
#define MP_BC_STORE_FAST_N
Definition: bc0.h:50
#define MP_BC_STORE_SUBSCR
Definition: bc0.h:55
#define MP_BC_SETUP_FINALLY
Definition: bc0.h:76
#define MP_BC_LOAD_CONST_STRING
Definition: bc0.h:36
#define MP_BC_RETURN_VALUE
Definition: bc0.h:95
#define MP_BC_BUILD_LIST
Definition: bc0.h:86
#define MP_BC_POP_JUMP_IF_TRUE
Definition: bc0.h:69
#define MP_BC_STORE_DEREF
Definition: bc0.h:51
#define MP_BC_IMPORT_STAR
Definition: bc0.h:111
#define MP_BC_YIELD_VALUE
Definition: bc0.h:97
#define MP_BC_YIELD_FROM
Definition: bc0.h:98
#define MP_BC_LOAD_FAST_N
Definition: bc0.h:40