Skip to content

Commit 0a2e215

Browse files
committed
Move MatchArgFastPath to the fastpath Java package
1 parent b188bd0 commit 0a2e215

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/BasePackage.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
import com.oracle.truffle.r.nodes.builtin.base.fastpaths.GetFastPathNodeGen;
4747
import com.oracle.truffle.r.nodes.builtin.base.fastpaths.IntersectFastPathNodeGen;
4848
import com.oracle.truffle.r.nodes.builtin.base.fastpaths.IsElementFastPathNodeGen;
49+
import com.oracle.truffle.r.nodes.builtin.base.fastpaths.MatchArgFastPath;
50+
import com.oracle.truffle.r.nodes.builtin.base.fastpaths.MatchArgFastPathNodeGen;
4951
import com.oracle.truffle.r.nodes.builtin.base.fastpaths.MatrixFastPathNodeGen;
5052
import com.oracle.truffle.r.nodes.builtin.base.fastpaths.SetDiffFastPathNodeGen;
5153
import com.oracle.truffle.r.nodes.builtin.base.fastpaths.StopifnotFastPath;

com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/Identical.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
@RBuiltin(name = "identical", kind = INTERNAL, parameterNames = {"x", "y", "num.eq", "single.NA", "attrib.as.set", "ignore.bytecode", "ignore.environment", "ignore.srcref"}, behavior = PURE)
7979
public abstract class Identical extends RBuiltinNode.Arg8 {
8080

81-
protected abstract byte executeByte(Object x, Object y, boolean numEq, boolean singleNA, boolean attribAsSet, boolean ignoreBytecode, boolean ignoreEnvironment, boolean ignoreSrcref);
81+
public abstract byte executeByte(Object x, Object y, boolean numEq, boolean singleNA, boolean attribAsSet, boolean ignoreBytecode, boolean ignoreEnvironment, boolean ignoreSrcref);
8282

8383
@Child private Identical identicalRecursive;
8484
@Child private Identical identicalRecursiveAttr;

com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/MatchArgFastPath.java renamed to com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/fastpaths/MatchArgFastPath.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* or visit www.oracle.com if you need additional information or have any
2121
* questions.
2222
*/
23-
package com.oracle.truffle.r.nodes.builtin.base;
23+
package com.oracle.truffle.r.nodes.builtin.base.fastpaths;
2424

2525
import static com.oracle.truffle.r.nodes.builtin.CastBuilder.Predef.logicalValue;
2626
import static com.oracle.truffle.r.nodes.builtin.CastBuilder.Predef.stringValue;
@@ -44,7 +44,12 @@
4444
import static com.oracle.truffle.r.nodes.builtin.CastBuilder.Predef.typeName;
4545

4646
import com.oracle.truffle.r.nodes.attributes.SpecialAttributesFunctions.GetNamesAttributeNode;
47-
import com.oracle.truffle.r.nodes.builtin.base.MatchArgFastPathNodeGen.MatchArgInternalNodeGen;
47+
import com.oracle.truffle.r.nodes.builtin.base.AsCharacter;
48+
import com.oracle.truffle.r.nodes.builtin.base.AsCharacterNodeGen;
49+
import com.oracle.truffle.r.nodes.builtin.base.Identical;
50+
import com.oracle.truffle.r.nodes.builtin.base.IdenticalNodeGen;
51+
import com.oracle.truffle.r.nodes.builtin.base.PMatch;
52+
import com.oracle.truffle.r.nodes.builtin.base.PMatchNodeGen;
4853
import com.oracle.truffle.r.nodes.function.ClassHierarchyNode;
4954
import com.oracle.truffle.r.nodes.function.ClassHierarchyNodeGen;
5055
import com.oracle.truffle.r.nodes.function.FormalArguments;
@@ -288,7 +293,7 @@ public Object execute(VirtualFrame frame) {
288293
}
289294

290295
protected static MatchArgInternal createInternal() {
291-
return MatchArgInternalNodeGen.create();
296+
return MatchArgFastPathNodeGen.MatchArgInternalNodeGen.create();
292297
}
293298

294299
@Specialization(limit = "1", guards = "cache.choicesValue.isSupported(frame, arg)")
@@ -304,7 +309,7 @@ public static final class MatchArgNode extends Node {
304309

305310
public MatchArgNode(VirtualFrame frame, RPromise arg) {
306311
this.choicesValue = new MatchArgChoices(frame, arg);
307-
this.internal = MatchArgInternalNodeGen.create();
312+
this.internal = MatchArgFastPathNodeGen.MatchArgInternalNodeGen.create();
308313
this.promiseHelper = new PromiseHelperNode();
309314
}
310315
}

0 commit comments

Comments
 (0)