From c12aa468a1ffcbefdb3a260917452fbdb0f85bf2 Mon Sep 17 00:00:00 2001 From: Damien Date: Wed, 16 Oct 2013 20:57:49 +0100 Subject: Add SET_ADD opcode to VM. --- py/vm.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'py/vm.c') diff --git a/py/vm.c b/py/vm.c index 2f5977d82..33970a0f6 100644 --- a/py/vm.c +++ b/py/vm.c @@ -319,6 +319,13 @@ bool py_execute_byte_code_2(const byte *code, const byte **ip_in_out, py_obj_t * *sp = obj1; break; + case PYBC_SET_ADD: + DECODE_UINT; + // I think it's guaranteed by the compiler that sp[unum] is a set + rt_store_set(sp[unum], sp[0]); + sp++; + break; + case PYBC_MAKE_FUNCTION: DECODE_UINT; PUSH(rt_make_function_from_id(unum)); -- cgit v1.2.3