| Index: src/identity-map.h
|
| diff --git a/src/identity-map.h b/src/identity-map.h
|
| index 2c4a0f33991f48401ecb9668218a374333d6c5c9..de0aef5bd4524202f80fbed324c254528fd7dda1 100644
|
| --- a/src/identity-map.h
|
| +++ b/src/identity-map.h
|
| @@ -36,6 +36,7 @@ class IdentityMapBase {
|
|
|
| RawEntry GetEntry(Object* key);
|
| RawEntry FindEntry(Object* key);
|
| + void Clear();
|
|
|
| private:
|
| // Internal implementation should not be called directly by subclasses.
|
| @@ -85,6 +86,9 @@ class IdentityMap : public IdentityMapBase {
|
| // Set the value for the given key.
|
| void Set(Handle<Object> key, V v) { Set(*key, v); }
|
| void Set(Object* key, V v) { *(reinterpret_cast<V*>(GetEntry(key))) = v; }
|
| +
|
| + // Removes all elements from the map.
|
| + void Clear() { IdentityMapBase::Clear(); }
|
| };
|
| } // namespace internal
|
| } // namespace v8
|
|
|