Skip to content
Snippets Groups Projects
Commit a1e478b0 authored by Lukas Stadler's avatar Lukas Stadler
Browse files

move value profile in ReadVariableNode to an earlier position

parent d98e19e4
Branches
No related tags found
No related merge requests found
......@@ -311,11 +311,11 @@ public final class ReadVariableNode extends RSourceSectionNode implements RSynta
@Override
public Object execute(VirtualFrame frame, Frame variableFrame) throws LayoutChangedException, FrameSlotTypeException {
Object value = profiledGetValue(seenValueKinds, frameProfile.profile(variableFrame), slot);
Object value = valueProfile.profile(profiledGetValue(seenValueKinds, frameProfile.profile(variableFrame), slot));
if (!checkType(frame, value, isNullProfile)) {
throw new LayoutChangedException();
}
return valueProfile.profile(value);
return value;
}
@Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment