Index: src/heap/heap.h |
diff --git a/src/heap/heap.h b/src/heap/heap.h |
index 162849414bb449d08f63ea44f3f1fb2f3ec94604..728637873255c2710cf17398b6d0f8e970113f91 100644 |
--- a/src/heap/heap.h |
+++ b/src/heap/heap.h |
@@ -2629,25 +2629,10 @@ class DescriptorLookupCache { |
public: |
// Lookup descriptor index for (map, name). |
// If absent, kAbsent is returned. |
- int Lookup(Map* source, Name* name) { |
- if (!name->IsUniqueName()) return kAbsent; |
- int index = Hash(source, name); |
- Key& key = keys_[index]; |
- if ((key.source == source) && (key.name == name)) return results_[index]; |
- return kAbsent; |
- } |
+ inline int Lookup(Map* source, Name* name); |
// Update an element in the cache. |
- void Update(Map* source, Name* name, int result) { |
- DCHECK(result != kAbsent); |
- if (name->IsUniqueName()) { |
- int index = Hash(source, name); |
- Key& key = keys_[index]; |
- key.source = source; |
- key.name = name; |
- results_[index] = result; |
- } |
- } |
+ inline void Update(Map* source, Name* name, int result); |
// Clear the cache. |
void Clear(); |