Skip to content

Commit 7e82292

Browse files
committed
[Truffle] Add missed files to last commit.
1 parent bcfa723 commit 7e82292

File tree

2 files changed

+66
-0
lines changed

2 files changed

+66
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Copyright (c) 2013, 2014 Oracle and/or its affiliates. All rights reserved. This
3+
* code is released under a tri EPL/GPL/LGPL license. You can use it,
4+
* redistribute it and/or modify it under the terms of the:
5+
*
6+
* Eclipse Public License version 1.0
7+
* GNU General Public License version 2
8+
* GNU Lesser General Public License version 2.1
9+
*/
10+
package org.jruby.truffle.nodes.core;
11+
12+
import com.oracle.truffle.api.dsl.NodeChild;
13+
import com.oracle.truffle.api.dsl.NodeChildren;
14+
import com.oracle.truffle.api.source.SourceSection;
15+
import org.jruby.truffle.nodes.RubyNode;
16+
import org.jruby.truffle.runtime.RubyContext;
17+
18+
@NodeChildren({
19+
@NodeChild(value = "left", type = RubyNode.class),
20+
@NodeChild(value = "right", type = RubyNode.class)})
21+
public abstract class BinaryCoreMethodNode extends RubyNode {
22+
23+
public BinaryCoreMethodNode(RubyContext context, SourceSection sourceSection) {
24+
super(context, sourceSection);
25+
}
26+
27+
public BinaryCoreMethodNode(BinaryCoreMethodNode prev) {
28+
super(prev);
29+
}
30+
31+
public abstract RubyNode getLeft();
32+
33+
public abstract RubyNode getRight();
34+
35+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
* Copyright (c) 2013, 2014 Oracle and/or its affiliates. All rights reserved. This
3+
* code is released under a tri EPL/GPL/LGPL license. You can use it,
4+
* redistribute it and/or modify it under the terms of the:
5+
*
6+
* Eclipse Public License version 1.0
7+
* GNU General Public License version 2
8+
* GNU Lesser General Public License version 2.1
9+
*/
10+
package org.jruby.truffle.nodes.core;
11+
12+
import com.oracle.truffle.api.dsl.NodeChild;
13+
import com.oracle.truffle.api.dsl.NodeChildren;
14+
import com.oracle.truffle.api.source.SourceSection;
15+
import org.jruby.truffle.nodes.RubyNode;
16+
import org.jruby.truffle.runtime.RubyContext;
17+
18+
@NodeChild(value = "operand", type = RubyNode.class)
19+
public abstract class UnaryCoreMethodNode extends RubyNode {
20+
21+
public UnaryCoreMethodNode(RubyContext context, SourceSection sourceSection) {
22+
super(context, sourceSection);
23+
}
24+
25+
public UnaryCoreMethodNode(UnaryCoreMethodNode prev) {
26+
super(prev);
27+
}
28+
29+
public abstract RubyNode getOperand();
30+
31+
}

0 commit comments

Comments
 (0)