1. 21 Feb, 2015 1 commit
  2. 15 Feb, 2015 1 commit
  3. 14 Feb, 2015 1 commit
  4. 09 Feb, 2015 2 commits
  5. 08 Feb, 2015 1 commit
  6. 30 Jan, 2015 1 commit
  7. 27 Jan, 2015 1 commit
    • Damien George's avatar
      py: Specify unary/binary op name in TypeError error message. · a5efcd47
      Damien George authored
      Eg, "() + 1" now tells you that __add__ is not supported for tuple and
      int types (before it just said the generic "binary operator").  We reuse
      the table of names for slot lookup because it would be a waste of code
      space to store the pretty name for each operator.
      a5efcd47
  8. 20 Jan, 2015 2 commits
  9. 11 Jan, 2015 1 commit
  10. 08 Jan, 2015 1 commit
  11. 07 Jan, 2015 1 commit
    • Damien George's avatar
      py: Add option to cache map lookup results in bytecode. · 7ee91cf8
      Damien George authored
      This is a simple optimisation inspired by JITing technology: we cache in
      the bytecode (using 1 byte) the offset of the last successful lookup in
      a map. This allows us next time round to check in that location in the
      hash table (mp_map_t) for the desired entry, and if it's there use that
      entry straight away.  Otherwise fallback to a normal map lookup.
      
      Works for LOAD_NAME, LOAD_GLOBAL, LOAD_ATTR and STORE_ATTR opcodes.
      
      On a few tests it gives >90% cache hit and greatly improves speed of
      code.
      
      Disabled by default.  Enabled for unix and stmhal ports.
      7ee91cf8
  12. 01 Jan, 2015 1 commit
  13. 28 Dec, 2014 1 commit
  14. 06 Nov, 2014 1 commit
  15. 05 Nov, 2014 1 commit
  16. 03 Nov, 2014 2 commits
  17. 23 Oct, 2014 1 commit
  18. 30 Aug, 2014 1 commit
  19. 29 Aug, 2014 1 commit
  20. 26 Aug, 2014 1 commit
  21. 24 Aug, 2014 1 commit
  22. 05 Jul, 2014 1 commit
  23. 03 Jul, 2014 1 commit
  24. 10 Jun, 2014 1 commit
  25. 08 Jun, 2014 2 commits
  26. 07 Jun, 2014 1 commit
  27. 05 Jun, 2014 1 commit
  28. 03 Jun, 2014 1 commit
  29. 01 Jun, 2014 1 commit
    • Damien George's avatar
      Rename bultins config variables to MICROPY_PY_BUILTINS_*. · fb510b3b
      Damien George authored
      This renames:
      MICROPY_PY_FROZENSET -> MICROPY_PY_BUILTINS_FROZENSET
      MICROPY_PY_PROPERTY -> MICROPY_PY_BUILTINS_PROPERTY
      MICROPY_PY_SLICE -> MICROPY_PY_BUILTINS_SLICE
      MICROPY_ENABLE_FLOAT -> MICROPY_PY_BUILTINS_FLOAT
      
      See issue #35 for discussion.
      fb510b3b
  30. 24 May, 2014 1 commit
  31. 21 May, 2014 4 commits
  32. 19 May, 2014 1 commit
    • Paul Sokolovsky's avatar
      objtype: Separate __new__ and __init__ methods. · 13684fd6
      Paul Sokolovsky authored
      Now schedule is: for native types, we call ->make_new() C-level method, which
      should perform actions of __new__ and __init__ (note that this is not
      compliant, but is efficient), but for user types, __new__ and __init__ are
      called as expected.
      
      Also, make sure we convert scalar attribute value to a bound-pair tight in
      mp_obj_class_lookup() method, which avoids converting it again and again in
      its callers.
      13684fd6
  33. 13 May, 2014 1 commit