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

Unified Diff: src/code-stub-assembler.h

Issue 2688573003: [cleanup] CSA: add helpers for accessing details/value via key_index (Closed)
Patch Set: make linker happy Created 3 years, 10 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
Index: src/code-stub-assembler.h
diff --git a/src/code-stub-assembler.h b/src/code-stub-assembler.h
index edc239352b151458f756488065b189da5c43182d..937196fe02849632fd3529e9a7abeb58ddbeb8b2 100644
--- a/src/code-stub-assembler.h
+++ b/src/code-stub-assembler.h
@@ -885,6 +885,22 @@ class V8_EXPORT_PRIVATE CodeStubAssembler : public compiler::CodeAssembler {
Node* EntryToIndex(Node* entry) {
return EntryToIndex<Dictionary>(entry, Dictionary::kEntryKeyIndex);
}
+ // Loads the details for the entry with the given key_index.
+ // Returns an untagged int32.
+ template <class ContainerType>
+ Node* LoadDetailsForKeyIndex(Node* container, Node* key_index);
+ // Loads the value for the entry with the given key_index.
+ // Returns a tagged value.
+ template <class ContainerType>
+ Node* LoadValueForKeyIndex(Node* container, Node* key_index);
+ // Stores the details for the entry with the given key_index.
+ // |details| must be a Smi.
+ template <class ContainerType>
+ void StoreDetailsForKeyIndex(Node* container, Node* key_index, Node* details);
+ // Stores the value for the entry with the given key_index.
+ template <class ContainerType>
+ void StoreValueForKeyIndex(Node* container, Node* key_index, Node* value);
+
// Calculate a valid size for the a hash table.
Node* HashTableComputeCapacity(Node* at_least_space_for);

Powered by Google App Engine
This is Rietveld 408576698