Home
last modified time | relevance | path

Searched refs:offset (Results 1 - 25 of 526) sorted by relevance

12345678910>>...22

/arkcompiler/ets_runtime/ecmascript/regexp/
H A Dregexp_opcode.cpp131 uint32_t SaveStartOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const in DumpOpCode()
133 out << offset << ":\t" in DumpOpCode()
134 << "save_start\t" << buf.GetU8(offset + 1) << std::endl; in DumpOpCode()
135 return offset + GetSize(); in DumpOpCode()
146 uint32_t SaveEndOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const in DumpOpCode()
148 out << offset << ":\t" in DumpOpCode()
149 << "save_end\t" << buf.GetU8(offset + 1) << std::endl; in DumpOpCode()
150 return offset + GetSize(); in DumpOpCode()
161 uint32_t CharOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const in DumpOpCode()
163 out << offset << " in DumpOpCode()
189 UpdateOpPara(DynChunk *buf, uint32_t offset, uint32_t para) const UpdateOpPara() argument
201 InsertOpCode(DynChunk *buf, uint32_t offset, uint32_t para) const InsertOpCode() argument
223 InsertOpCode(DynChunk *buf, uint32_t offset, uint32_t para) const InsertOpCode() argument
336 InsertOpCode(DynChunk *buf, uint32_t offset, uint32_t start, uint32_t end) const InsertOpCode() argument
469 out << offset << ":\\t" DumpOpCode() local
496 out << offset << ":\\t" DumpOpCode() local
523 out << offset << ":\\t" DumpOpCode() local
537 InsertOpCode(DynChunk *buf, uint32_t offset, uint32_t para) const InsertOpCode() argument
552 InsertOpCode(DynChunk *buf, uint32_t offset, uint32_t para) const InsertOpCode() argument
[all...]
/arkcompiler/runtime_core/static_core/runtime/regexp/ecmascript/
H A Dregexp_opcode.cpp125 uint32_t SaveStartOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const in DumpOpCode()
127 out << offset << ":\t" in DumpOpCode()
128 << "save_start\t" << buf.GetU8(offset + 1) << std::endl; in DumpOpCode()
129 return offset + GetSize(); in DumpOpCode()
140 uint32_t SaveEndOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const in DumpOpCode()
142 out << offset << ":\t" in DumpOpCode()
143 << "save_end\t" << buf.GetU8(offset + 1) << std::endl; in DumpOpCode()
144 return offset + GetSize(); in DumpOpCode()
155 uint32_t CharOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const in DumpOpCode()
157 out << offset << " in DumpOpCode()
183 UpdateOpPara(DynChunk *buf, uint32_t offset, uint32_t para) const UpdateOpPara() argument
195 InsertOpCode(DynChunk *buf, uint32_t offset, uint32_t para) const InsertOpCode() argument
210 InsertOpCode(DynChunk *buf, uint32_t offset, uint32_t para) const InsertOpCode() argument
316 InsertOpCode(DynChunk *buf, uint32_t offset, uint32_t start, uint32_t end) const InsertOpCode() argument
449 out << offset << ":\\t" DumpOpCode() local
476 out << offset << ":\\t" DumpOpCode() local
501 InsertOpCode(DynChunk *buf, uint32_t offset, uint32_t para) const InsertOpCode() argument
516 InsertOpCode(DynChunk *buf, uint32_t offset, uint32_t para) const InsertOpCode() argument
[all...]
/arkcompiler/ets_runtime/compiler_service/test/fuzztest/aotcompilerargsprepare_fuzzer/
H A Daotcompilerargsprepare_fuzzer.cpp31 size_t offset = 0; in DoSomethingInterestingWithMyAPI() local
33 if (offset + sizeof(int16_t) > size) { in DoSomethingInterestingWithMyAPI()
36 uint8_t numberOfArgs = static_cast<uint8_t>(data[offset]); in DoSomethingInterestingWithMyAPI()
39 offset += sizeof(uint8_t); in DoSomethingInterestingWithMyAPI()
40 for (uint8_t i = 0; i < numberOfArgs && offset < size; ++i) { in DoSomethingInterestingWithMyAPI()
42 if (offset + sizeof(int16_t) > size) { in DoSomethingInterestingWithMyAPI()
45 uint8_t keyLength = static_cast<uint8_t>(data[offset]); in DoSomethingInterestingWithMyAPI()
46 offset += sizeof(uint8_t); in DoSomethingInterestingWithMyAPI()
48 if (offset + keyLength > size) { in DoSomethingInterestingWithMyAPI()
51 std::string key(&data[offset], keyLengt in DoSomethingInterestingWithMyAPI()
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/pgo_type/
H A Dpgo_type_recorder.cpp29 auto callback = [this] (uint32_t offset, const PGOType *type) { in PGOTypeRecorder()
31 bcOffsetPGOOpTypeMap_.emplace(offset, reinterpret_cast<const PGOSampleType *>(type)); in PGOTypeRecorder()
33 bcOffsetPGORwTypeMap_[offset] = reinterpret_cast<const PGORWOpType *>(type); in PGOTypeRecorder()
35 bcOffsetPGODefOpTypeMap_.emplace(offset, reinterpret_cast<const PGODefineOpType *>(type)); in PGOTypeRecorder()
45 std::vector<ElementsKind> PGOTypeRecorder::GetElementsKindsForUser(int32_t offset) const in GetElementsKindsForUser()
48 if (bcOffsetPGORwTypeMap_.find(offset) == bcOffsetPGORwTypeMap_.end()) { in GetElementsKindsForUser()
53 PGORWOpType rwType = *(bcOffsetPGORwTypeMap_.at(offset)); in GetElementsKindsForUser()
70 std::vector<ElementsKind> PGOTypeRecorder::GetTransitionElementsKindsForUser(int32_t offset) const in GetTransitionElementsKindsForUser()
73 if (bcOffsetPGORwTypeMap_.find(offset) == bcOffsetPGORwTypeMap_.end()) { in GetTransitionElementsKindsForUser()
78 PGORWOpType rwType = *(bcOffsetPGORwTypeMap_.at(offset)); in GetTransitionElementsKindsForUser()
[all...]
/arkcompiler/ets_runtime/ecmascript/jspandafile/bytecode_inst/
H A Dinstruction.h36 const uint8_t *GetPointer(int32_t offset) const in GetPointer()
39 return pc_ + offset; in GetPointer()
63 T Read(size_t offset) const in Read()
66 return *reinterpret_cast<unaligned_type *>(GetPointer(offset)); in Read()
69 void Write(uint32_t value, uint32_t offset, uint32_t width) in Write() argument
71 auto *dst = const_cast<uint8_t *>(GetPointer(offset)); in Write()
73 LOG(FATAL, PANDAFILE) << "Cannot write value : " << value << "at the dst offset : " << offset; in Write() local
77 uint8_t ReadByte(size_t offset) const in ReadByte()
79 return Read<uint8_t>(offset); in ReadByte()
83 ReadHelper(size_t byteoffset, size_t bytecount, size_t offset, size_t width) const ReadHelper() argument
122 Read64(size_t offset, size_t width) const Read64() argument
[all...]
/arkcompiler/runtime_core/static_core/runtime/include/
H A Dobject_header-inl.h43 inline T ObjectHeader::GetFieldPrimitive(size_t offset) const in GetFieldPrimitive()
45 return ObjectAccessor::GetPrimitive<T, IS_VOLATILE>(this, offset); in GetFieldPrimitive()
49 inline void ObjectHeader::SetFieldPrimitive(size_t offset, T value) in SetFieldPrimitive() argument
51 ObjectAccessor::SetPrimitive<T, IS_VOLATILE>(this, offset, value); in SetFieldPrimitive()
58 inline ObjectHeader *ObjectHeader::GetFieldObject(int offset) const in GetFieldObject()
60 return ObjectAccessor::GetObject<IS_VOLATILE, NEED_READ_BARRIER, IS_DYN>(this, offset); in GetFieldObject()
67 inline void ObjectHeader::SetFieldObject(size_t offset, ObjectHeader *value) in SetFieldObject() argument
69 ObjectAccessor::SetObject<IS_VOLATILE, NEED_WRITE_BARRIER, IS_DYN>(this, offset, value); in SetFieldObject()
114 inline void ObjectHeader::SetFieldObject(const ManagedThread *thread, size_t offset, ObjectHeader *value) in SetFieldObject() argument
116 ObjectAccessor::SetObject<IS_VOLATILE, NEED_WRITE_BARRIER, IS_DYN>(thread, this, offset, valu in SetFieldObject()
120 GetFieldPrimitive(size_t offset, std::memory_order memoryOrder) const GetFieldPrimitive() argument
126 SetFieldPrimitive(size_t offset, T value, std::memory_order memoryOrder) SetFieldPrimitive() argument
133 GetFieldObject(size_t offset, std::memory_order memoryOrder) const GetFieldObject() argument
140 SetFieldObject(size_t offset, ObjectHeader *value, std::memory_order memoryOrder) SetFieldObject() argument
146 CompareAndSetFieldPrimitive(size_t offset, T oldValue, T newValue, std::memory_order memoryOrder, bool strong) CompareAndSetFieldPrimitive() argument
154 CompareAndSetFieldObject(size_t offset, ObjectHeader *oldValue, ObjectHeader *newValue, std::memory_order memoryOrder, bool strong) CompareAndSetFieldObject() argument
163 CompareAndExchangeFieldPrimitive(size_t offset, T oldValue, T newValue, std::memory_order memoryOrder, bool strong) CompareAndExchangeFieldPrimitive() argument
171 CompareAndExchangeFieldObject(size_t offset, ObjectHeader *oldValue, ObjectHeader *newValue, std::memory_order memoryOrder, bool strong) CompareAndExchangeFieldObject() argument
181 GetAndSetFieldPrimitive(size_t offset, T value, std::memory_order memoryOrder) GetAndSetFieldPrimitive() argument
188 GetAndSetFieldObject(size_t offset, ObjectHeader *value, std::memory_order memoryOrder) GetAndSetFieldObject() argument
195 GetAndAddFieldPrimitive(size_t offset, T value, std::memory_order memoryOrder) GetAndAddFieldPrimitive() argument
201 GetAndBitwiseOrFieldPrimitive(size_t offset, T value, std::memory_order memoryOrder) GetAndBitwiseOrFieldPrimitive() argument
207 GetAndBitwiseAndFieldPrimitive(size_t offset, T value, std::memory_order memoryOrder) GetAndBitwiseAndFieldPrimitive() argument
213 GetAndBitwiseXorFieldPrimitive(size_t offset, T value, std::memory_order memoryOrder) GetAndBitwiseXorFieldPrimitive() argument
[all...]
H A Dobject_accessor-inl.h30 inline ObjectHeader *ObjectAccessor::GetObject(const void *obj, size_t offset) in GetObject() argument
34 return reinterpret_cast<ObjectHeader *>(Get<ObjectPointerType, IS_VOLATILE>(obj, offset)); in GetObject()
36 return Get<ObjectHeader *, IS_VOLATILE>(obj, offset); in GetObject()
41 inline void ObjectAccessor::SetObject(void *obj, size_t offset, ObjectHeader *value) in SetObject() argument
47 ObjectHeader *preVal = GetObject<IS_VOLATILE, false, IS_DYN>(obj, offset); in SetObject()
52 Set<ObjectPointerType, IS_VOLATILE>(obj, offset, ToObjPtrType(value)); in SetObject()
54 Set<ObjectHeader *, IS_VOLATILE>(obj, offset, value); in SetObject()
58 barrierSet->PostBarrier(ToVoidPtr(ToUintPtr(obj)), offset, value); in SetObject()
62 Set<ObjectPointerType, IS_VOLATILE>(obj, offset, ToObjPtrType(value)); in SetObject()
64 Set<ObjectHeader *, IS_VOLATILE>(obj, offset, valu in SetObject()
71 GetObject([[maybe_unused]] const ManagedThread *thread, const void *obj, size_t offset) GetObject() argument
83 SetObject(const ManagedThread *thread, void *obj, size_t offset, ObjectHeader *value) SetObject() argument
180 GetFieldPrimitive(const void *obj, size_t offset, std::memory_order memoryOrder) GetFieldPrimitive() argument
187 SetFieldPrimitive(void *obj, size_t offset, T value, std::memory_order memoryOrder) SetFieldPrimitive() argument
195 GetFieldObject(const void *obj, int offset, std::memory_order memoryOrder) GetFieldObject() argument
216 SetFieldObject(void *obj, size_t offset, ObjectHeader *value, std::memory_order memoryOrder) SetFieldObject() argument
249 CompareAndSetFieldPrimitive(void *obj, size_t offset, T oldValue, T newValue, std::memory_order memoryOrder, bool strong) CompareAndSetFieldPrimitive() argument
264 CompareAndSetFieldObject(void *obj, size_t offset, ObjectHeader *oldValue, ObjectHeader *newValue, std::memory_order memoryOrder, bool strong) CompareAndSetFieldObject() argument
306 GetAndSetFieldPrimitive(void *obj, size_t offset, T value, std::memory_order memoryOrder) GetAndSetFieldPrimitive() argument
317 GetAndSetFieldObject(void *obj, size_t offset, ObjectHeader *value, std::memory_order memoryOrder) GetAndSetFieldObject() argument
343 GetAndAddFieldPrimitive([[maybe_unused]] void *obj, [[maybe_unused]] size_t offset, [[maybe_unused]] T value, [[maybe_unused]] std::memory_order memoryOrder) GetAndAddFieldPrimitive() argument
375 GetAndBitwiseOrFieldPrimitive([[maybe_unused]] void *obj, [[maybe_unused]] size_t offset, [[maybe_unused]] T value, [[maybe_unused]] std::memory_order memoryOrder) GetAndBitwiseOrFieldPrimitive() argument
393 GetAndBitwiseAndFieldPrimitive([[maybe_unused]] void *obj, [[maybe_unused]] size_t offset, [[maybe_unused]] T value, [[maybe_unused]] std::memory_order memoryOrder) GetAndBitwiseAndFieldPrimitive() argument
411 GetAndBitwiseXorFieldPrimitive([[maybe_unused]] void *obj, [[maybe_unused]] size_t offset, [[maybe_unused]] T value, [[maybe_unused]] std::memory_order memoryOrder) GetAndBitwiseXorFieldPrimitive() argument
428 SetDynValueWithoutBarrier(void *obj, size_t offset, coretypes::TaggedType value) SetDynValueWithoutBarrier() argument
437 SetDynValue(const ManagedThread *thread, void *obj, size_t offset, coretypes::TaggedType value) SetDynValue() argument
458 SetDynPrimitive(const ManagedThread *thread, void *obj, size_t offset, T value) SetDynPrimitive() argument
[all...]
H A Dobject_accessor.h33 static T GetPrimitive(const void *obj, size_t offset) in GetPrimitive() argument
35 return Get<T, IS_VOLATILE>(obj, offset); in GetPrimitive()
39 static void SetPrimitive(void *obj, size_t offset, T value) in SetPrimitive() argument
41 Set<T, IS_VOLATILE>(obj, offset, value); in SetPrimitive()
45 static ObjectHeader *GetObject(const void *obj, size_t offset);
48 static void SetObject(void *obj, size_t offset, ObjectHeader *value);
64 static ObjectHeader *GetObject(const ManagedThread *thread, const void *obj, size_t offset);
67 static void SetObject(const ManagedThread *thread, void *obj, size_t offset, ObjectHeader *value);
76 static T GetFieldPrimitive(const void *obj, size_t offset, std::memory_order memoryOrder);
79 static void SetFieldPrimitive(void *obj, size_t offset,
123 GetDynValue(const void *obj, size_t offset) GetDynValue() argument
179 Get(const void *obj, size_t offset) Get() argument
192 Set(void *obj, size_t offset, T value) Set() argument
205 Get(const void *obj, size_t offset, std::memory_order memoryOrder) Get() argument
214 Set(void *obj, size_t offset, T value, std::memory_order memoryOrder) Set() argument
[all...]
/arkcompiler/runtime_core/compiler/tests/
H A Dencoders_test.cpp71 void TestPcRelativeLoad(size_t data_size, ssize_t offset, bool get_address, in TestPcRelativeLoad() argument
75 T *data = reinterpret_cast<T *>(buffer->template GetOffsetAddress<uint8_t *>(data_size) + offset); in TestPcRelativeLoad()
95 GetEncoder()->LoadPcRelative(reg, offset, addr); in TestPcRelativeLoad()
97 GetEncoder()->LoadPcRelative(reg, offset); in TestPcRelativeLoad()
132 void TestOffset(size_t data_size, ssize_t offset) in TestOffset() argument
134 ASSERT((offset & 3) == 0); in TestOffset()
135 if (vixl::IsInt21(offset)) { in TestOffset()
136 TestPcRelativeLoad<uint64_t>(data_size, offset, false, {"adr", "ldr"}); in TestOffset()
137 TestPcRelativeLoad<uint64_t>(data_size, offset, true, {"adr", "ldr"}); in TestOffset()
138 TestPcRelativeLoad<uint64_t>(data_size, -offset, fals in TestOffset()
[all...]
/arkcompiler/runtime_core/static_core/runtime/arch/
H A Dasm_support.h54 #define CFI_DEF_CFA(reg, offset) .cfi_def_cfa reg, (offset)
56 #define CFI_ADJUST_CFA_OFFSET(offset) .cfi_adjust_cfa_offset (offset)
60 #define CFI_REL_OFFSET(reg, offset) .cfi_rel_offset reg, (offset)
62 #define CFI_OFFSET(reg, offset) .cfi_offset reg, (offset)
79 #define CFI_DEF_CFA(reg, offset)
81 #define CFI_ADJUST_CFA_OFFSET(offset)
[all...]
/arkcompiler/runtime_core/static_core/verification/jobs/
H A Djob.h51 bool IsFieldPresentForOffset(uint32_t offset) const in IsFieldPresentForOffset()
53 return fields_.count(offset) != 0; in IsFieldPresentForOffset()
56 bool IsMethodPresentForOffset(uint32_t offset) const in IsMethodPresentForOffset()
58 return methods_.count(offset) != 0; in IsMethodPresentForOffset()
61 bool IsTypePresentForOffset(uint32_t offset) const in IsTypePresentForOffset()
63 return types_.count(offset) != 0; in IsTypePresentForOffset()
66 Field const *GetCachedField(uint32_t offset) const in GetCachedField()
68 return fields_.at(offset); in GetCachedField()
71 Method const *GetCachedMethod(uint32_t offset) const in GetCachedMethod()
73 return methods_.at(offset); in GetCachedMethod()
160 AddField(uint32_t offset, Field const *field) AddField() argument
165 AddMethod(uint32_t offset, Method const *method) AddMethod() argument
170 AddType(uint32_t offset, Type const *type) AddType() argument
[all...]
/arkcompiler/runtime_core/static_core/runtime/include/coretypes/
H A Darray-inl.h30 inline T Array::GetPrimitive(size_t offset) const in GetPrimitive()
32 return ObjectAccessor::GetPrimitive<T, IS_VOLATILE>(this, GetDataOffset() + offset); in GetPrimitive()
37 inline void Array::SetPrimitive(size_t offset, T value) in SetPrimitive() argument
39 ObjectAccessor::SetPrimitive<T, IS_VOLATILE>(this, GetDataOffset() + offset, value); in SetPrimitive()
44 inline ObjectHeader *Array::GetObject(int offset) const in GetObject()
46 return ObjectAccessor::GetObject<IS_VOLATILE, NEED_READ_BARRIER, IS_DYN>(this, GetDataOffset() + offset); in GetObject()
51 inline void Array::SetObject(size_t offset, ObjectHeader *value) in SetObject() argument
53 ObjectAccessor::SetObject<IS_VOLATILE, NEED_WRITE_BARRIER, IS_DYN>(this, GetDataOffset() + offset, value); in SetObject()
57 inline T Array::GetPrimitive(size_t offset, std::memory_order memoryOrder) const in GetPrimitive() argument
59 return ObjectAccessor::GetFieldPrimitive<T>(this, GetDataOffset() + offset, memoryOrde in GetPrimitive()
63 SetPrimitive(size_t offset, T value, std::memory_order memoryOrder) SetPrimitive() argument
70 GetObject(size_t offset, std::memory_order memoryOrder) const GetObject() argument
77 SetObject(size_t offset, ObjectHeader *value, std::memory_order memoryOrder) SetObject() argument
83 CompareAndSetPrimitive(size_t offset, T oldValue, T newValue, std::memory_order memoryOrder, bool strong) CompareAndSetPrimitive() argument
93 CompareAndSetObject(size_t offset, ObjectHeader *oldValue, ObjectHeader *newValue, std::memory_order memoryOrder, bool strong) CompareAndSetObject() argument
103 CompareAndExchangePrimitive(size_t offset, T oldValue, T newValue, std::memory_order memoryOrder, bool strong) CompareAndExchangePrimitive() argument
113 CompareAndExchangeObject(size_t offset, ObjectHeader *oldValue, ObjectHeader *newValue, std::memory_order memoryOrder, bool strong) CompareAndExchangeObject() argument
123 GetAndSetPrimitive(size_t offset, T value, std::memory_order memoryOrder) GetAndSetPrimitive() argument
130 GetAndSetObject(size_t offset, ObjectHeader *value, std::memory_order memoryOrder) GetAndSetObject() argument
137 GetAndAddPrimitive(size_t offset, T value, std::memory_order memoryOrder) GetAndAddPrimitive() argument
143 GetAndBitwiseOrPrimitive(size_t offset, T value, std::memory_order memoryOrder) GetAndBitwiseOrPrimitive() argument
149 GetAndBitwiseAndPrimitive(size_t offset, T value, std::memory_order memoryOrder) GetAndBitwiseAndPrimitive() argument
155 GetAndBitwiseXorPrimitive(size_t offset, T value, std::memory_order memoryOrder) GetAndBitwiseXorPrimitive() argument
168 size_t offset = elemSize * idx; Set() local
188 size_t offset = GetElementSize<T, IS_DYN>() * idx; Get() local
220 size_t offset = elemSize * idx; Set() local
239 size_t offset = elemSize * idx; Get() local
[all...]
/arkcompiler/runtime_core/libpandabase/utils/
H A Dbit_memory_region.h53 Iterator(const BitMemoryRegion &region, uint32_t offset) : region_(region), bit_(offset) in Iterator() argument
129 bool Read(size_t offset) in Read() argument
131 ASSERT(offset < size_); in Read()
132 size_t index = (start_ + offset) / BITS_PER_BYTE; in Read()
133 size_t shift = (start_ + offset) % BITS_PER_BYTE; in Read()
138 void Write(bool value, size_t offset)
140 ASSERT(offset < size_);
141 size_t index = (start_ + offset) / BITS_PER_BYTE;
142 size_t shift = (start_ + offset)
[all...]
/arkcompiler/runtime_core/static_core/libpandabase/utils/
H A Dbit_memory_region.h61 Iterator(const BitMemoryRegion &region, uint32_t offset) : region_(region), bit_(offset) in Iterator() argument
132 bool Read(size_t offset) in Read() argument
134 ASSERT(offset < size_); in Read()
135 size_t index = (start_ + offset) / BITS_PER_BYTE; in Read()
136 size_t shift = (start_ + offset) % BITS_PER_BYTE; in Read()
141 void Write(bool value, size_t offset)
143 ASSERT(offset < size_);
144 size_t index = (start_ + offset) / BITS_PER_BYTE;
145 size_t shift = (start_ + offset)
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/assembler/x64/
H A Dassembler_x64.cpp304 void AssemblerX64::EmitJmp(int32_t offset) in EmitJmp() argument
306 offset--; in EmitJmp()
307 if (InRange8(offset - SIZE_OF_INT8)) { in EmitJmp()
310 EmitI8(offset - SIZE_OF_INT8); in EmitJmp()
314 EmitI32(offset - SIZE_OF_INT32); in EmitJmp()
318 void AssemblerX64::EmitJa(int32_t offset) in EmitJa() argument
320 offset--; in EmitJa()
321 if (InRange8(offset - SIZE_OF_INT8)) { in EmitJa()
324 EmitI8(offset - SIZE_OF_INT8); in EmitJa()
326 offset in EmitJa()
334 EmitJb(int32_t offset) EmitJb() argument
350 EmitJz(int32_t offset) EmitJz() argument
366 EmitJne(int32_t offset) EmitJne() argument
382 EmitJbe(int32_t offset) EmitJbe() argument
398 EmitJnz(int32_t offset) EmitJnz() argument
414 EmitJle(int32_t offset) EmitJle() argument
430 EmitJae(int32_t offset) EmitJae() argument
446 EmitJg(int32_t offset) EmitJg() argument
462 EmitJge(int32_t offset) EmitJge() argument
478 EmitJe(int32_t offset) EmitJe() argument
494 EmitCall(int32_t offset) EmitCall() argument
502 EmitJnb(int32_t offset) EmitJnb() argument
531 int32_t offset = static_cast<int32_t>(target->GetPos() - GetCurrentPosition()); Callq() local
557 int32_t offset = static_cast<int32_t>(target->GetPos() - GetCurrentPosition()); Jmp() local
595 Jmp(Immediate offset) Jmp() argument
611 int32_t offset = static_cast<int32_t>(target->GetPos() - GetCurrentPosition()); Ja() local
643 int32_t offset = static_cast<int32_t>(target->GetPos() - GetCurrentPosition()); Jb() local
674 int32_t offset = static_cast<int32_t>(target->GetPos() - GetCurrentPosition()); Jz() local
706 int32_t offset = static_cast<int32_t>(target->GetPos() - GetCurrentPosition()); Je() local
918 int32_t offset = static_cast<int32_t>(target->GetPos() - GetCurrentPosition()); Jne() local
958 int32_t offset = static_cast<int32_t>(target->GetPos() - GetCurrentPosition()); Jbe() local
1122 int32_t offset = static_cast<int32_t>(target->GetPos() - GetCurrentPosition()); Jnz() local
1154 int32_t offset = static_cast<int32_t>(target->GetPos() - GetCurrentPosition()); Jle() local
1186 int32_t offset = static_cast<int32_t>(target->GetPos() - GetCurrentPosition()); Jae() local
1218 int32_t offset = static_cast<int32_t>(target->GetPos() - GetCurrentPosition()); Jg() local
1250 int32_t offset = static_cast<int32_t>(target->GetPos() - GetCurrentPosition()); Jge() local
1385 int32_t offset = static_cast<int32_t>(target->GetPos() - GetCurrentPosition()); Jnb() local
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/base/
H A Dbit_set.h61 bool TestBit(size_t offset) const in TestBit()
64 return data_.inlineWord_ & Mask(offset); in TestBit()
66 ASSERT(wordCount_ > Index(offset)); in TestBit()
67 return data_.words_[Index(offset)] & Mask(IndexInWord(offset)); in TestBit()
71 void SetBit(size_t offset) in SetBit() argument
74 data_.inlineWord_ |= Mask(offset); in SetBit()
76 ASSERT(wordCount_ > Index(offset)); in SetBit()
77 data_.words_[Index(offset)] |= Mask(IndexInWord(offset)); in SetBit()
81 ClearBit(size_t offset) ClearBit() argument
[all...]
/arkcompiler/ets_runtime/ecmascript/mem/
H A Ddyn_chunk.h47 int EmitSelf(size_t offset, size_t len);
88 inline uint64_t GetU64(size_t offset) const in GetU64()
91 return *reinterpret_cast<uint64_t *>(buf_ + offset); in GetU64()
94 inline uint32_t GetU32(size_t offset) const in GetU32()
97 return *reinterpret_cast<uint32_t *>(buf_ + offset); in GetU32()
100 inline void PutU32(size_t offset, uint32_t data) const in PutU32() argument
103 *reinterpret_cast<uint32_t *>(buf_ + offset) = data; in PutU32()
106 inline uint32_t GetU16(size_t offset) const in GetU16()
109 return *reinterpret_cast<uint16_t *>(buf_ + offset); in GetU16()
112 inline void PutU16(size_t offset, uint16_ argument
124 PutU8(size_t offset, uint8_t data) const PutU8() argument
[all...]
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/ap_file/
H A Dpgo_method_type_set.h42 void AddType(uint32_t offset, PGOSampleType type) in AddType() argument
44 auto result = scalarOpTypeInfos_.find(ScalarOpTypeInfo(offset, type)); in AddType()
49 scalarOpTypeInfos_.emplace(offset, type); in AddType()
53 void AddCallTargetType(uint32_t offset, PGOSampleType type) in AddCallTargetType() argument
55 auto result = scalarOpTypeInfos_.find(ScalarOpTypeInfo(offset, type)); in AddCallTargetType()
60 scalarOpTypeInfos_.emplace(offset, type); in AddCallTargetType()
64 void AddObjectInfo(uint32_t offset, const PGOObjectInfo &info) in AddObjectInfo() argument
66 auto result = rwScalarOpTypeInfos_.find(RWScalarOpTypeInfo(offset)); in AddObjectInfo()
70 rwScalarOpTypeInfos_.emplace(offset, info); in AddObjectInfo()
74 void AddDefine(uint32_t offset, PGODefineOpTyp argument
130 TypeInfoHeader(InfoType type, uint32_t offset) TypeInfoHeader() argument
131 TypeInfoHeader(uint32_t size, InfoType type, uint32_t offset) TypeInfoHeader() argument
158 RWScalarOpTemplate(uint32_t offset) RWScalarOpTemplate() argument
159 RWScalarOpTemplate(uint32_t offset, ObjectInfoType info) RWScalarOpTemplate() argument
231 ScalarOpTemplate(uint32_t offset, SampleType type) ScalarOpTemplate() argument
263 ScalarOpTemplate(uint32_t size, InfoType infoType, uint32_t offset, SampleType type) ScalarOpTemplate() argument
275 ObjDefOpTemplate(uint32_t offset, PGODefineOpType type) ObjDefOpTemplate() argument
311 ObjDefOpTemplate( uint32_t size, InfoType infoType, uint32_t offset, PGODefineOpType type) ObjDefOpTemplate() argument
[all...]
/arkcompiler/runtime_core/static_core/compiler/tests/
H A Dencoders_test.cpp76 void TestPcRelativeLoad(size_t dataSize, ssize_t offset, bool getAddress, std::initializer_list<const char *> insts) in TestPcRelativeLoad() argument
79 T *data = reinterpret_cast<T *>(buffer->template GetOffsetAddress<uint8_t *>(dataSize) + offset); in TestPcRelativeLoad()
99 GetEncoder()->LoadPcRelative(reg, offset, addr); in TestPcRelativeLoad()
101 GetEncoder()->LoadPcRelative(reg, offset); in TestPcRelativeLoad()
136 void TestOffset(size_t dataSize, ssize_t offset) in TestOffset() argument
138 ASSERT((offset & 3U) == 0U); // NOLINT(hicpp-signed-bitwise) in TestOffset()
139 if (vixl::IsInt21(offset)) { in TestOffset()
140 TestPcRelativeLoad<uint64_t>(dataSize, offset, false, {"adr", "ldr"}); in TestOffset()
141 TestPcRelativeLoad<uint64_t>(dataSize, offset, true, {"adr", "ldr"}); in TestOffset()
142 TestPcRelativeLoad<uint64_t>(dataSize, -offset, fals in TestOffset()
[all...]
/arkcompiler/runtime_core/libpandabase/tests/
H A Dbit_memory_region_test.cpp23 static void CompareData(uint8_t *data, size_t offset, size_t length, uint32_t value, uint8_t fill_value) in CompareData() argument
26 uint8_t expected = (offset <= i && i < offset + length) ? value >> (i - offset) : fill_value; in CompareData()
39 for (size_t offset = 0; offset < MAX_BITS_COUNT; offset++) { in TEST()
44 BitMemoryRegion region1(data.data(), offset, 1); in TEST()
47 CompareData(data.data(), offset, 1, value, fill_value); in TEST()
50 region2.Write(value, offset); in TEST()
[all...]
/arkcompiler/runtime_core/static_core/libpandabase/tests/
H A Dbit_memory_region_test.cpp23 static void CompareData(const uint8_t *data, size_t offset, size_t length, uint32_t value, uint8_t fillValue) in CompareData() argument
26 uint8_t expected = (offset <= i && i < offset + length) ? value >> (i - offset) : fillValue; in CompareData()
41 for (size_t offset = 0; offset < MAX_BITS_COUNT; offset++) { in TEST()
46 BitMemoryRegion region1(data.data(), offset, 1U); in TEST()
49 CompareData(data.data(), offset, 1U, static_cast<uint32_t>(value), fillValue); in TEST()
52 region2.Write(value, offset); in TEST()
[all...]
/arkcompiler/runtime_core/static_core/runtime/regexp/ecmascript/mem/
H A Ddyn_chunk.h66 int EmitSelf(size_t offset, size_t length);
107 inline uint32_t GetU32(size_t offset) const in GetU32()
110 return UnalignedLoad(reinterpret_cast<uint32_t *>(buf_ + offset)); in GetU32()
113 inline void PutU32(size_t offset, uint32_t data) const in PutU32() argument
116 UnalignedStore(reinterpret_cast<uint32_t *>(buf_ + offset), data); in PutU32()
119 inline uint32_t GetU16(size_t offset) const in GetU16()
122 return UnalignedLoad(reinterpret_cast<uint16_t *>(buf_ + offset)); in GetU16()
125 inline void PutU16(size_t offset, uint16_t data) const in PutU16() argument
128 UnalignedStore(reinterpret_cast<uint16_t *>(buf_ + offset), data); in PutU16()
131 inline uint32_t GetU8(size_t offset) cons
137 PutU8(size_t offset, uint8_t data) const PutU8() argument
[all...]
/arkcompiler/runtime_core/static_core/libpandafile/external/
H A Dfile_ext.cpp53 ark::panda_file::ext::MethodSymEntry *QueryMethodSymByOffset(uint64_t offset) in QueryMethodSymByOffset()
55 auto it = methodSymbols_.upper_bound(offset); in QueryMethodSymByOffset()
56 if (it != methodSymbols_.end() && offset >= it->second.id.GetOffset()) { in QueryMethodSymByOffset()
63 auto callBack = [this, offset, &found](ark::panda_file::MethodDataAccessor &mda) -> void { in QueryMethodSymByOffset()
71 auto ret = methodSymbols_.emplace(offset, entry); in QueryMethodSymByOffset()
72 if (mda.GetCodeId().value().GetOffset() <= offset && in QueryMethodSymByOffset()
73 offset < mda.GetCodeId().value().GetOffset() + ca.GetCodeSize()) { in QueryMethodSymByOffset()
90 ark::panda_file::ext::MethodSymEntry *EnumerateAllMethods(uint32_t id, uint64_t offset, in EnumerateAllMethods()
94 cda.EnumerateMethods([this, &cda, &offset, &found](ark::panda_file::MethodDataAccessor &mda) -> void { in EnumerateAllMethods()
102 auto ret = methodSymbols_.emplace(offset, entr in EnumerateAllMethods()
210 OpenPandafileFromFdExt([[maybe_unused]] int fd, [[maybe_unused]] uint64_t offset, const std::string &fileName, PandaFileExt **pandaFileExt) OpenPandafileFromFdExt() argument
223 QueryMethodSymByOffsetExt(struct PandaFileExt *pf, uint64_t offset, struct MethodSymInfoExt *methodInfo) QueryMethodSymByOffsetExt() argument
235 QueryMethodSymAndLineByOffsetExt(struct PandaFileExt *pf, uint64_t offset, struct MethodSymInfoExt *methodInfo) QueryMethodSymAndLineByOffsetExt() argument
[all...]
/arkcompiler/runtime_core/static_core/runtime/
H A Dhandle_storage-inl.h27 uint32_t offset = index & NODE_BLOCK_SIZE_MASK; in GetNodeAddress() local
29 auto location = &(*node)[offset]; in GetNodeAddress()
37 uint32_t offset = lastIndex_ & NODE_BLOCK_SIZE_MASK; in NewHandle() local
43 auto loc = &(*node)[offset]; in NewHandle()
71 uint32_t offset = lastIndex_ & NODE_BLOCK_SIZE_MASK; in ZapFreedHandles() local
77 for (uint32_t j = offset; j < NODE_BLOCK_SIZE; ++j) { in ZapFreedHandles()
91 uint32_t offset = lastIndex_ & NODE_BLOCK_SIZE_MASK; in UpdateHeapObject() local
94 uint32_t count = (i != nid) ? NODE_BLOCK_SIZE : offset; in UpdateHeapObject()
111 uint32_t offset = lastIndex_ & NODE_BLOCK_SIZE_MASK; in VisitGCRoots() local
112 if (offset in VisitGCRoots()
135 uint32_t offset = lastIndex_ & NODE_BLOCK_SIZE_MASK; UpdateHeapObject() local
159 uint32_t offset = lastIndex_ & NODE_BLOCK_SIZE_MASK; VisitGCRoots() local
[all...]
/arkcompiler/runtime_core/static_core/verification/config/debug_breakpoint/
H A Dbreakpoint.cpp40 void DebugConfig::AddBreakpointConfig(const PandaString &methodName, Offset offset) in AddBreakpointConfig() argument
44 optBreakpoints->push_back(offset); in AddBreakpointConfig()
46 managedBreakpoints.push_back({methodName, Offsets {offset}}); in AddBreakpointConfig()
48 LOG_VERIFIER_DEBUG_BREAKPOINT_ADDED_INFO(methodName, offset); in AddBreakpointConfig()
55 for (const auto offset : optBreakpoints.Get()) { in InsertBreakpoints()
56 LOG_VERIFIER_DEBUG_BREAKPOINT_SET_INFO(methodName, id, offset); in InsertBreakpoints()
57 breakpoint.Apply([&](auto &breakpointMap) { breakpointMap[id].insert(offset); }); in InsertBreakpoints()
62 bool CheckManagedBreakpoint(DebugContext const *ctx, Method::UniqId id, Offset offset) in CheckManagedBreakpoint() argument
69 return iter->second.count(offset) > 0; in CheckManagedBreakpoint()

Completed in 13 milliseconds

12345678910>>...22