|
55 | 55 | import java.util.stream.Collectors;
|
56 | 56 | import java.util.stream.StreamSupport;
|
57 | 57 |
|
58 |
| -import com.oracle.truffle.api.profiles.BranchProfile; |
59 |
| -import com.oracle.truffle.api.profiles.ConditionProfile; |
60 | 58 | import org.junit.Assert;
|
61 | 59 | import org.junit.Test;
|
62 | 60 |
|
63 | 61 | import com.oracle.graal.python.builtins.objects.common.HashingStorageLibrary.ForEachNode;
|
64 | 62 | import com.oracle.graal.python.builtins.objects.common.ObjectHashMap;
|
65 |
| -import com.oracle.graal.python.builtins.objects.common.ObjectHashMap.GetProfiles; |
66 | 63 | import com.oracle.graal.python.builtins.objects.common.ObjectHashMap.MapCursor;
|
67 |
| -import com.oracle.graal.python.builtins.objects.common.ObjectHashMap.PutProfiles; |
68 |
| -import com.oracle.graal.python.builtins.objects.common.ObjectHashMap.RemoveProfiles; |
69 | 64 | import com.oracle.graal.python.lib.PyObjectHashNode;
|
70 | 65 | import com.oracle.graal.python.lib.PyObjectRichCompareBool;
|
71 | 66 | import com.oracle.truffle.api.frame.Frame;
|
72 | 67 | import com.oracle.truffle.api.interop.TruffleObject;
|
| 68 | +import com.oracle.truffle.api.profiles.BranchProfile; |
| 69 | +import com.oracle.truffle.api.profiles.ConditionProfile; |
73 | 70 | import com.oracle.truffle.api.profiles.LoopConditionProfile;
|
74 | 71 |
|
75 | 72 | public class ObjectHashMapTests {
|
@@ -315,25 +312,25 @@ public static Object newValue() {
|
315 | 312 | private static long getKeyHash(Object key) {
|
316 | 313 | return key instanceof Long ? PyObjectHashNode.hash((Long) key) : ((DictKey) key).hash;
|
317 | 314 | }
|
318 |
| - |
| 315 | + |
319 | 316 | private static Object get(ObjectHashMap map, Object key, long hash) {
|
320 |
| - return ObjectHashMap.GetNode.doGet(null, map, key, hash,// |
321 |
| - ConditionProfile.getUncached(), ConditionProfile.getUncached(), ConditionProfile.getUncached(),// |
322 |
| - ConditionProfile.getUncached(), ConditionProfile.getUncached(), ConditionProfile.getUncached(),// |
323 |
| - new EqNodeStub()); |
| 317 | + return ObjectHashMap.GetNode.doGet(null, map, key, hash, |
| 318 | + ConditionProfile.getUncached(), ConditionProfile.getUncached(), ConditionProfile.getUncached(), |
| 319 | + ConditionProfile.getUncached(), ConditionProfile.getUncached(), ConditionProfile.getUncached(), |
| 320 | + new EqNodeStub()); |
324 | 321 | }
|
325 | 322 |
|
326 | 323 | private static void remove(ObjectHashMap map, Object key, long hash) {
|
327 |
| - ObjectHashMap.RemoveNode.doRemove(null, map, key, hash,// |
328 |
| - ConditionProfile.getUncached(), ConditionProfile.getUncached(), ConditionProfile.getUncached(),// |
329 |
| - ConditionProfile.getUncached(), BranchProfile.getUncached(), ConditionProfile.getUncached(),// |
330 |
| - new EqNodeStub()); |
| 324 | + ObjectHashMap.RemoveNode.doRemove(null, map, key, hash, |
| 325 | + ConditionProfile.getUncached(), ConditionProfile.getUncached(), ConditionProfile.getUncached(), |
| 326 | + ConditionProfile.getUncached(), BranchProfile.getUncached(), ConditionProfile.getUncached(), |
| 327 | + new EqNodeStub()); |
331 | 328 | }
|
332 | 329 |
|
333 | 330 | private static void put(ObjectHashMap map, Object key, long hash, Object value) {
|
334 |
| - ObjectHashMap.PutNode.doPut(null, map, key, hash, value,// |
335 |
| - ConditionProfile.getUncached(), ConditionProfile.getUncached(), ConditionProfile.getUncached(),// |
336 |
| - ConditionProfile.getUncached(), BranchProfile.getUncached(), BranchProfile.getUncached(),// |
337 |
| - ConditionProfile.getUncached(), new EqNodeStub()); |
| 331 | + ObjectHashMap.PutNode.doPut(null, map, key, hash, value, |
| 332 | + ConditionProfile.getUncached(), ConditionProfile.getUncached(), ConditionProfile.getUncached(), |
| 333 | + ConditionProfile.getUncached(), BranchProfile.getUncached(), BranchProfile.getUncached(), |
| 334 | + ConditionProfile.getUncached(), new EqNodeStub()); |
338 | 335 | }
|
339 | 336 | }
|
0 commit comments