Home
last modified time | relevance | path

Searched refs:VTable (Results 1 – 14 of 14) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
Dvtable.cpp21 VTable::Tuple VTable::CreateTuple(const JSThread *thread, JSTaggedValue phc, in CreateTuple()
33 typeVal = JSTaggedValue(VTable::TypeKind::ACCESSOR); in CreateTuple()
35 typeVal = JSTaggedValue(VTable::TypeKind::FUNCTION); in CreateTuple()
47 return VTable::Tuple(vec); in CreateTuple()
50 VTable::Tuple VTable::GetTuple(const JSThread *thread, uint32_t tupleIdx) const in GetTuple()
60 void VTable::SetByIndex(const JSThread *thread, uint32_t idx, const VTable::Tuple &tuple) in SetByIndex()
70 void VTable::Trim(const JSThread *thread, uint32_t newLength) in Trim()
72 TaggedArray::Trim(thread, newLength * VTable::TUPLE_SIZE); in Trim()
75 int VTable::GetTupleIndexByName(JSTaggedValue name) const in GetTupleIndexByName()
87 JSTaggedValue nameVal = GetTupleItem(index, VTable::TupleItem::NAME); in GetTupleIndexByName()
[all …]
Dvtable.h22 class VTable : public TaggedArray {
46 friend class VTable; variable
57 CAST_CHECK(VTable, IsTaggedArray);
62 static JSHandle<VTable> Copy(const JSThread *thread, const JSHandle<VTable> &vtable);
82 void SetByIndex(const JSThread *thread, uint32_t idx, const VTable::Tuple &tuple);
Dsubtyping_operator.cpp66 VTable *eVtable = VTable::Cast(eIhc->GetVTable().GetTaggedObject()); in CheckSubtyping()
153 JSMutableHandle<VTable> eVTable(thread, JSTaggedValue::Undefined()); in GenVTable()
162 JSHandle<VTable> vtable = factory->NewVTable(finalLength); in GenVTable()
165 VTable::Tuple tuple = eVTable->GetTuple(thread, index); in GenVTable()
170 VTable::Tuple tuple = VTable::CreateTuple(thread, phcHandle.GetTaggedValue(), owner, index); in GenVTable()
171 JSTaggedValue nameVal = tuple.GetItem(VTable::TupleItem::NAME).GetTaggedValue(); in GenVTable()
214 JSHandle<VTable> vtable(thread, oldHClass->GetVTable()); in TryMaintainTSSubtyping()
248 JSHandle<VTable> vtable(thread, hclass->GetVTable()); in TryMaintainTSSubtypingOnPrototype()
Dsubtyping_operator-inl.h27 } else if constexpr(std::is_same_v<T, VTable>) { in GetElementByKey()
46 } else if constexpr(std::is_same_v<T, VTable>) { in IsLegalElement()
Djs_hclass.cpp943 JSHandle<VTable> vtable(thread, hclass->GetVTable()); in LookupPropertyInAotHClass()
947 uint32_t offset = static_cast<uint32_t>(entry * VTable::TUPLE_SIZE); in LookupPropertyInAotHClass()
1051 JSHandle<VTable> vtable(thread, oldHClass->GetVTable()); in CopyTSInheritInfo()
1052 JSHandle<VTable> copyVtable = VTable::Copy(thread, vtable); in CopyTSInheritInfo()
Dobject_factory.h178 class VTable; variable
676 JSHandle<VTable> NewVTable(uint32_t length, JSTaggedValue initVal = JSTaggedValue::Hole());
Ddump.cpp678 VTable::Cast(vtable.GetTaggedObject())->Dump(os); in DumpHClass()
732 VTable::Cast(obj)->Dump(os); in DumpObject()
1632 void VTable::Dump(std::ostream &os) const in Dump()
1640 JSTaggedValue name = GetTupleItem(i, VTable::TupleItem::NAME); in Dump()
1643 JSTaggedValue owner = GetTupleItem(i, VTable::TupleItem::OWNER); in Dump()
1646 JSTaggedValue offset = GetTupleItem(i, VTable::TupleItem::OFFSET); in Dump()
3952 VTable::Cast(obj)->DumpForSnapshot(vec); in DumpObject()
4778 void VTable::DumpForSnapshot(std::vector<Reference> &vec) const in DumpForSnapshot()
Djs_hclass.h1807 ACCESSORS(VTable, VTABLE_OFFSET, BIT_FIELD_OFFSET);
Dobject_factory.cpp4600 JSHandle<VTable> ObjectFactory::NewVTable(uint32_t length, JSTaggedValue initVal) in NewVTable()
4603 …size_t size = TaggedArray::ComputeSize(JSTaggedValue::TaggedTypeSize(), length * VTable::TUPLE_SIZ… in NewVTable()
4607 JSHandle<VTable> vtable(thread_, header); in NewVTable()
4608 vtable->InitializeWithSpecialValue(initVal, length * VTable::TUPLE_SIZE); in NewVTable()
/arkcompiler/runtime_core/static_core/runtime/include/
Dvtable_builder.h185 class VTable {
337 VTable<SearchBySignature, OverridePred> vtable_;
/arkcompiler/runtime_core/compiler/docs/
Dplt.md68 `SecondSlot` is filled with zero and after resolving it stores `VTable index` incremented by 1.
93 XX+32: ldr w16, [x16, #160] ; Load Method from VTable (compensating index+1, as VTable start o…
110 Having `Method pointer` it is easy to load `VTable index` value.
/arkcompiler/runtime_core/static_core/compiler/docs/
Dplt.md68 `SecondSlot` is filled with zero and after resolving it stores `VTable index` incremented by 1.
93 XX+32: ldr w16, [x16, #160] ; Load Method from VTable (compensating index+1, as VTable start o…
110 Having `Method pointer` it is easy to load `VTable index` value.
/arkcompiler/runtime_core/static_core/runtime/tests/
Dclass_linker_test.cpp628 TEST_F(ClassLinkerTest, VTable) in TEST_F() argument
/arkcompiler/ets_runtime/ecmascript/compiler/
Dtyped_hcr_lowering.cpp1596 GateRef itemOwner = builder_.LoadFromTaggedArray(vtable, VTable::TupleItem::OWNER + index); in LoadFromVTable()
1597 GateRef itemOffset = builder_.LoadFromTaggedArray(vtable, VTable::TupleItem::OFFSET + index); in LoadFromVTable()