summaryrefslogtreecommitdiffstatshomepage
path: root/py/vm.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-20 18:02:27 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-20 18:02:27 +0100
commit5f6a25fc50503b70af1f3a9a27f13c2a698d0a0e (patch)
treef8dc88109db6b46e531990df74fbb4d99254b518 /py/vm.c
parent3558f62fb5c21a19a518c2ba75860f0b5963219e (diff)
downloadmicropython-5f6a25fc50503b70af1f3a9a27f13c2a698d0a0e.tar.gz
micropython-5f6a25fc50503b70af1f3a9a27f13c2a698d0a0e.zip
py: Wrap #if's around emitter functions that are used only by emitcpy.
3 emitter functions are needed only for emitcpy, and so we can #if them out when compiling with emitcpy support. Also remove unused SETUP_LOOP bytecode.
Diffstat (limited to 'py/vm.c')
-rw-r--r--py/vm.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/py/vm.c b/py/vm.c
index 78a96a48cc..b1c1719b72 100644
--- a/py/vm.c
+++ b/py/vm.c
@@ -481,13 +481,6 @@ dispatch_loop:
}
DISPATCH();
- /* we are trying to get away without using this opcode
- ENTRY(MP_BC_SETUP_LOOP):
- DECODE_UINT;
- // push_block(MP_BC_SETUP_LOOP, ip + unum, sp)
- DISPATCH();
- */
-
ENTRY(MP_BC_SETUP_WITH):
obj1 = TOP();
SET_TOP(mp_load_attr(obj1, MP_QSTR___exit__));