File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
src/main/java/org/truffleruby/core/string Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 9
9
*/
10
10
package org .truffleruby .core .string ;
11
11
12
+ import com .oracle .truffle .api .CompilerDirectives .TruffleBoundary ;
12
13
import org .jcodings .Encoding ;
13
14
import org .truffleruby .collections .WeakValueCache ;
14
15
import org .truffleruby .core .rope .CodeRange ;
@@ -25,10 +26,12 @@ public FrozenStringLiterals(RopeCache ropeCache) {
25
26
this .ropeCache = ropeCache ;
26
27
}
27
28
29
+ @ TruffleBoundary
28
30
public ImmutableRubyString getFrozenStringLiteral (Rope rope ) {
29
31
return getFrozenStringLiteral (rope .getBytes (), rope .getEncoding (), rope .getCodeRange ());
30
32
}
31
33
34
+ @ TruffleBoundary
32
35
public ImmutableRubyString getFrozenStringLiteral (byte [] bytes , Encoding encoding , CodeRange codeRange ) {
33
36
// Ensure all ImmutableRubyString have a Rope from the RopeCache
34
37
final LeafRope cachedRope = ropeCache .getRope (bytes , encoding , codeRange );
You can’t perform that action at this time.
0 commit comments