Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
base: c725c6984de7
Choose a base ref
...
head repository: jruby/jruby
compare: d06fd823d905
Choose a head ref
  • 6 commits
  • 66 files changed
  • 1 contributor

Commits on Apr 17, 2015

  1. StaticScope now has Signature instead of three individual fields. All…

    … other
    
    changes were made to support this.  We encode/decode scopes with a full
    Signature.  Blocks are all rooted in providing a Signature.  All IR*Method
    will provide a Signature.  Unfortunately, I stopped at IR level for method
    types.  Over time those should get converted.
    
    This corrects all arity issues involving methods and blocks in interp.  JIT
    is still somewhere passing in the wrong values but I will correct that in
    a followup (this is not a regression).
    
    spec:fast:ruby and test:mri both pass so do JIT variants of those tests
    but I strong suspect we are shelling out in some way and running some of
    these tests in interp mode.
    
    On other note of distinction is that for builtin functions we only construct
    a subset of information that Signature wants because Arity is only a subset
    of the info Signature needs.  Since there are no exotic signatures in builtins
    there is a Signature.from(Arity) which will convert to a reasonable analogue
    or throw if it is special in some way.
    
    I tried to leave all deprecated versions of methods and constructors but
    I might have spaced out a few.
    enebo committed Apr 17, 2015
    Copy the full SHA
    512b0a5 View commit details
    Browse the repository at this point in the history
  2. 1. staticScope.setSignature now only happens when ArgsNode is created…

    … and nowhere else (well some dead code which needs to be removed yet). For AOT, IR persistence still needs to be corrected so that we can popular signature when we reify the StaticScope (to be done in a followup commit).
    
    2. CompiledIRMethod now implements IRMethodArgs so this fixed all JIT methods arity errors.
    enebo committed Apr 17, 2015
    Copy the full SHA
    bff01dd View commit details
    Browse the repository at this point in the history
  3. Unbreak StaticScope persistence from previous commits. This also indi…

    …rectly fixes proper
    
    Arity for AOT compiled code.
    enebo committed Apr 17, 2015
    Copy the full SHA
    3f09737 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    b856bd9 View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    2be2987 View commit details
    Browse the repository at this point in the history
  6. No more requireArgument optionalArguments individual count methods on…

    … StaticScope. getSignature
    
    replaces it.
    
    Remove Arity usage from JIT.  All information of a JIT'd method can come from signature on
    StaticScope now.
    
    What is remaining is pushing more Arity out of *Method types, but pre2 is dragging on and this
    last push will be to use new Signature info to properly implement kwargs.
    enebo committed Apr 17, 2015
    Copy the full SHA
    d06fd82 View commit details
    Browse the repository at this point in the history