Skip to content

Commit a3258d1

Browse files
qunaibitsteve-s
authored andcommitted
inlined condition profile
1 parent f2fa4a4 commit a3258d1

File tree

1 file changed

+2
-3
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/common

1 file changed

+2
-3
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/common/HashingStorage.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
import com.oracle.truffle.api.dsl.Specialization;
8686
import com.oracle.truffle.api.frame.VirtualFrame;
8787
import com.oracle.truffle.api.nodes.Node;
88-
import com.oracle.truffle.api.profiles.ConditionProfile;
8988
import com.oracle.truffle.api.profiles.InlinedConditionProfile;
9089

9190
public abstract class HashingStorage {
@@ -189,11 +188,11 @@ static HashingStorage updateArg(VirtualFrame frame, Object arg, PKeyword[] kwarg
189188
@Exclusive @Cached PyObjectGetItem getItemNode,
190189
@Cached SequenceNodes.LenNode seqLenNode,
191190
@Cached InlinedConditionProfile lengthTwoProfile,
192-
@Cached ConditionProfile hasKeyProfile,
191+
@Cached InlinedConditionProfile hasKeyProfile,
193192
@Exclusive @Cached IsBuiltinObjectProfile errorProfile,
194193
@Exclusive @Cached IsBuiltinObjectProfile isTypeErrorProfile) {
195194
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)) {
197196
HashingStorage curStorage = PDict.createNewStorage(0);
198197
// We don't need to pass self as the attribute object has it already.
199198
Object keysIterable = callKeysMethod.execute(frame, keyAttr, EMPTY_OBJECT_ARRAY, EMPTY_KEYWORDS);

0 commit comments

Comments
 (0)