aboutsummaryrefslogtreecommitdiff
path: root/py/emitnative.c
AgeCommit message (Collapse)Author
2014-02-12Replace global "static" -> "STATIC", to allow "analysis builds". Part 2.Paul Sokolovsky
2014-02-02py: Partially fix native emitter to work with latest runtime.Damien George
Native emitter has been broken since stack order has changed from reverse to standard. This fix gets it partially working.
2014-02-01py: Tidy up BINARY_OPs; negation done by special NOT bytecode.Damien George
IS_NOT and NOT_IN are now compiled to IS + NOT and IN + NOT, with a new special NOT bytecode.
2014-02-01py: Implement break/continue from an exception with finally.Damien George
Still todo: break/continue from within the finally block itself.
2014-01-29py: Fix bug with LOAD_METHOD; fix int->machine_int_t for small int.Damien George
LOAD_METHOD bug was: emitbc did not correctly calculate the amount of stack usage for a LOAD_METHOD operation. small int bug was: int was being used to pass small ints, when it should have been machine_int_t.
2014-01-24py: Improve freeing of emitters in mp_compile.Damien George
There can be multiple emitters allocated during compile (eg byte code and native).
2014-01-24Add support for freeing code emitter objects at the end of compilation.Paul Sokolovsky
2014-01-21Revamp qstrs: they now include length and hash.Damien George
Can now have null bytes in strings. Can define ROM qstrs per port using qstrdefsport.h
2014-01-18Add source file name and line number to error messages.Damien George
Byte code has a map from byte-code offset to source-code line number, used to give better error messages.
2014-01-18Make VM stack grow upwards, and so no reversed args arrays.Damien George
Change state layout in VM so the stack starts at state[0] and grows upwards. Locals are at the top end of the state and number downwards. This cleans up a lot of the interface connecting the VM to C: now all functions that take an array of Micro Python objects are in order (ie no longer in reverse). Also clean up C API with keyword arguments (call_n and call_n_kw replaced with single call method that takes keyword arguments). And now make_new takes keyword arguments. emitnative.c has not yet been changed to comply with the new order of stack layout.
2014-01-11py: Fix emitcpy and emitnative's binary_op.Damien George
2014-01-11unified the bopsJohn R. Lenton
2014-01-04Improve configurability for native x64/thumb emitter.Damien George
With MICROPY_EMIT_X64 and MICROPY_EMIT_THUMB disabled, the respective emitters and assemblers will not be included in the code. This can significantly reduce binary size for unix version.
2013-12-21Change object representation from 1 big union to individual structs.Damien
A big change. Micro Python objects are allocated as individual structs with the first element being a pointer to the type information (which is itself an object). This scheme follows CPython. Much more flexible, not necessarily slower, uses same heap memory, and can allocate objects statically. Also change name prefix, from py_ to mp_ (mp for Micro Python).
2013-12-12py: remove further unnecessary emit_verbatim code.Damien
2013-12-11py: work towards working closures.Damien
2013-11-16Viper: function calls now convert constant arguments to objects.Damien
2013-11-06Viper supports inplace add (trivial).Damien
2013-11-03Support for for-loop in native thumb.Damien
2013-11-03Implement more thumb branch instructions.Damien
2013-11-02Fix bug: emit native didn't clear last_was_return in label_assign.Damien
2013-10-20Add local_num skeleton framework to deref/closure emit calls.Damien
2013-10-16Add iterators and comprehension to emitnative.Damien
2013-10-12Change ifdef/if defined to simple if's.Damien
2013-10-12Separate out mpy core and unix version.Damien
2013-10-10Simplify and improve function & method calling.Damien
2013-10-10Implement basic class/object in native code.Damien
2013-10-09Implement basic class/object functionality in runtime.Damien
2013-10-08Improve push/pop and register usage for native emit.Damien
2013-10-08Native Python and Viper support for x64 and thumb all together.Damien