1. 23 Feb, 2015 3 commits
  2. 22 Feb, 2015 1 commit
  3. 20 Feb, 2015 14 commits
  4. 19 Feb, 2015 11 commits
    • Kevin Modzelewski's avatar
      Fix an arg-handling bug in typeCallInternal · 0e10126d
      Kevin Modzelewski authored
      In typeCallInternal, we used to expand out any starargs in order to take a look
      at the first arg (and change it when passing it).
      
      We had a bug in this code, and rather than make that code more complicated
      to fix it, just call back into callFunc to resolve it.  This is kind of tricky
      since callFunc will call typeCall, and we don't want typeCall to duplicate
      the typeCallInternal behavior (that's not any better than duplicating the
      arg behavior), so we want typeCall to call into typeCallInternal.  But
      typeCall receives varargs! which typeCallInternal doesn't support.  So typeCall
      has to do some (simpler) arg handling to expand out the varargs.
      
      In the end, it simplifies the code a little bit but causes a bunch of extra calls
      in the varargs case, so it's less of a win than I thought, but at least it
      fixes the bug.
      0e10126d
    • Kevin Modzelewski's avatar
      Minor: if a GC is triggered in this section it will crash · bac77762
      Kevin Modzelewski authored
      We could make the typeGCHandler support these half-constructed classes,
      but let's just turn off the GC for this area.
      bac77762
    • Chris Toshok's avatar
    • Kevin Modzelewski's avatar
      Merge pull request #292 from tjhance/set-function-name · dbac3625
      Kevin Modzelewski authored
      implement setting __name__ for functions
      dbac3625
    • Kevin Modzelewski's avatar
      Merge pull request #312 from kevinxucs/docs_gcc-url · efeaab75
      Kevin Modzelewski authored
      Update gcc-4.8.2 tarball url to generic gnu ftpmirror.
      efeaab75
    • Kevin Modzelewski's avatar
      Merge pull request #313 from undingen/perf_chaos · f2e68e79
      Kevin Modzelewski authored
      compvar: add int <op> float handling
      f2e68e79
    • Marius Wachtler's avatar
      compvar: add int <op> float handling · 15541f28
      Marius Wachtler authored
      Convert the integer to a float and then let the float code handle the operation
      With this change the type analysis is also able to comprehend that
      e.g. '1 - <float>' will return a float
      
      This means that the math operations in the 'linear_combination' function in chaos.py
      get completely inlined.
      
      improves chaos.py by 5%
      15541f28
    • Kaiwen Xu's avatar
      c43f92a5
    • Travis Hance's avatar
      implement setting __name__ for functions · 4093d5a8
      Travis Hance authored
      4093d5a8
    • Kevin Modzelewski's avatar
      Rearrange things to improve our ability to inline common cases · 2c4ab499
      Kevin Modzelewski authored
      We seem to be spending a fair amount of time doing unnecessary work
      for simple calls like boxInt and createList, which are generated
      by irgen and reduce to calling new BoxedInt / BoxedList.  The
      operator new calls tp_alloc, so we get some indirect function calls,
      and then tp_alloc does some checking about its caller, and then we
      check to see what size object to create, and how to initialize it.
      
      I created a DEFAULT_CLASS_SIMPLE macro to go with DEFAULT_CLASS,
      that should help with these things.  I (manually) inlined all of those
      functions into the operator new.
      
      I also moved the small arena bucket selection function (SmallArena::alloc)
      into the header file so that it can get inlined, since the allocation size
      is often known at compile time and we can statically resolve to a bucket.
      
      Putting these together means that boxInt and createList are much tighter.
      2c4ab499
    • Kevin Modzelewski's avatar
      Use a __thread cache for the GC's thread-local ThreadBlockCache · a2e51e4f
      Kevin Modzelewski authored
      __thread seems quite a bit faster than pthread_get_specific, so
      if we give up on having multiple Heap objects, then we can store
      a reference to the current thread's ThreadBlockCache in a static
      __thread variable.  It looks like this ends up mattering (5% average
      speedup) since SmallArena::_alloc() is so hot
      a2e51e4f
  5. 18 Feb, 2015 11 commits