Chromium Code Reviews| Index: src/objects-inl.h |
| diff --git a/src/objects-inl.h b/src/objects-inl.h |
| index 25400f63b0d4665adab313ed7a50b6b62de8e440..0167f63408caaba7311799cbbe11b0ad7947feae 100644 |
| --- a/src/objects-inl.h |
| +++ b/src/objects-inl.h |
| @@ -2998,6 +2998,9 @@ int HashTableBase::ComputeCapacity(int at_least_space_for) { |
| return Max(capacity, kMinCapacity); |
| } |
| +bool HashTableBase::IsKey(Heap* heap, Object* k) { |
| + return k != heap->the_hole_value() && k != heap->undefined_value(); |
| +} |
| bool HashTableBase::IsKey(Object* k) { |
|
Yang
2016/04/01 13:29:53
do we still need this one?
|
| return !k->IsTheHole() && !k->IsUndefined(); |