Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 969d3b4191eb8c21ad1e05b4eb269918f62c8b6a..e40f02fc199a627e9b6a0e398d7c2891c602b93e 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -2650,12 +2650,11 @@ int DescriptorArray::Search(Name* name, int valid_descriptors) { |
return internal::Search<VALID_ENTRIES>(this, name, valid_descriptors, NULL); |
} |
- |
-int DescriptorArray::SearchWithCache(Name* name, Map* map) { |
+int DescriptorArray::SearchWithCache(Isolate* isolate, Name* name, Map* map) { |
int number_of_own_descriptors = map->NumberOfOwnDescriptors(); |
if (number_of_own_descriptors == 0) return kNotFound; |
- DescriptorLookupCache* cache = GetIsolate()->descriptor_lookup_cache(); |
+ DescriptorLookupCache* cache = isolate->descriptor_lookup_cache(); |
int number = cache->Lookup(map, name); |
if (number == DescriptorLookupCache::kAbsent) { |