Skip to content

Commit

Permalink
[Truffle] Removed boundary that caused PE tests to fail.
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvdrum committed Nov 17, 2016
1 parent d24df61 commit 4f8db64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test/truffle/compiler/pe/core/string_pe.rb
Expand Up @@ -8,9 +8,9 @@

simple_string = 'test'

tagged example "Truffle::Ropes.create_simple_string.length", simple_string.length
tagged example "Truffle::Ropes.create_simple_string.getbyte(0)", simple_string.getbyte(0)
tagged example "Truffle::Ropes.create_simple_string.ord", simple_string.ord
example "Truffle::Ropes.create_simple_string.length", simple_string.length
example "Truffle::Ropes.create_simple_string.getbyte(0)", simple_string.getbyte(0)
example "Truffle::Ropes.create_simple_string.ord", simple_string.ord

example "'abc'.length", 3
example "'こにちわ'.length", 4
Expand Down
Expand Up @@ -56,7 +56,6 @@ public class RopeOperations {

private static final ConcurrentHashMap<Encoding, Charset> encodingToCharsetMap = new ConcurrentHashMap<>();

@TruffleBoundary
public static LeafRope create(byte[] bytes, Encoding encoding, CodeRange codeRange) {
if (bytes.length == 1) {
final int index = bytes[0] & 0xff;
Expand Down

0 comments on commit 4f8db64

Please sign in to comment.