1 // Copyright 2018 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_HEAP_OBJECT_INL_H_ 6 #define V8_OBJECTS_HEAP_OBJECT_INL_H_ 7 8 #include "src/objects/heap-object.h" 9 10 // Has to be the last include (doesn't have include guards): 11 #include "src/objects/object-macros.h" 12 13 namespace v8 { 14 namespace internal { 15 HeapObject(Address ptr,AllowInlineSmiStorage allow_smi)16HeapObject::HeapObject(Address ptr, AllowInlineSmiStorage allow_smi) 17 : Object(ptr) { 18 SLOW_DCHECK( 19 (allow_smi == AllowInlineSmiStorage::kAllowBeingASmi && IsSmi()) || 20 IsHeapObject()); 21 } 22 23 } // namespace internal 24 } // namespace v8 25 26 #include "src/objects/object-macros-undef.h" 27 28 #endif // V8_OBJECTS_HEAP_OBJECT_INL_H_ 29