1. 07 Jan, 2015 1 commit
  2. 01 Jan, 2015 1 commit
  3. 21 Dec, 2014 1 commit
  4. 09 Dec, 2014 1 commit
    • Damien George's avatar
      py: Allow builtins to be overridden. · 78d702c3
      Damien George authored
      This patch adds a configuration option (MICROPY_CAN_OVERRIDE_BUILTINS)
      which, when enabled, allows to override all names within the builtins
      module.  A builtins override dict is created the first time the user
      assigns to a name in the builtins model, and then that dict is searched
      first on subsequent lookups.  Note that this implementation doesn't
      allow deleting of names.
      
      This patch also does some refactoring of builtins code, creating the
      modbuiltins.c file.
      
      Addresses issue #959.
      78d702c3
  5. 05 Dec, 2014 1 commit
    • Damien George's avatar
      py: Optimise lexer by exposing lexer type. · a4c52c5a
      Damien George authored
      mp_lexer_t type is exposed, mp_token_t type is removed, and simple lexer
      functions (like checking current token kind) are now inlined.
      
      This saves 784 bytes ROM on 32-bit unix, 348 bytes on stmhal, and 460
      bytes on bare-arm.  It also saves a tiny bit of RAM since mp_lexer_t
      is a bit smaller.  Also will run a bit more efficiently.
      a4c52c5a
  6. 06 Nov, 2014 1 commit
  7. 02 Nov, 2014 1 commit
  8. 25 Oct, 2014 3 commits
  9. 23 Oct, 2014 1 commit
  10. 09 Oct, 2014 1 commit
  11. 07 Oct, 2014 1 commit
  12. 05 Oct, 2014 1 commit
    • Damien George's avatar
      py: Implement proper context save/restore for eval/exec; factor code. · c4d0868d
      Damien George authored
      This has benefits all round: code factoring for parse/compile/execute,
      proper context save/restore for exec, allow to sepcify globals/locals
      for eval, and reduced ROM usage by >100 bytes on stmhal and unix.
      
      Also, the call to mp_parse_compile_execute is tail call optimised for
      the import code, so it doesn't increase stack memory usage.
      c4d0868d
  13. 03 Oct, 2014 1 commit
  14. 25 Sep, 2014 2 commits
  15. 23 Sep, 2014 1 commit
    • Damien George's avatar
      stmhal: Initialise stack pointer correctly. · eaaebf32
      Damien George authored
      Stack is full descending and must be 8-byte aligned.  It must start off
      pointing to just above the last byte of RAM.
      
      Previously, stack started pointed to last byte of RAM (eg 0x2001ffff)
      and so was not 8-byte aligned.  This caused a bug in combination with
      alloca.
      
      This patch also updates some debug printing code.
      
      Addresses issue #872 (among many other undiscovered issues).
      eaaebf32
  16. 30 Aug, 2014 4 commits
  17. 28 Aug, 2014 1 commit
  18. 16 Aug, 2014 2 commits
  19. 15 Aug, 2014 1 commit
  20. 04 Aug, 2014 1 commit
  21. 03 Jul, 2014 1 commit
  22. 30 Jun, 2014 1 commit
  23. 27 Jun, 2014 1 commit
    • Paul Sokolovsky's avatar
      py: Move stack_ctrl_init() to mp_init(). · 8a96ebea
      Paul Sokolovsky authored
      As stack checking is enabled by default, ports which don't call
      stack_ctrl_init() are broken now (report RuntimeError on startup). Save
      them trouble and just init stack control framework in interpreter init.
      8a96ebea
  24. 20 Jun, 2014 1 commit
  25. 07 Jun, 2014 2 commits
  26. 05 Jun, 2014 1 commit
  27. 03 Jun, 2014 2 commits
  28. 01 Jun, 2014 3 commits
  29. 28 May, 2014 1 commit