1. 01 Feb, 2014 2 commits
    • Paul Sokolovsky's avatar
      Implement default function arguments (for Python functions). · 90750029
      Paul Sokolovsky authored
      TODO: Decide if we really need separate bytecode for creating functions
      with default arguments - we would need same for closures, then there're
      keywords arguments too. Having all combinations is a small exponential
      explosion, likely we need just 2 cases - simplest (no defaults, no kw),
      and full - defaults & kw.
      90750029
    • Paul Sokolovsky's avatar
      Add exception stack unwind support for RETURN_VALUE. · 6472dea1
      Paul Sokolovsky authored
      This properly implements return from try/finally block(s).
      
      TODO: Consider if we need to do any value stack unwinding for RETURN_VALUE
      case. Intuitively, this is "success" return, so value stack should be in
      good shape, and unwinding shouldn't be required.
      6472dea1
  2. 31 Jan, 2014 2 commits
  3. 30 Jan, 2014 1 commit
  4. 29 Jan, 2014 2 commits
    • Damien George's avatar
      py: Simplify fastn in VM; reduce size of unique code struct. · d0691cca
      Damien George authored
      We still have FAST_[0,1,2] byte codes, but they now just access the
      fastn array (before they had special local variables).  It's now
      simpler, a bit faster, and uses a bit less stack space (on STM at least,
      which is most important).
      
      The only reason now to keep FAST_[0,1,2] byte codes is for compressed
      byte code size.
      d0691cca
    • Damien George's avatar
      py: Fix bug with LOAD_METHOD; fix int->machine_int_t for small int. · 08d07559
      Damien George authored
      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.
      08d07559
  5. 26 Jan, 2014 1 commit
  6. 25 Jan, 2014 1 commit
  7. 24 Jan, 2014 1 commit
  8. 21 Jan, 2014 2 commits
  9. 19 Jan, 2014 3 commits
  10. 18 Jan, 2014 3 commits
  11. 17 Jan, 2014 1 commit
  12. 13 Jan, 2014 1 commit
  13. 11 Jan, 2014 2 commits
  14. 10 Jan, 2014 1 commit
  15. 07 Jan, 2014 1 commit
  16. 06 Jan, 2014 3 commits
  17. 04 Jan, 2014 3 commits
  18. 02 Jan, 2014 2 commits
  19. 30 Dec, 2013 1 commit
  20. 29 Dec, 2013 3 commits
  21. 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
  22. 17 Dec, 2013 1 commit
  23. 11 Dec, 2013 1 commit
  24. 10 Dec, 2013 1 commit