Skip to content


Browse files Browse the repository at this point in the history
[Truffle] Use a more exposed call method to avoid unnecessary boxing.
  • Loading branch information
nirvdrum committed Mar 3, 2015
1 parent 612a27c commit c2bda87
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -470,7 +470,7 @@ public Object slice(VirtualFrame frame, RubyString string, RubyString matchStr,
includeNode = insert(DispatchHeadNodeFactory.createMethodCall(getContext()));

Boolean result = (Boolean), string, "include?", null, matchStr);
boolean result = includeNode.callBoolean(frame, string, "include?", null, matchStr);

if (result) {
if (dupNode == null) {
Expand Down

0 comments on commit c2bda87

Please sign in to comment.