summaryrefslogtreecommitdiffstatshomepage
path: root/py/emitnative.c
Commit message (Collapse)AuthorAge
* py: Partially fix native emitter to work with latest runtime.Damien George2014-02-02
| | | | | Native emitter has been broken since stack order has changed from reverse to standard. This fix gets it partially working.
* py: Tidy up BINARY_OPs; negation done by special NOT bytecode.Damien George2014-02-01
| | | | | IS_NOT and NOT_IN are now compiled to IS + NOT and IN + NOT, with a new special NOT bytecode.
* py: Implement break/continue from an exception with finally.Damien George2014-02-01
| | | | Still todo: break/continue from within the finally block itself.
* py: Fix bug with LOAD_METHOD; fix int->machine_int_t for small int.Damien George2014-01-29
| | | | | | | | 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.
* py: Improve freeing of emitters in mp_compile.Damien George2014-01-24
| | | | | There can be multiple emitters allocated during compile (eg byte code and native).
* Add support for freeing code emitter objects at the end of compilation.Paul Sokolovsky2014-01-24
|
* Revamp qstrs: they now include length and hash.Damien George2014-01-21
| | | | | Can now have null bytes in strings. Can define ROM qstrs per port using qstrdefsport.h
* Add source file name and line number to error messages.Damien George2014-01-18
| | | | | Byte code has a map from byte-code offset to source-code line number, used to give better error messages.
* Make VM stack grow upwards, and so no reversed args arrays.Damien George2014-01-18
| | | | | | | | | | | | | | | 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.
* py: Fix emitcpy and emitnative's binary_op.Damien George2014-01-11
|
* unified the bopsJohn R. Lenton2014-01-11
|
* Improve configurability for native x64/thumb emitter.Damien George2014-01-04
| | | | | | 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.
* Change object representation from 1 big union to individual structs.Damien2013-12-21
| | | | | | | | | | 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).
* py: remove further unnecessary emit_verbatim code.Damien2013-12-12
|
* py: work towards working closures.Damien2013-12-11
|
* Viper: function calls now convert constant arguments to objects.Damien2013-11-16
|
* Viper supports inplace add (trivial).Damien2013-11-06
|
* Support for for-loop in native thumb.Damien2013-11-03
|
* Implement more thumb branch instructions.Damien2013-11-03
|
* Fix bug: emit native didn't clear last_was_return in label_assign.Damien2013-11-02
|
* Add local_num skeleton framework to deref/closure emit calls.Damien2013-10-20
|
* Add iterators and comprehension to emitnative.Damien2013-10-16
|
* Change ifdef/if defined to simple if's.Damien2013-10-12
|
* Separate out mpy core and unix version.Damien2013-10-12
|
* Simplify and improve function & method calling.Damien2013-10-10
|
* Implement basic class/object in native code.Damien2013-10-10
|
* Implement basic class/object functionality in runtime.Damien2013-10-09
|
* Improve push/pop and register usage for native emit.Damien2013-10-08
|
* Native Python and Viper support for x64 and thumb all together.Damien2013-10-08