Index: src/scopeinfo.cc |
diff --git a/src/scopeinfo.cc b/src/scopeinfo.cc |
index 3d09d3a2ab76455059b97a17111ba213153ba17f..ba138f2addaa5a8cd3e54e4c684c2718a0e50c49 100644 |
--- a/src/scopeinfo.cc |
+++ b/src/scopeinfo.cc |
@@ -445,7 +445,8 @@ void ContextSlotCache::Update(Object* data, |
int slot_index) { |
String* internalized_name; |
ASSERT(slot_index > kNotFound); |
- if (HEAP->InternalizeStringIfExists(name, &internalized_name)) { |
+ if (name->GetIsolate()->heap()->InternalizeStringIfExists( |
+ name, &internalized_name)) { |
int index = Hash(data, internalized_name); |
Key& key = keys_[index]; |
key.data = data; |
@@ -472,7 +473,8 @@ void ContextSlotCache::ValidateEntry(Object* data, |
InitializationFlag init_flag, |
int slot_index) { |
String* internalized_name; |
- if (HEAP->InternalizeStringIfExists(name, &internalized_name)) { |
+ if (name->GetIsolate()->heap()->InternalizeStringIfExists( |
+ name, &internalized_name)) { |
int index = Hash(data, name); |
Key& key = keys_[index]; |
ASSERT(key.data == data); |