Skip to content
Snippets Groups Projects
  1. Apr 04, 2018
  2. Apr 03, 2018
    • Damien George's avatar
      tests/basics: Add test for use of return within try-except. · 430efb04
      Damien George authored
      The case of a return statement in the try suite of a try-except statement
      was previously only tested by builtin_compile.py, and only then in the part
      of this test which checked for the existence of the compile builtin.  So
      this patch adds an explicit unit test for this case.
      430efb04
    • Damien George's avatar
      py/vm: Optimise handling of stackless mode when pystack is enabled. · bc365213
      Damien George authored
      When pystack is enabled mp_obj_fun_bc_prepare_codestate() will always
      return a valid pointer, and if there is no more pystack available then it
      will raise an exception (a RuntimeError).  So having pystack enabled with
      stackless enabled automatically gives strict stackless mode.  There is
      therefore no need to have code for strict stackless mode when pystack is
      enabled, and this patch optimises the VM for such a case.
      bc365213
    • Damien George's avatar
      py/vm: Don't do unnecessary updates of ip and sp variables. · c7f880ed
      Damien George authored
      Neither the ip nor sp variables are used again after the execution of the
      RAISE_VARARGS opcode, so they don't need to be updated.
      c7f880ed
  3. Mar 30, 2018
  4. Mar 29, 2018
  5. Mar 28, 2018
  6. Mar 27, 2018
  7. Mar 25, 2018
  8. Mar 20, 2018
  9. Mar 19, 2018
Loading