1// Copyright 2019 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_PRIMITIVE_HEAP_OBJECT_H_ 6#define V8_OBJECTS_PRIMITIVE_HEAP_OBJECT_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 13namespace v8 { 14namespace internal { 15 16#include "torque-generated/src/objects/primitive-heap-object-tq.inc" 17 18// An abstract superclass for classes representing JavaScript primitive values 19// other than Smi. It doesn't carry any functionality but allows primitive 20// classes to be identified in the type system. 21class PrimitiveHeapObject 22 : public TorqueGeneratedPrimitiveHeapObject<PrimitiveHeapObject, 23 HeapObject> { 24 public: 25 STATIC_ASSERT(kHeaderSize == HeapObject::kHeaderSize); 26 TQ_OBJECT_CONSTRUCTORS(PrimitiveHeapObject) 27}; 28 29} // namespace internal 30} // namespace v8 31 32#include "src/objects/object-macros-undef.h" 33 34#endif // V8_OBJECTS_PRIMITIVE_HEAP_OBJECT_H_ 35