From 783c3ccf5cd7ff1adbca70185dcdae5cc4c2bb76 Mon Sep 17 00:00:00 2001 From: Nikolay Sverchkov Date: Mon, 25 Jan 2021 17:25:05 +0300 Subject: [PATCH] Update CHANGELOG; Fix linter --- CHANGELOG.md | 1 + .../org/truffleruby/language/methods/GetMethodObjectNode.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 17840b9599c0..0af2dae40479 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,6 +44,7 @@ Compatibility: * Support the `inherit` parameter for `Module#{private, protected, public}_method_defined?`. * Implement `Thread.pending_interrupt?` and `Thread#pending_interrupt?` (#2219). * Implement `rb_lastline_set` (#2170). +* Refinements take place at `Object#method` and `Module#instance_method` (#2004, @ssnickolay). Performance: diff --git a/src/main/java/org/truffleruby/language/methods/GetMethodObjectNode.java b/src/main/java/org/truffleruby/language/methods/GetMethodObjectNode.java index e4cdae335d4f..de9e98687aeb 100644 --- a/src/main/java/org/truffleruby/language/methods/GetMethodObjectNode.java +++ b/src/main/java/org/truffleruby/language/methods/GetMethodObjectNode.java @@ -60,7 +60,7 @@ protected int getCacheLimit() { "name.equals(cachedName)", "contextReference.get() == cachedContext" }, limit = "getCacheLimit()") - public RubyMethod doCached(Frame frame, Object self, Object name, + protected RubyMethod doCached(Frame frame, Object self, Object name, DispatchConfiguration dispatchConfig, Frame callerFrame, @Cached("self") Object cachedSelf, @@ -81,7 +81,7 @@ public RubyMethod doCached(Frame frame, Object self, Object name, @Specialization(replaces = "doCached") - public RubyMethod doGeneric(Frame frame, Object self, Object name, + protected RubyMethod doGeneric(Frame frame, Object self, Object name, DispatchConfiguration dispatchConfig, Frame callerFrame, @CachedContext(RubyLanguage.class) RubyContext context,