Skip to content

Commit

Permalink
[Truffle] More String-related boundary fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvdrum committed Nov 15, 2016
1 parent 7cd8a55 commit ce03fa4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Expand Up @@ -120,7 +120,6 @@ public static String decodeUTF8(Rope rope) {
return decode(UTF8, rope.getBytes(), 0, rope.byteLength());
}

@TruffleBoundary
public static String decodeUTF8(byte[] bytes, int offset, int byteLength) {
return decode(UTF8, bytes, offset, byteLength);
}
Expand Down Expand Up @@ -600,7 +599,7 @@ private static CodeRange commonCodeRange(CodeRange first, CodeRange second) {
return CR_VALID;
}

@TruffleBoundary
@TruffleBoundary(throwsControlFlowException = true)
public static int codePoint(RubyContext context, Rope rope, int start) {
byte[] bytes = rope.getBytes();
int p = start;
Expand Down
Expand Up @@ -69,8 +69,6 @@ public static DynamicObject createString(RubyContext context, Rope rope) {
return Layouts.STRING.createString(context.getCoreLibrary().getStringFactory(), rope);
}

// Since ByteList.toString does not decode properly
@TruffleBoundary
public static String getString(DynamicObject string) {
return RopeOperations.decodeRope(StringOperations.rope(string));
}
Expand Down

0 comments on commit ce03fa4

Please sign in to comment.