| /arkcompiler/runtime_core/static_core/runtime/regexp/ecmascript/ |
| D | regexp_opcode.cpp | 125 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 << ":\t" in DumpOpCode() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/regexp/ |
| D | regexp_opcode.cpp | 131 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 << ":\t" in DumpOpCode() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/js_type_metadata/ |
| D | source_text_module_record.json | 6 "offset": 0, number 11 "offset": 8, number 16 "offset": 16, number 21 "offset": 24, number 26 "offset": 32, number 31 "offset": 40, number 36 "offset": 48, number 41 "offset": 56, number 46 "offset": 64, number 51 "offset": 72, number [all …]
|
| D | js_number_format.json | 6 "offset": 0, number 11 "offset": 8, number 16 "offset": 16, number 21 "offset": 24, number 26 "offset": 32, number 31 "offset": 40, number 36 "offset": 48, number 41 "offset": 56, number 46 "offset": 64, number 51 "offset": 72, number [all …]
|
| D | hclass.json | 6 "offset": 0, number 11 "offset": 4, number 16 "offset": 8, number 21 "offset": 16, number 26 "offset": 24, number 31 "offset": 32, number 36 "offset": 40, number 41 "offset": 48, number 46 "offset": 56, number 51 "offset": 64, number [all …]
|
| D | js_plural_rules.json | 6 "offset": 0, number 11 "offset": 8, number 16 "offset": 16, number 21 "offset": 24, number 26 "offset": 32, number 31 "offset": 40, number 36 "offset": 48, number 41 "offset": 56, number
|
| D | js_date_time_format.json | 6 "offset": 0, number 11 "offset": 8, number 16 "offset": 16, number 21 "offset": 24, number 26 "offset": 32, number 31 "offset": 40, number 36 "offset": 48, number 41 "offset": 56, number
|
| D | js_function.json | 6 "offset": 0, number 11 "offset": 8, number 16 "offset": 16, number 21 "offset": 24, number 26 "offset": 32, number 31 "offset": 40, number 36 "offset": 48, number
|
| D | class_info_extractor.json | 6 "offset": 0, number 11 "offset": 8, number 16 "offset": 16, number 21 "offset": 24, number 26 "offset": 32, number 31 "offset": 40, number 36 "offset": 48, number
|
| /arkcompiler/ets_runtime/compiler_service/test/fuzztest/aotcompilerargsprepare_fuzzer/ |
| D | aotcompilerargsprepare_fuzzer.cpp | 31 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], keyLength); in DoSomethingInterestingWithMyAPI() [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/include/ |
| D | object_header-inl.h | 43 inline T ObjectHeader::GetFieldPrimitive(size_t offset) const in GetFieldPrimitive() argument 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() argument 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 *… in SetFieldObject() argument 116 ObjectAccessor::SetObject<IS_VOLATILE, NEED_WRITE_BARRIER, IS_DYN>(thread, this, offset, value); in SetFieldObject() [all …]
|
| D | object_accessor-inl.h | 30 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() 42 inline void ObjectAccessor::SetObject(void *obj, size_t offset, ObjectHeader *value) in SetObject() argument 48 ObjectHeader *preVal = GetObject<IS_VOLATILE, false, IS_DYN>(obj, offset); in SetObject() 53 Set<ObjectPointerType, IS_VOLATILE>(obj, offset, ToObjPtrType(value)); in SetObject() 55 Set<ObjectHeader *, IS_VOLATILE>(obj, offset, value); in SetObject() 59 barrierSet->PostBarrier(ToVoidPtr(ToUintPtr(obj)), offset, value); in SetObject() 63 Set<ObjectPointerType, IS_VOLATILE>(obj, offset, ToObjPtrType(value)); in SetObject() 65 Set<ObjectHeader *, IS_VOLATILE>(obj, offset, value); in SetObject() [all …]
|
| D | object_accessor.h | 33 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, T value, std::memory_order memoryOrder); [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/include/coretypes/ |
| D | array-inl.h | 30 inline T Array::GetPrimitive(size_t offset) const in GetPrimitive() argument 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() argument 46 … 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 …ccessor::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, memoryOrder); in GetPrimitive() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/pgo_type/ |
| D | pgo_type_recorder.cpp | 29 auto callback = [this] (uint32_t offset, const PGOType *type) { in PGOTypeRecorder() argument 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/ |
| D | instruction.h | 36 const uint8_t *GetPointer(int32_t offset) const in GetPointer() argument 39 return pc_ + offset; in GetPointer() 63 T Read(size_t offset) const in Read() argument 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() 77 uint8_t ReadByte(size_t offset) const in ReadByte() argument 79 return Read<uint8_t>(offset); in ReadByte() 83 inline auto ReadHelper(size_t byteoffset, size_t bytecount, size_t offset, size_t width) const in ReadHelper() argument [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/homecheck/src/utils/checker/ |
| D | BytesUtils.ts | 31 offset: number 32 ): DataView => new DataView(input.buffer, input.byteOffset + offset); 34 export const readInt16LE = (input: Uint8Array, offset = 0): number => 35 getView(input, offset).getInt16(0, true); 37 export const readUInt16BE = (input: Uint8Array, offset = 0): number => 38 getView(input, offset).getUint16(0, false); 40 export const readUInt16LE = (input: Uint8Array, offset = 0): number => 41 getView(input, offset).getUint16(0, true); 43 export const readUInt24LE = (input: Uint8Array, offset = 0): number => { 44 const view = getView(input, offset); [all …]
|
| /arkcompiler/runtime_core/static_core/verification/jobs/ |
| D | job.h | 51 bool IsFieldPresentForOffset(uint32_t offset) const in IsFieldPresentForOffset() argument 53 return fields_.count(offset) != 0; in IsFieldPresentForOffset() 56 bool IsMethodPresentForOffset(uint32_t offset) const in IsMethodPresentForOffset() argument 58 return methods_.count(offset) != 0; in IsMethodPresentForOffset() 61 bool IsTypePresentForOffset(uint32_t offset) const in IsTypePresentForOffset() argument 63 return types_.count(offset) != 0; in IsTypePresentForOffset() 66 Field const *GetCachedField(uint32_t offset) const in GetCachedField() argument 68 return fields_.at(offset); in GetCachedField() 71 Method const *GetCachedMethod(uint32_t offset) const in GetCachedMethod() argument 73 return methods_.at(offset); in GetCachedMethod() [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/arch/aarch64/ |
| D | call_runtime.S | 18 .macro SAVE_CALLEE_GP_REGS base_reg, offset argument 19 stp x27, x28, [\base_reg, #(\offset - CALLEE_REG0_OFFSET + 8*8)] 20 CFI_REL_OFFSET(x28, (\offset - CALLEE_REG0_OFFSET + 8*9)) 21 CFI_REL_OFFSET(x27, (\offset - CALLEE_REG0_OFFSET + 8*8)) 22 stp x25, x26, [\base_reg, #(\offset - CALLEE_REG0_OFFSET + 8*6)] 23 CFI_REL_OFFSET(x26, (\offset - CALLEE_REG0_OFFSET + 8*7)) 24 CFI_REL_OFFSET(x25, (\offset - CALLEE_REG0_OFFSET + 8*6)) 25 stp x23, x24, [\base_reg, #(\offset - CALLEE_REG0_OFFSET + 8*4)] 26 CFI_REL_OFFSET(x24, (\offset - CALLEE_REG0_OFFSET + 8*5)) 27 CFI_REL_OFFSET(x23, (\offset - CALLEE_REG0_OFFSET + 8*4)) [all …]
|
| /arkcompiler/ets_runtime/ecmascript/mem/ |
| D | barriers_get-inl.h | 24 static ARK_INLINE JSTaggedType ReadBarrier(const JSThread *thread, const void *obj, size_t offset, in ReadBarrier() argument 30 … common::BaseRuntime::ReadBarrier(const_cast<void*>(obj), (void*) (ToUintPtr(obj) + offset)))); in ReadBarrier() 35 … common::BaseRuntime::ReadBarrier(const_cast<void *>(obj), (void *)(ToUintPtr(obj) + offset))); in ReadBarrier() 56 …c ARK_INLINE JSTaggedType AtomicReadBarrier(const JSThread *thread, const void *obj, size_t offset, in AtomicReadBarrier() argument 62 const_cast<void*>(obj), (void*) (ToUintPtr(obj) + offset), std::memory_order_acquire))); in AtomicReadBarrier() 67 const_cast<void *>(obj), (void *)(ToUintPtr(obj) + offset), std::memory_order_acquire)); in AtomicReadBarrier() 85 …NLINE JSTaggedType Barriers::GetTaggedValue(const JSThread *thread, const void *obj, size_t offset) in GetTaggedValue() argument 87 JSTaggedValue value = *reinterpret_cast<JSTaggedValue *>(ToUintPtr(obj) + offset); in GetTaggedValue() 90 return ReadBarrier(thread, obj, offset, value); in GetTaggedValue() 105 …JSTaggedType Barriers::GetTaggedValueAtomic(const JSThread *thread, const void *obj, size_t offset) in GetTaggedValueAtomic() argument [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/sdk/api/ |
| D | @ohos.buffer.ets | 179 …* @param { number | string } offsetOrEncoding - offsetOrEncoding offsetOrEncoding A byte-offset or… 403 let offset = 0; 405 buffer.set(offset, listOfBytes[i]); 406 offset += 1; 527 /** The offset into the buffer where this Buffer instance starts */ 540 * @param {number} [byteOffset=0] - The starting offset into the ArrayBuffer 697 * @param { number } [targetStart] - The offset within target at which to begin comparison 698 …* @param { number } [targetEnd] - The offset within target at which to end comparison (not inclusi… 699 * @param { number } [sourceStart] - The offset within buf at which to begin comparison 700 … * @param { number } [sourceEnd] - The offset within buf at which to end comparison (not inclusive) [all …]
|
| /arkcompiler/runtime_core/libpandabase/utils/ |
| D | bit_memory_region.h | 53 Iterator(const BitMemoryRegion ®ion, 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) in Write() argument 140 ASSERT(offset < size_); in Write() 141 size_t index = (start_ + offset) / BITS_PER_BYTE; in Write() 142 size_t shift = (start_ + offset) % BITS_PER_BYTE; in Write() 152 Read(size_t offset, size_t length) const in Read() argument [all …]
|
| /arkcompiler/runtime_core/static_core/libpandabase/utils/ |
| D | bit_memory_region.h | 61 Iterator(const BitMemoryRegion ®ion, 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) in Write() argument 143 ASSERT(offset < size_); in Write() 144 size_t index = (start_ + offset) / BITS_PER_BYTE; in Write() 145 size_t shift = (start_ + offset) % BITS_PER_BYTE; in Write() 155 Read(size_t offset, size_t length) const in Read() argument [all …]
|
| /arkcompiler/runtime_core/libabckit/src/ |
| D | ir_interface_impl.cpp | 19 std::string AbckitIrInterface::GetMethodIdByOffset(uint32_t offset) const in GetMethodIdByOffset() 21 auto it = methods.find(offset); in GetMethodIdByOffset() 27 std::string AbckitIrInterface::GetStringIdByOffset(uint32_t offset) const in GetStringIdByOffset() 29 auto it = strings.find(offset); in GetStringIdByOffset() 35 std::string AbckitIrInterface::GetLiteralArrayIdByOffset(uint32_t offset) const in GetLiteralArrayIdByOffset() 37 auto it = literalarrays.find(offset); in GetLiteralArrayIdByOffset() 43 std::string AbckitIrInterface::GetTypeIdByOffset(uint32_t offset) const in GetTypeIdByOffset() 45 auto it = classes.find(offset); in GetTypeIdByOffset() 51 std::string AbckitIrInterface::GetFieldIdByOffset(uint32_t offset) const in GetFieldIdByOffset() 53 auto it = fields.find(offset); in GetFieldIdByOffset()
|
| /arkcompiler/runtime_core/compiler/tests/ |
| D | encoders_test.cpp | 71 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, false, {"adr", "ldr"}); in TestOffset() [all …]
|