|
85 | 85 | import com.oracle.truffle.api.dsl.Specialization;
|
86 | 86 | import com.oracle.truffle.api.frame.VirtualFrame;
|
87 | 87 | import com.oracle.truffle.api.nodes.Node;
|
88 |
| -import com.oracle.truffle.api.profiles.ConditionProfile; |
89 | 88 | import com.oracle.truffle.api.profiles.InlinedConditionProfile;
|
90 | 89 |
|
91 | 90 | public abstract class HashingStorage {
|
@@ -189,11 +188,11 @@ static HashingStorage updateArg(VirtualFrame frame, Object arg, PKeyword[] kwarg
|
189 | 188 | @Exclusive @Cached PyObjectGetItem getItemNode,
|
190 | 189 | @Cached SequenceNodes.LenNode seqLenNode,
|
191 | 190 | @Cached InlinedConditionProfile lengthTwoProfile,
|
192 |
| - @Cached ConditionProfile hasKeyProfile, |
| 191 | + @Cached InlinedConditionProfile hasKeyProfile, |
193 | 192 | @Exclusive @Cached IsBuiltinObjectProfile errorProfile,
|
194 | 193 | @Exclusive @Cached IsBuiltinObjectProfile isTypeErrorProfile) {
|
195 | 194 | Object keyAttr = lookupKeysAttributeNode.execute(frame, inliningTarget, arg, T_KEYS);
|
196 |
| - if (hasKeyProfile.profile(keyAttr != PNone.NO_VALUE)) { |
| 195 | + if (hasKeyProfile.profile(inliningTarget, keyAttr != PNone.NO_VALUE)) { |
197 | 196 | HashingStorage curStorage = PDict.createNewStorage(0);
|
198 | 197 | // We don't need to pass self as the attribute object has it already.
|
199 | 198 | Object keysIterable = callKeysMethod.execute(frame, keyAttr, EMPTY_OBJECT_ARRAY, EMPTY_KEYWORDS);
|
|
0 commit comments