summaryrefslogtreecommitdiffstatshomepage
path: root/py/runtime.h
Commit message (Collapse)AuthorAge
* py: Initialise loaded_module map in rt_init.Damien George2014-01-22
| | | | | STM port crashes without this re-init. There should not be any state in the core py/ code that relies on pre-initialised data.
* 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.
* Consolidate rt_make_function_[0123] to rt_make_function_n.Damien George2014-01-13
|
* unified the bopsJohn R. Lenton2014-01-11
|
* Split qstr into pools, and put initial pool in ROM.Damien George2014-01-04
| | | | | | | | | | | | | | | | Qstr's are now split into a linked-list of qstr pools. This has 2 benefits: the first pool can be in ROM (huge benefit, since we no longer use RAM for the core qstrs), and subsequent pools use m_new for the next pool instead of m_renew (thus avoiding a huge single table for all the qstrs). Still would be better to use a hash table, but this scheme takes us part of the way (eventually convert the pools to hash tables). Also fixed bug with import. Also improved the way the module code is referenced (not magic number 1 anymore).
* Basic implementation of import.Damien George2014-01-03
| | | | | | import works for simple cases. Still work to do on finding the right script, and setting globals/locals correctly when running an imported function.
* 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: add more Python built-in functions.Damien2013-12-17
|
* py: split runtime into map, obj, builtin.Damien2013-12-17
|
* py: work towards working closures.Damien2013-12-11
|
* py: add skeletal import functionality.Damien2013-12-10
|
* py: add list pop and sort, unpack_sequence, and keywords in method_call.Damien2013-11-26
|
* Add simple var-arg functions; add simple string.format.Damien2013-11-03
|
* Change Py API names, py_get_* -> py_obj_get_*.Damien2013-11-03
|
* Add user object to runtime.Damien2013-11-02
|
* Fix bug: emit native didn't clear last_was_return in label_assign.Damien2013-11-02
|
* Add basic complex number support.Damien2013-11-02
|
* Implement: str.join, more float support, ROT_TWO in VM.Damien2013-11-02
|
* Add py_get_array_fixed_n function.Damien2013-10-25
|
* Add working MMA support.Damien2013-10-23
|
* Fix func decls with no arguments: () -> (void).Damien2013-10-23
|
* Add py_get_qstr.Damien2013-10-23
|
* Add simple support for C modules.Damien2013-10-22
|
* Make grammar rules const so the go in .text section.Damien2013-10-19
|
* Make rt_fun_table const, so it goes in .text section.Damien2013-10-19
|
* Implement REPL.Damien2013-10-18
|
* Add iterators and comprehension to emitnative.Damien2013-10-16
|
* Add SET_ADD opcode to VM.Damien2013-10-16
|
* Implement BC & runtime support for generator/yielding.Damien2013-10-16
|
* Support tuples and list comprehension, albeit crude.Damien2013-10-16
|
* Implement basic exception framework, and simple for loop.Damien2013-10-15
|
* 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
|
* Add support for inline thumb assembly.Damien2013-10-05
|
* Initial commit.Damien2013-10-04