Lines Matching full:index
35 inline void GlobalEnvConstants::SetConstant(ConstantIndex index, JSTaggedValue value) in SetConstant() argument
37 DASSERT_PRINT(index >= ConstantIndex::CONSTATNT_BEGIN && index < ConstantIndex::CONSTATNT_END, in SetConstant()
38 "Root Index out of bound"); in SetConstant()
39 constants_[static_cast<int>(index)] = value; in SetConstant()
43 inline void GlobalEnvConstants::SetConstant(ConstantIndex index, JSHandle<T> value) in SetConstant() argument
45 DASSERT_PRINT(index >= ConstantIndex::CONSTATNT_BEGIN && index < ConstantIndex::CONSTATNT_END, in SetConstant()
46 "Root Index out of bound"); in SetConstant()
47 constants_[static_cast<int>(index)] = value.GetTaggedValue(); in SetConstant()
50 inline uintptr_t GlobalEnvConstants::GetGlobalConstantAddr(ConstantIndex index) const in GetGlobalConstantAddr() argument
52 return ToUintPtr(this) + sizeof(JSTaggedValue) * static_cast<uint32_t>(index); in GetGlobalConstantAddr()
57 #define DECL_GET_IMPL(Type, Name, Index, Desc) \ argument
60 return constants_[static_cast<int>(ConstantIndex::Index)]; \
65 &constants_[static_cast<int>(ConstantIndex::Index)])); \
70 * static_cast<int>(ConstantIndex::Index); \