Index: src/debug.h |
diff --git a/src/debug.h b/src/debug.h |
index 8a793a74facacb6e8ff142ea169e1ba63915d78a..3761fde55b86348f06968f37f8bf8e7ea25d97ed 100644 |
--- a/src/debug.h |
+++ b/src/debug.h |
@@ -175,7 +175,9 @@ class BreakLocationIterator { |
class ScriptCache : private HashMap { |
public: |
explicit ScriptCache(Isolate* isolate) |
- : HashMap(ScriptMatch), isolate_(isolate), collected_scripts_(10) {} |
+ : HashMap(HashMap::PointersMatch), |
+ isolate_(isolate), |
+ collected_scripts_(10) {} |
virtual ~ScriptCache() { Clear(); } |
// Add script to the cache. |
@@ -193,9 +195,6 @@ class ScriptCache : private HashMap { |
return ComputeIntegerHash(key, v8::internal::kZeroHashSeed); |
} |
- // Scripts match if their keys (script id) match. |
- static bool ScriptMatch(void* key1, void* key2) { return key1 == key2; } |
- |
// Clear the cache releasing all the weak handles. |
void Clear(); |