Skip to content

Commit

Permalink
[Truffle] Do not add TruffleBoundary where it is not needed.
Browse files Browse the repository at this point in the history
* Also causes problems on head when the VirtualFrame is used.
  • Loading branch information
eregon committed Mar 9, 2015
1 parent 2063892 commit 765a3ef
Showing 1 changed file with 0 additions and 3 deletions.
Expand Up @@ -905,7 +905,6 @@ public RubyString encode(RubyString string, RubyString encoding, @SuppressWarnin
return getContext().toTruffle(jrubyTranscoded);
}

@TruffleBoundary
@Specialization
public RubyString encode(RubyString string, RubyString encoding, @SuppressWarnings("unused") RubyHash options) {

Expand All @@ -924,7 +923,6 @@ public RubyString encode(RubyString string, RubyEncoding encoding, @SuppressWarn
return getContext().toTruffle(jrubyTranscoded);
}

@TruffleBoundary
@Specialization(guards = { "!isRubyString(arguments[1])", "!isRubyEncoding(arguments[1])", "!isUndefinedPlaceholder(arguments[1])" })
public RubyString encode(VirtualFrame frame, RubyString string, Object encoding, UndefinedPlaceholder options) {

Expand All @@ -936,7 +934,6 @@ public RubyString encode(VirtualFrame frame, RubyString string, Object encoding,
return encode(string, toStrNode.executeRubyString(frame, encoding), options);
}

@TruffleBoundary
@Specialization
public RubyString encode(RubyString string, @SuppressWarnings("unused") UndefinedPlaceholder encoding, @SuppressWarnings("unused") UndefinedPlaceholder options) {

Expand Down

0 comments on commit 765a3ef

Please sign in to comment.