1. 20 Jun, 2015 6 commits
    • Kevin Modzelewski's avatar
      Don't crash in a couple rewriter cases · 2c93ce12
      Kevin Modzelewski authored
      - if we try guarding after a mutation
      - if we use all of our scratch space
      
      Now, just set a "failed" flag internally and which prevents committing.
      
      The motivation for the first part is trying to get rewrite calls to tp_getattro;
      if the rewrite is from getattr then it will succeed, but if it comes from
      callattr then we will want to do some more guards after the tp_getattro.  We
      could try to pass that state around, but for now just use the 'failed' approach.
      2c93ce12
    • Kevin Modzelewski's avatar
      Can rewrite some extra callattr edgecases · b5d994be
      Kevin Modzelewski authored
      We don't usually call callattr with null_on_nonexistent,
      but we do for __hasattr__ checking.  We can rewrite those
      to just do the guards and then return NULL.
      b5d994be
    • Kevin Modzelewski's avatar
      Rewrite calls to astInterpretFunction · cb5f86e6
      Kevin Modzelewski authored
      kind of hacky but I think it's ok for now.
      cb5f86e6
    • Kevin Modzelewski's avatar
      Add more special-cases to nonzero · 2dcbe804
      Kevin Modzelewski authored
      We could also add more general rewriting, but
      - these new special cases catch something like
        95% of the cases that we weren't rewriting
      - these special cases are faster than doing the generic
        nonzerno mechanism (looking up the attribute, etc)
      
      It'd be nice if we could get to the point that the generic
      rewrites we'd create would be as good as the hand-crafted ones,
      but that would require knowing that we don't need to guard on
      constant classes, and then inlining within rewrites.
      2dcbe804
    • Kevin Modzelewski's avatar
      Merge pull request #625 from kmod/perf · 5294816c
      Kevin Modzelewski authored
      Some more perf hunting
      5294816c
    • Kevin Modzelewski's avatar
      Rewrite calls to BoxedMethodDescriptors · acdd2cd8
      Kevin Modzelewski authored
      ie one of the common entrypoints to capi code.
      acdd2cd8
  2. 19 Jun, 2015 10 commits
  3. 18 Jun, 2015 24 commits