Skip to content

Commit

Permalink
[Truffle] Fix contains in Hash#[] getPackedArrayByIdentity().
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Oct 20, 2016
1 parent 2f793cc commit 4110f35
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -317,8 +317,7 @@ public Object getPackedArray(VirtualFrame frame, DynamicObject hash, Object key,
}

@ExplodeLoop
@Specialization(guards = { "isPackedHash(hash)", "isCompareByIdentity(hash)" },
contains = "getConstantIndexPackedArray")
@Specialization(guards = {"isPackedHash(hash)", "isCompareByIdentity(hash)"}, contains = "getConstantIndexPackedArrayByIdentity")
public Object getPackedArrayByIdentity(VirtualFrame frame, DynamicObject hash, Object key,
@Cached("create()") BranchProfile notInHashProfile,
@Cached("create()") BranchProfile useDefaultProfile) {
Expand Down

0 comments on commit 4110f35

Please sign in to comment.