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

Unified Diff: src/hydrogen.h

Issue 782073002: Optimize add/set/delete operations for string keys in Maps and Sets (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed patch Created 6 years 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 | « src/collection.js ('k') | src/hydrogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.h
diff --git a/src/hydrogen.h b/src/hydrogen.h
index ebd9e8b015d165c63cb21fcc8e69c530b93e3078..f24f1729e8cdb96ea90bbf077d9503d2cc47ab7b 100644
--- a/src/hydrogen.h
+++ b/src/hydrogen.h
@@ -2417,14 +2417,26 @@ class HOptimizedGraphBuilder : public HGraphBuilder, public AstVisitor {
ElementsKind fixed_elements_kind,
HValue* byte_length, HValue* length);
+ // TODO(adamk): Move all OrderedHashTable functions to their own class.
+ HValue* BuildOrderedHashTableHashToBucket(HValue* hash, HValue* num_buckets);
+ template <typename CollectionType>
+ HValue* BuildOrderedHashTableHashToEntry(HValue* table, HValue* hash,
+ HValue* num_buckets);
+ template <typename CollectionType>
+ HValue* BuildOrderedHashTableEntryToIndex(HValue* entry, HValue* num_buckets);
template <typename CollectionType>
HValue* BuildOrderedHashTableFindEntry(HValue* table, HValue* key,
HValue* hash);
-
+ template <typename CollectionType>
+ HValue* BuildOrderedHashTableAddEntry(HValue* table, HValue* key,
+ HValue* hash,
+ HIfContinuation* join_continuation);
+ template <typename CollectionType>
+ void BuildJSCollectionDelete(CallRuntime* call,
+ const Runtime::Function* c_function);
template <typename CollectionType>
void BuildJSCollectionHas(CallRuntime* call,
const Runtime::Function* c_function);
-
HValue* BuildStringHashLoadIfIsStringAndHashComputed(
HValue* object, HIfContinuation* continuation);
« no previous file with comments | « src/collection.js ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698