-
-
Notifications
You must be signed in to change notification settings - Fork 925
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into truffle-head
Conflicts: truffle/src/main/java/org/jruby/truffle/nodes/core/BindingNodes.java
- 9.4.12.0
- 9.4.11.0
- 9.4.10.0
- 9.4.9.0
- 9.4.8.0
- 9.4.7.0
- 9.4.6.0
- 9.4.5.0
- 9.4.4.0
- 9.4.3.0
- 9.4.2.0
- 9.4.1.0
- 9.4.0.0
- 9.3.15.0
- 9.3.14.0
- 9.3.13.0
- 9.3.12.0
- 9.3.11.0
- 9.3.10.0
- 9.3.9.0
- 9.3.8.0
- 9.3.7.0
- 9.3.6.0
- 9.3.5.0
- 9.3.4.0
- 9.3.3.0
- 9.3.2.0
- 9.3.1.0
- 9.3.0.0
- 9.2.21.0
- 9.2.20.1
- 9.2.20.0
- 9.2.19.0
- 9.2.18.0
- 9.2.17.0
- 9.2.16.0
- 9.2.15.0
- 9.2.14.0
- 9.2.13.0
- 9.2.12.0
- 9.2.11.1
- 9.2.11.0
- 9.2.10.0
- 9.2.9.0
- 9.2.8.0
- 9.2.7.0
- 9.2.6.0
- 9.2.5.0
- 9.2.4.1
- 9.2.4.0
- 9.2.3.0
- 9.2.2.0
- 9.2.1.0
- 9.2.0.0
- 9.1.17.0
- 9.1.16.0
- 9.1.15.0
- 9.1.14.0
- 9.1.13.0
- 9.1.12.0
- 9.1.11.0
- 9.1.10.0
- 9.1.9.0
- 9.1.8.0
- 9.1.7.0
- 9.1.6.0
- 9.1.5.0
- 9.1.4.0
- 9.1.3.0
- 9.1.2.0
- 9.1.1.0
- 9.1.0.0
- 9.0.5.0
Showing
104 changed files
with
1,128 additions
and
2,427 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 13 additions & 4 deletions
17
core/src/main/java/org/jruby/internal/runtime/methods/IRMethodArgs.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
package org.jruby.internal.runtime.methods; | ||
|
||
import org.jruby.runtime.ArgumentDescriptor; | ||
import org.jruby.runtime.Signature; | ||
|
||
/** | ||
* Represents a method object that can return a Signature and an array of ArgumentDescriptors. | ||
*/ | ||
public interface IRMethodArgs { | ||
// FIXME: Should get pushed to DynamicMethod | ||
|
||
/** | ||
* Get the Signature for this method. | ||
*/ | ||
public Signature getSignature(); | ||
public String[] getParameterList(); | ||
|
||
public enum ArgType { | ||
key, keyreq, keyrest, block, opt, rest, req | ||
} | ||
/** | ||
* Get the array of ArgumentDescriptors that represent the arguments to this method. | ||
*/ | ||
public ArgumentDescriptor[] getArgumentDescriptors(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
core/src/main/java/org/jruby/internal/runtime/methods/MethodArgs2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
core/src/main/java/org/jruby/runtime/ArgumentDescriptor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package org.jruby.runtime; | ||
|
||
import org.jruby.Ruby; | ||
import org.jruby.RubyArray; | ||
|
||
/** | ||
* A description of a single argument in a Ruby argument list. | ||
*/ | ||
public class ArgumentDescriptor { | ||
/** The type of the argument */ | ||
public final ArgumentType type; | ||
|
||
/** The name of the argument */ | ||
public final String name; | ||
|
||
public static final ArgumentDescriptor[] EMPTY_ARRAY = new ArgumentDescriptor[0]; | ||
|
||
public ArgumentDescriptor(ArgumentType type, String name) { | ||
this.type = type; | ||
this.name = name; | ||
} | ||
|
||
public ArgumentDescriptor(ArgumentType type) { | ||
this(type, null); | ||
} | ||
|
||
/** | ||
* Generate the prefixed version of this descriptor. | ||
* | ||
* @see org.jruby.internal.runtime.methods.MethodArgs2 | ||
*/ | ||
public String toPrefixForm() { | ||
return type.renderPrefixForm(name); | ||
} | ||
|
||
public RubyArray toArrayForm(Ruby runtime, boolean isLambda) { | ||
if (type == ArgumentType.req && !isLambda) { | ||
return ArgumentType.opt.toArrayForm(runtime, name); | ||
} else { | ||
return type.toArrayForm(runtime, name); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package org.jruby.runtime; | ||
|
||
import org.jruby.Ruby; | ||
import org.jruby.RubyArray; | ||
|
||
/** | ||
* Created by headius on 5/8/15. | ||
*/ | ||
public enum ArgumentType { | ||
key("key", "k", false), | ||
keyreq("keyreq", "K", false), | ||
keyrest("keyrest", "e", false), | ||
block("block", "b", false), | ||
opt("opt", "o", false), | ||
rest("rest", "r", false), | ||
req("req", "q", false), | ||
anonreq("req", "n", true), | ||
anonopt("opt", "O", true), | ||
anonrest("rest", "R", true), | ||
anonkeyrest("keyrest", "N", true); | ||
|
||
ArgumentType(String symbolicName, String prefix, boolean anonymous) { | ||
this.symbolicName = symbolicName; | ||
this.prefix = prefix; | ||
this.anonymous = anonymous; | ||
} | ||
|
||
public static ArgumentType valueOf(char prefix) { | ||
switch (prefix) { | ||
case 'k': return key; | ||
case 'K': return keyreq; | ||
case 'e': return keyrest; | ||
case 'b': return block; | ||
case 'o': return opt; | ||
case 'r': return rest; | ||
case 'q': return req; | ||
case 'R': return anonrest; | ||
case 'n': return anonreq; | ||
case 'O': return anonopt; | ||
default: return null; | ||
} | ||
} | ||
|
||
public String renderPrefixForm(String name) { | ||
return anonymous ? String.valueOf(prefix) : prefix + name; | ||
} | ||
|
||
public RubyArray toArrayForm(Ruby runtime, String name) { | ||
return anonymous ? runtime.newArray(runtime.newSymbol(symbolicName)) : runtime.newArray(runtime.newSymbol(symbolicName), runtime.newSymbol(name)); | ||
} | ||
|
||
public final String symbolicName; | ||
public final String prefix; | ||
public final boolean anonymous; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
241 changes: 0 additions & 241 deletions
241
core/src/main/java/org/jruby/runtime/CallbackFactory.java
This file was deleted.
Oops, something went wrong.
222 changes: 0 additions & 222 deletions
222
core/src/main/java/org/jruby/runtime/CompiledBlock.java
This file was deleted.
Oops, something went wrong.
198 changes: 0 additions & 198 deletions
198
core/src/main/java/org/jruby/runtime/CompiledBlock19.java
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
core/src/main/java/org/jruby/runtime/CompiledBlockCallback.java
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
core/src/main/java/org/jruby/runtime/CompiledBlockCallback19.java
This file was deleted.
Oops, something went wrong.
66 changes: 0 additions & 66 deletions
66
core/src/main/java/org/jruby/runtime/CompiledBlockLight.java
This file was deleted.
Oops, something went wrong.
80 changes: 0 additions & 80 deletions
80
core/src/main/java/org/jruby/runtime/CompiledBlockLight19.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 0 additions & 54 deletions
54
core/src/main/java/org/jruby/runtime/CompiledSharedScopeBlock.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.