1. 03 May, 2014 1 commit
    • Damien George's avatar
      Add license header to (almost) all files. · 04b9147e
      Damien George authored
      Blanket wide to all .c and .h files.  Some files originating from ST are
      difficult to deal with (license wise) so it was left out of those.
      
      Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
      04b9147e
  2. 23 Apr, 2014 1 commit
  3. 30 Mar, 2014 2 commits
  4. 29 Mar, 2014 1 commit
    • Paul Sokolovsky's avatar
      vm: Save current active exception on opening new try block. · 0c904df8
      Paul Sokolovsky authored
      Required to reraise correct exceptions in except block, regardless if more
      try blocks with active exceptions happen in the same except block.
      
      P.S. This "automagic reraise" appears to be quite wasteful feature of Python
      - we need to save pending exception just in case it *might* be reraised.
      Instead, programmer could explcitly capture exception to a variable using
      "except ... as var", and reraise that. So, consider disabling argless raise
      support as an optimization.
      0c904df8
  5. 27 Mar, 2014 1 commit
    • Damien George's avatar
      py: Put n_state for bytecode in the bytecode prelude. · bee17b00
      Damien George authored
      Rationale: setting up the stack (state for locals and exceptions) is
      really part of the "code", it's the prelude of the function.  For
      example, native code adjusts the stack pointer on entry to the function.
      Native code doesn't need to know n_state for any other reason.  So
      putting the state size in the bytecode prelude is sensible.
      
      It reduced ROM usage on STM by about 30 bytes :)  And makes it easier to
      pass information about the bytecode between functions.
      bee17b00
  6. 23 Mar, 2014 1 commit
  7. 22 Mar, 2014 2 commits
  8. 15 Feb, 2014 1 commit
  9. 01 Feb, 2014 1 commit
  10. 19 Jan, 2014 1 commit
  11. 18 Jan, 2014 1 commit
  12. 06 Jan, 2014 2 commits
  13. 21 Dec, 2013 1 commit
    • Damien's avatar
      Change object representation from 1 big union to individual structs. · d99b0528
      Damien authored
      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).
      d99b0528
  14. 11 Dec, 2013 1 commit
  15. 10 Dec, 2013 1 commit
  16. 05 Nov, 2013 2 commits
  17. 16 Oct, 2013 1 commit
  18. 10 Oct, 2013 1 commit
  19. 09 Oct, 2013 1 commit
  20. 05 Oct, 2013 1 commit
  21. 04 Oct, 2013 1 commit