| Index: src/isolate.cc
|
| diff --git a/src/isolate.cc b/src/isolate.cc
|
| index e8a9fe2061fec74da5649838d2eb566b933fa725..9b8bddad3d269d6223d614f96d95688276e2978a 100644
|
| --- a/src/isolate.cc
|
| +++ b/src/isolate.cc
|
| @@ -2883,6 +2883,14 @@ base::RandomNumberGenerator* Isolate::random_number_generator() {
|
| return random_number_generator_;
|
| }
|
|
|
| +int Isolate::GenerateIdentityHash(uint32_t mask) {
|
| + int hash;
|
| + int attempts = 0;
|
| + do {
|
| + hash = random_number_generator()->NextInt() & mask;
|
| + } while (hash == 0 && attempts++ < 30);
|
| + return hash != 0 ? hash : 1;
|
| +}
|
|
|
| Object* Isolate::FindCodeObject(Address a) {
|
| return inner_pointer_to_code_cache()->GcSafeFindCodeForInnerPointer(a);
|
|
|