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

Unified Diff: src/isolate.h

Issue 2395233003: [modules] Give Module an internal [hash] field (Closed)
Patch Set: Created 4 years, 2 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 | « src/heap/heap.cc ('k') | src/isolate.cc » ('j') | src/objects.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.h
diff --git a/src/isolate.h b/src/isolate.h
index 9fdff5054902fd22853065f5db31a61d1c0dfef2..860f703e13b126aa6e3b54517cc3e676d2e7051a 100644
--- a/src/isolate.h
+++ b/src/isolate.h
@@ -1069,6 +1069,10 @@ class Isolate {
base::RandomNumberGenerator* random_number_generator();
+ // Generates a random number that is non-zero when masked
+ // with the provided mask.
+ int GenerateIdentityHash(uint32_t mask);
+
// Given an address occupied by a live code object, return that object.
Object* FindCodeObject(Address a);
« no previous file with comments | « src/heap/heap.cc ('k') | src/isolate.cc » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698