| Index: src/runtime/runtime-collections.cc
|
| diff --git a/src/runtime/runtime-collections.cc b/src/runtime/runtime-collections.cc
|
| index 65690dfe778b3eba93cf7e1ab352c604066ba948..e6efbf82e1c153349b9af5e4209a09f5320c2e3a 100644
|
| --- a/src/runtime/runtime-collections.cc
|
| +++ b/src/runtime/runtime-collections.cc
|
| @@ -291,7 +291,8 @@ RUNTIME_FUNCTION(Runtime_WeakCollectionGet) {
|
| ObjectHashTable::cast(weak_collection->table()));
|
| RUNTIME_ASSERT(table->IsKey(*key));
|
| Handle<Object> lookup(table->Lookup(key, hash), isolate);
|
| - return lookup->IsTheHole() ? isolate->heap()->undefined_value() : *lookup;
|
| + return lookup->IsTheHole(isolate) ? isolate->heap()->undefined_value()
|
| + : *lookup;
|
| }
|
|
|
|
|
| @@ -306,7 +307,7 @@ RUNTIME_FUNCTION(Runtime_WeakCollectionHas) {
|
| ObjectHashTable::cast(weak_collection->table()));
|
| RUNTIME_ASSERT(table->IsKey(*key));
|
| Handle<Object> lookup(table->Lookup(key, hash), isolate);
|
| - return isolate->heap()->ToBoolean(!lookup->IsTheHole());
|
| + return isolate->heap()->ToBoolean(!lookup->IsTheHole(isolate));
|
| }
|
|
|
|
|
|
|