Line data Source code
1 : // Copyright 2017 the V8 project authors. All rights reserved.
2 : // Use of this source code is governed by a BSD-style license that can be
3 : // found in the LICENSE file.
4 :
5 : #ifndef V8_OBJECTS_HASH_TABLE_INL_H_
6 : #define V8_OBJECTS_HASH_TABLE_INL_H_
7 :
8 : #include "src/objects/hash-table.h"
9 :
10 : namespace v8 {
11 : namespace internal {
12 :
13 : template <typename KeyT>
14 : bool BaseShape<KeyT>::IsLive(Isolate* isolate, Object* k) {
15 2709146118 : Heap* heap = isolate->heap();
16 2709146118 : return k != heap->the_hole_value() && k != heap->undefined_value();
17 : }
18 :
19 : } // namespace internal
20 : } // namespace v8
21 :
22 : #endif // V8_OBJECTS_HASH_TABLE_INL_H_
|