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

Unified Diff: src/identity-map.h

Issue 1651133002: [interpreter] Move temporary register allocator into own file. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Incorporate review comments from rmcilroy. Created 4 years, 11 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 | « no previous file | src/identity-map.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | src/identity-map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698