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

Unified Diff: src/hydrogen.h

Issue 947683002: Reimplement Maps and Sets in JS (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Disable one more test Created 5 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/hydrogen.h
diff --git a/src/hydrogen.h b/src/hydrogen.h
index 8411b6ddf9e9f5967fae701c48118d42b4be6020..6c28b1dff64eb105058145fb43e99db324309b04 100644
--- a/src/hydrogen.h
+++ b/src/hydrogen.h
@@ -1847,7 +1847,11 @@ class HGraphBuilder {
AllocationSiteMode mode,
ElementsKind kind);
- HValue* BuildElementIndexHash(HValue* index);
+ HValue* BuildComputeIntegerHash(HValue* value, uint32_t seed);
+
+ HValue* BuildElementIndexHash(HValue* index) {
Sven Panne 2015/02/23 09:26:53 When we have %_HashSeed() (for isolate()->heap()->
adamk 2015/02/23 18:43:35 Yeah, I only reused this for expediency, there's n
adamk 2015/03/16 17:35:06 I've now written a JS version of this.
+ return BuildComputeIntegerHash(index, isolate()->heap()->HashSeed());
+ }
enum MapEmbedding { kEmbedMapsDirectly, kEmbedMapsViaWeakCells };

Powered by Google App Engine
This is Rietveld 408576698