Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(744)

Unified Diff: runtime/vm/hash_map_test.cc

Issue 11273111: Allow bound check elimination to eliminate checks when both array length and index boundaries are e… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address Florian's comments Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/hash_map.h ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/hash_map_test.cc
diff --git a/runtime/vm/hash_map_test.cc b/runtime/vm/hash_map_test.cc
index a5b4afef41b4efce9ba1dd34c90fb38ea3ace832..522ff7c57ddc18d740f9dc733197631ba127b5d2 100644
--- a/runtime/vm/hash_map_test.cc
+++ b/runtime/vm/hash_map_test.cc
@@ -19,7 +19,7 @@ class TestValue {
TEST_CASE(DirectChainedHashMap) {
- DirectChainedHashMap<TestValue*> map;
+ DirectChainedHashMap<PointerKeyValueTrait<TestValue> > map;
EXPECT(map.IsEmpty());
TestValue v1(0);
TestValue v2(1);
@@ -30,7 +30,7 @@ TEST_CASE(DirectChainedHashMap) {
EXPECT(map.Lookup(&v1) == &v1);
EXPECT(map.Lookup(&v2) == &v2);
EXPECT(map.Lookup(&v3) == &v1);
- DirectChainedHashMap<TestValue*> map2(map);
+ DirectChainedHashMap<PointerKeyValueTrait<TestValue> > map2(map);
EXPECT(map2.Lookup(&v1) == &v1);
EXPECT(map2.Lookup(&v2) == &v2);
EXPECT(map2.Lookup(&v3) == &v1);
« no previous file with comments | « runtime/vm/hash_map.h ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698