|
9 | 9 | */
|
10 | 10 | package org.truffleruby.core.tracepoint;
|
11 | 11 |
|
12 |
| -import org.jcodings.specific.UTF8Encoding; |
13 | 12 | import org.truffleruby.RubyContext;
|
14 | 13 | import org.truffleruby.RubyLanguage;
|
15 | 14 | import org.truffleruby.builtins.CoreMethod;
|
|
25 | 24 | import org.truffleruby.core.kernel.TraceManager;
|
26 | 25 | import org.truffleruby.core.klass.RubyClass;
|
27 | 26 | import org.truffleruby.core.proc.RubyProc;
|
28 |
| -import org.truffleruby.core.rope.CodeRange; |
29 | 27 | import org.truffleruby.core.string.RubyString;
|
30 |
| -import org.truffleruby.core.string.StringNodes.MakeStringNode; |
31 | 28 | import org.truffleruby.core.symbol.RubySymbol;
|
32 | 29 | import org.truffleruby.core.thread.GetCurrentRubyThreadNode;
|
33 | 30 | import org.truffleruby.language.Nil;
|
@@ -218,11 +215,10 @@ protected RubyBinding binding(RubyTracePoint tracePoint) {
|
218 | 215 | @CoreMethod(names = "method_id")
|
219 | 216 | public abstract static class MethodIDNode extends TracePointCoreNode {
|
220 | 217 | @Specialization
|
221 |
| - protected RubyString methodId(RubyTracePoint tracePoint, |
222 |
| - @Cached MakeStringNode makeStringNode) { |
| 218 | + protected RubySymbol methodId(RubyTracePoint tracePoint) { |
223 | 219 | final RubyBinding binding = getTracePointState().binding;
|
224 | 220 | final InternalMethod method = RubyArguments.getMethod(binding.getFrame());
|
225 |
| - return makeStringNode.executeMake(method.getName(), UTF8Encoding.INSTANCE, CodeRange.CR_UNKNOWN); |
| 221 | + return getSymbol(method.getName()); |
226 | 222 | }
|
227 | 223 | }
|
228 | 224 |
|
|
0 commit comments