Skip to content
Snippets Groups Projects
  1. Dec 20, 2017
    • Damien George's avatar
      py/malloc: Remove unneeded code checking m_malloc return value. · 26d4a6fa
      Damien George authored
      m_malloc already checks for a failed allocation so there's no need to check
      for it in m_malloc0.
      26d4a6fa
    • Damien George's avatar
      qemu-arm/test_main: Include setjmp.h because it's used by gc_collect. · d7a52e15
      Damien George authored
      And it's no longer unconditionally included by nlr.h, only if NLR_SETJMP
      is defined.
      d7a52e15
    • Damien George's avatar
      py/nlr: Factor out common NLR code to generic functions. · 6a3a742a
      Damien George authored
      Each NLR implementation (Thumb, x86, x64, xtensa, setjmp) duplicates a lot
      of the NLR code, specifically that dealing with pushing and popping the NLR
      pointer to maintain the linked-list of NLR buffers.  This patch factors all
      of that code out of the specific implementations into generic functions in
      nlr.c.  This eliminates duplicated code.
      
      The factoring also allows to make the machine-specific NLR code pure
      assembler code, thus allowing nlrthumb.c to use naked function attributes
      in the correct way (naked functions can only have basic inline assembler
      code in them).
      
      There is a small overhead introduced (typically 1 machine instruction)
      because now the generic nlr_jump() must call nlr_jump_tail() rather than
      them being one combined function.
      6a3a742a
  2. Dec 19, 2017
  3. Dec 18, 2017
  4. Dec 16, 2017
  5. Dec 15, 2017
  6. Dec 14, 2017
Loading