aboutsummaryrefslogtreecommitdiff
path: root/py/vmentrytable.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-01-13 15:55:54 +0000
committerDamien George <damien.p.george@gmail.com>2015-01-13 15:55:54 +0000
commitdab1385177558f1d27c03b59e443b6fa25a2cdc0 (patch)
treeda284535f901727c739266c2bf50ed5bbec88f1a /py/vmentrytable.h
parentd710cef6610eff758e96f351e6b91c1c9d8df9f6 (diff)
py: Add load_const_obj to emitter, add LOAD_CONST_OBJ to bytecode.
This allows to directly load a Python object to the Python stack. See issue #722 for background.
Diffstat (limited to 'py/vmentrytable.h')
-rw-r--r--py/vmentrytable.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/vmentrytable.h b/py/vmentrytable.h
index 2926c0d7c..7173c2df0 100644
--- a/py/vmentrytable.h
+++ b/py/vmentrytable.h
@@ -40,6 +40,7 @@ static void* entry_table[256] = {
[MP_BC_LOAD_CONST_DEC] = &&entry_MP_BC_LOAD_CONST_DEC,
[MP_BC_LOAD_CONST_BYTES] = &&entry_MP_BC_LOAD_CONST_BYTES,
[MP_BC_LOAD_CONST_STRING] = &&entry_MP_BC_LOAD_CONST_STRING,
+ [MP_BC_LOAD_CONST_OBJ] = &&entry_MP_BC_LOAD_CONST_OBJ,
[MP_BC_LOAD_NULL] = &&entry_MP_BC_LOAD_NULL,
[MP_BC_LOAD_FAST_N] = &&entry_MP_BC_LOAD_FAST_N,
[MP_BC_LOAD_DEREF] = &&entry_MP_BC_LOAD_DEREF,