Lines Matching defs:ConstantIndex
694 // ConstantIndex used for explicit visit each constant.
695 enum class ConstantIndex : size_t {
758 void SetConstant(ConstantIndex index, JSTaggedValue value);
761 void SetConstant(ConstantIndex index, JSHandle<T> value);
763 uintptr_t GetGlobalConstantAddr(ConstantIndex index) const;
792 ASSERT(static_cast<ConstantIndex>(index) < ConstantIndex::CONSTANT_COUNT);
798 return static_cast<size_t>(ConstantIndex::CONSTANT_COUNT);
803 return static_cast<size_t>(ConstantIndex::EMPTY_ARRAY_OBJECT_INDEX);
808 return static_cast<size_t>(ConstantIndex::EMPTY_MUTANT_ARRAY_OBJECT_INDEX);
813 return static_cast<size_t>(ConstantIndex::JSAPI_CONTAINERS_BEGIN);
818 return static_cast<size_t>(ConstantIndex::JSAPI_CONTAINERS_END);
823 return static_cast<size_t>(ConstantIndex::LINE_STRING_CLASS_INDEX);
828 return static_cast<size_t>(ConstantIndex::CONSTANT_STRING_CLASS_INDEX);
833 size_t specialBegin = static_cast<size_t>(ConstantIndex::UNDEFINED_INDEX);
834 size_t specialEnd = static_cast<size_t>(ConstantIndex::NULL_INDEX);
841 JSTaggedValue::TaggedTypeSize() * static_cast<size_t>(ConstantIndex::CONSTANT_COUNT);
843 JSTaggedValue::TaggedTypeSize() * static_cast<size_t>(ConstantIndex::CONSTANT_COUNT);
856 JSTaggedValue constants_[static_cast<int>(ConstantIndex::CONSTANT_COUNT)]; // NOLINT(modernize-avoid-c-arrays)