forked from smarr/TruffleSOM
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
118 additions
and
106 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
10 changes: 7 additions & 3 deletions
10
src/trufflesom/src/trufflesom/interpreter/nodes/nary/QuaternaryMsgExprNode.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,20 +1,24 @@ | ||
package trufflesom.interpreter.nodes.nary; | ||
|
||
import com.oracle.truffle.api.CompilerDirectives; | ||
import com.oracle.truffle.api.dsl.Bind; | ||
import com.oracle.truffle.api.dsl.Fallback; | ||
import com.oracle.truffle.api.frame.VirtualFrame; | ||
|
||
import com.oracle.truffle.api.nodes.Node; | ||
import trufflesom.vmobjects.SSymbol; | ||
|
||
|
||
public abstract class QuaternaryMsgExprNode extends QuaternaryExpressionNode { | ||
public abstract SSymbol getSelector(); | ||
|
||
@Fallback | ||
public final Object makeGenericSend(final VirtualFrame frame, | ||
final Object receiver, final Object arg1, final Object arg2, final Object arg3) { | ||
public static final Object makeGenericSend(final VirtualFrame frame, | ||
final Object receiver, final Object arg1, final Object arg2, final Object arg3, | ||
@Bind Node s) { | ||
CompilerDirectives.transferToInterpreterAndInvalidate(); | ||
return makeGenericSend(getSelector()).doPreEvaluated(frame, | ||
QuaternaryMsgExprNode self = (QuaternaryMsgExprNode) s; | ||
return self.makeGenericSend(self.getSelector()).doPreEvaluated(frame, | ||
new Object[] {receiver, arg1, arg2, arg3}); | ||
} | ||
} |
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
9 changes: 7 additions & 2 deletions
9
src/trufflesom/src/trufflesom/interpreter/nodes/nary/UnaryMsgExprNode.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,18 +1,23 @@ | ||
package trufflesom.interpreter.nodes.nary; | ||
|
||
import com.oracle.truffle.api.CompilerDirectives; | ||
import com.oracle.truffle.api.dsl.Bind; | ||
import com.oracle.truffle.api.dsl.Fallback; | ||
import com.oracle.truffle.api.frame.VirtualFrame; | ||
|
||
import com.oracle.truffle.api.nodes.Node; | ||
import trufflesom.vmobjects.SSymbol; | ||
|
||
|
||
public abstract class UnaryMsgExprNode extends UnaryExpressionNode { | ||
public abstract SSymbol getSelector(); | ||
|
||
@Fallback | ||
public final Object makeGenericSend(final VirtualFrame frame, final Object receiver) { | ||
public static final Object makeGenericSend(final VirtualFrame frame, final Object receiver, | ||
@Bind Node s) { | ||
CompilerDirectives.transferToInterpreterAndInvalidate(); | ||
return makeGenericSend(getSelector()).doPreEvaluated(frame, new Object[] {receiver}); | ||
UnaryMsgExprNode self = (UnaryMsgExprNode) s; | ||
return self.makeGenericSend(self.getSelector()).doPreEvaluated(frame, | ||
new Object[] {receiver}); | ||
} | ||
} |
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
Oops, something went wrong.