Skip to content

Commit dbe6173

Browse files
committed
Removing prefix for FrameSlotAndDepth
1 parent a8c96f7 commit dbe6173

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/org/truffleruby/core/binding/BindingNodes.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
import org.truffleruby.language.arguments.RubyArguments;
4343
import org.truffleruby.language.control.RaiseException;
4444
import org.truffleruby.language.locals.FindDeclarationVariableNodes;
45+
import org.truffleruby.language.locals.FindDeclarationVariableNodes.FindAndReadDeclarationVariableNode;
4546
import org.truffleruby.language.locals.FindDeclarationVariableNodes.FrameSlotAndDepth;
4647
import org.truffleruby.language.locals.FrameDescriptorNamesIterator;
4748

@@ -304,7 +305,7 @@ public abstract static class LocalVariableGetNode extends RubyBaseNode {
304305

305306
@Specialization(guards = "!isHiddenVariable(name)")
306307
protected Object localVariableGet(RubyBinding binding, String name,
307-
@Cached FindDeclarationVariableNodes.FindAndReadDeclarationVariableNode readNode) {
308+
@Cached FindAndReadDeclarationVariableNode readNode) {
308309
MaterializedFrame frame = binding.getFrame();
309310
Object result = readNode.execute(frame, name, null);
310311
if (result == null) {
@@ -378,7 +379,7 @@ protected Object localVariableSetCached(RubyBinding binding, String name, Object
378379
protected Object localVariableSetNewCached(RubyBinding binding, String name, Object value,
379380
@Cached("name") String cachedName,
380381
@Cached("getFrameDescriptor(binding)") FrameDescriptor cachedFrameDescriptor,
381-
@Cached("findFrameSlotOrNull(name, binding.getFrame())") FindDeclarationVariableNodes.FrameSlotAndDepth cachedFrameSlot,
382+
@Cached("findFrameSlotOrNull(name, binding.getFrame())") FrameSlotAndDepth cachedFrameSlot,
382383
@Cached("newFrameDescriptor(cachedFrameDescriptor, name)") FrameDescriptor newDescriptor,
383384
@Cached("createWriteNode(NEW_VAR_INDEX)") WriteFrameSlotNode writeLocalVariableNode) {
384385
final MaterializedFrame frame = newFrame(binding, newDescriptor);
@@ -392,8 +393,7 @@ protected Object localVariableSetNewCached(RubyBinding binding, String name, Obj
392393
replaces = { "localVariableSetCached", "localVariableSetNewCached" })
393394
protected Object localVariableSetUncached(RubyBinding binding, String name, Object value) {
394395
MaterializedFrame frame = binding.getFrame();
395-
final FindDeclarationVariableNodes.FrameSlotAndDepth frameSlot = FindDeclarationVariableNodes
396-
.findFrameSlotOrNull(name, frame);
396+
final FrameSlotAndDepth frameSlot = FindDeclarationVariableNodes.findFrameSlotOrNull(name, frame);
397397
final int slot;
398398
if (frameSlot != null) {
399399
frame = RubyArguments.getDeclarationFrame(frame, frameSlot.depth);

0 commit comments

Comments
 (0)