|
39 | 39 | import org.truffleruby.core.regexp.TruffleRegexpNodesFactory.MatchNodeGen;
|
40 | 40 | import org.truffleruby.core.rope.Rope;
|
41 | 41 | import org.truffleruby.core.rope.RopeBuilder;
|
42 |
| -import org.truffleruby.core.rope.RopeNodes; |
43 | 42 | import org.truffleruby.core.rope.RopeOperations;
|
44 | 43 | import org.truffleruby.core.string.StringNodes;
|
45 | 44 | import org.truffleruby.core.string.StringNodes.StringAppendPrimitiveNode;
|
@@ -71,7 +70,6 @@ public static abstract class RegexpUnionNode extends CoreMethodArrayArgumentsNod
|
71 | 70 | @Child CallDispatchHeadNode copyNode = CallDispatchHeadNode.createPrivate();
|
72 | 71 | @Child private SameOrEqualNode sameOrEqualNode = SameOrEqualNode.create();
|
73 | 72 | @Child private StringNodes.MakeStringNode makeStringNode = StringNodes.MakeStringNode.create();
|
74 |
| - @Child private RopeNodes.AsciiOnlyNode asciiOnlyNode = RopeNodes.AsciiOnlyNode.create(); |
75 | 73 |
|
76 | 74 | @Specialization(guards = "argsMatch(frame, cachedArgs, args)", limit = "getDefaultCacheLimit()")
|
77 | 75 | protected Object executeFastUnion(VirtualFrame frame, DynamicObject str, DynamicObject sep, Object[] args,
|
@@ -101,8 +99,7 @@ public DynamicObject buildUnion(DynamicObject str, DynamicObject sep, Object[] a
|
101 | 99 | public DynamicObject string(Object obj) {
|
102 | 100 | if (RubyGuards.isRubyString(obj)) {
|
103 | 101 | final Rope rope = StringOperations.rope((DynamicObject) obj);
|
104 |
| - final boolean isAsciiOnly = asciiOnlyNode.execute(rope); |
105 |
| - return makeStringNode.fromRope(ClassicRegexp.quote19(rope, isAsciiOnly)); |
| 102 | + return makeStringNode.fromRope(ClassicRegexp.quote19(rope)); |
106 | 103 | } else {
|
107 | 104 | return toSNode.execute((DynamicObject) obj);
|
108 | 105 | }
|
|
0 commit comments