Home
last modified time | relevance | path

Searched full:offset (Results 1 – 25 of 374) sorted by relevance

12345678910>>...15

/arkcompiler/ets_runtime/ecmascript/regexp/
Dregexp_opcode.cpp129 uint32_t SaveStartOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const in DumpOpCode()
131 out << offset << ":\t" in DumpOpCode()
132 << "save_start\t" << buf.GetU8(offset + 1) << std::endl; in DumpOpCode()
133 return offset + GetSize(); in DumpOpCode()
144 uint32_t SaveEndOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const in DumpOpCode()
146 out << offset << ":\t" in DumpOpCode()
147 << "save_end\t" << buf.GetU8(offset + 1) << std::endl; in DumpOpCode()
148 return offset + GetSize(); in DumpOpCode()
159 uint32_t CharOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const in DumpOpCode()
161 out << offset << ":\t" in DumpOpCode()
[all …]
Dregexp_opcode.h89 virtual uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const = 0;
103 uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const override;
113 uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const override;
123 uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const override;
130 void UpdateOpPara(DynChunk *buf, uint32_t offset, uint32_t para) const;
134 uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const override;
140 uint32_t InsertOpCode(DynChunk *buf, uint32_t offset, uint32_t para) const;
144 uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const override;
150 uint32_t InsertOpCode(DynChunk *buf, uint32_t offset, uint32_t para) const;
154 uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const override;
[all …]
/arkcompiler/runtime_core/runtime/include/coretypes/
Darray-inl.h29 inline T Array::GetPrimitive(size_t offset) const in GetPrimitive() argument
31 return ObjectAccessor::GetPrimitive<T, is_volatile>(this, GetDataOffset() + offset); in GetPrimitive()
35 inline void Array::SetPrimitive(size_t offset, T value) in SetPrimitive() argument
37 ObjectAccessor::SetPrimitive<T, is_volatile>(this, GetDataOffset() + offset, value); in SetPrimitive()
41 inline ObjectHeader *Array::GetObject(int offset) const in GetObject() argument
43 … ObjectAccessor::GetObject<is_volatile, need_read_barrier, is_dyn>(this, GetDataOffset() + offset); in GetObject()
47 inline void Array::SetObject(size_t offset, ObjectHeader *value) in SetObject() argument
49 …ccessor::SetObject<is_volatile, need_write_barrier, is_dyn>(this, GetDataOffset() + offset, value); in SetObject()
53 inline T Array::GetPrimitive(size_t offset, std::memory_order memory_order) const in GetPrimitive() argument
55 return ObjectAccessor::GetFieldPrimitive<T>(this, GetDataOffset() + offset, memory_order); in GetPrimitive()
[all …]
Darray.h102 T GetPrimitive(size_t offset) const;
105 void SetPrimitive(size_t offset, T value);
108 ObjectHeader *GetObject(int offset) const;
111 void SetObject(size_t offset, ObjectHeader *value);
114 T GetPrimitive(size_t offset, std::memory_order memory_order) const;
117 void SetPrimitive(size_t offset, T value, std::memory_order memory_order);
120 ObjectHeader *GetObject(size_t offset, std::memory_order memory_order) const;
123 void SetObject(size_t offset, ObjectHeader *value, std::memory_order memory_order);
126 …bool CompareAndSetPrimitive(size_t offset, T old_value, T new_value, std::memory_order memory_orde…
129 bool CompareAndSetObject(size_t offset, ObjectHeader *old_value, ObjectHeader *new_value,
[all …]
/arkcompiler/runtime_core/runtime/include/
Dobject_header-inl.h43 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()
55 inline ObjectHeader *ObjectHeader::GetFieldObject(int offset) const in GetFieldObject() argument
57 return ObjectAccessor::GetObject<is_volatile, need_read_barrier, is_dyn>(this, offset); in GetFieldObject()
61 inline void ObjectHeader::SetFieldObject(size_t offset, ObjectHeader *value) in SetFieldObject() argument
63 ObjectAccessor::SetObject<is_volatile, need_write_barrier, is_dyn>(this, offset, value); in SetFieldObject()
103 inline void ObjectHeader::SetFieldObject(const ManagedThread *thread, size_t offset, ObjectHeader *… in SetFieldObject() argument
105 ObjectAccessor::SetObject<is_volatile, need_write_barrier, is_dyn>(thread, this, offset, value); in SetFieldObject()
[all …]
Dobject_accessor.h31 static T GetPrimitive(const void *obj, size_t offset) in GetPrimitive() argument
33 return Get<T, is_volatile>(obj, offset); in GetPrimitive()
37 static void SetPrimitive(void *obj, size_t offset, T value) in SetPrimitive() argument
39 Set<T, is_volatile>(obj, offset, value); in SetPrimitive()
43 static ObjectHeader *GetObject(const void *obj, size_t offset);
46 static void SetObject(void *obj, size_t offset, ObjectHeader *value);
62 static ObjectHeader *GetObject(const ManagedThread *thread, const void *obj, size_t offset);
65 … static void SetObject(const ManagedThread *thread, void *obj, size_t offset, ObjectHeader *value);
74 static T GetFieldPrimitive(const void *obj, size_t offset, std::memory_order memory_order);
77 … static void SetFieldPrimitive(void *obj, size_t offset, T value, std::memory_order memory_order);
[all …]
Dobject_accessor-inl.h29 inline ObjectHeader *ObjectAccessor::GetObject(const void *obj, size_t offset) in GetObject() argument
33 return reinterpret_cast<ObjectHeader *>(Get<object_pointer_type, is_volatile>(obj, offset)); in GetObject()
35 return Get<ObjectHeader *, is_volatile>(obj, offset); in GetObject()
40 inline void ObjectAccessor::SetObject(void *obj, size_t offset, ObjectHeader *value) in SetObject() argument
46 ObjectHeader *pre_val = GetObject<is_volatile, false, is_dyn>(obj, offset); in SetObject()
51 Set<object_pointer_type, is_volatile>(obj, offset, ToObjPtrType(value)); in SetObject()
53 Set<ObjectHeader *, is_volatile>(obj, offset, value); in SetObject()
61 Set<object_pointer_type, is_volatile>(obj, offset, ToObjPtrType(value)); in SetObject()
63 Set<ObjectHeader *, is_volatile>(obj, offset, value); in SetObject()
71 size_t offset) in GetObject() argument
[all …]
/arkcompiler/runtime_core/runtime/arch/aarch64/
Dcall_runtime.S18 .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/jspandafile/bytecode_inst/
Dinstruction.h36 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/runtime_core/verification/jobs/
Djob.h41 bool IsFieldPresentForOffset(uint32_t offset) const in IsFieldPresentForOffset() argument
43 return fields_.count(offset) != 0; in IsFieldPresentForOffset()
46 bool IsMethodPresentForOffset(uint32_t offset) const in IsMethodPresentForOffset() argument
48 return methods_.count(offset) != 0; in IsMethodPresentForOffset()
51 bool IsClassPresentForOffset(uint32_t offset) const in IsClassPresentForOffset() argument
53 return classes_.count(offset) != 0; in IsClassPresentForOffset()
56 const CachedField &GetField(uint32_t offset) const in GetField() argument
58 return fields_.at(offset); in GetField()
61 const CachedMethod &GetMethod(uint32_t offset) const in GetMethod() argument
63 return methods_.at(offset); in GetMethod()
[all …]
/arkcompiler/runtime_core/libpandabase/utils/
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) 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/ets_runtime/ecmascript/compiler/assembler/x64/
Dassembler_x64.cpp303 void AssemblerX64::EmitJmp(int32_t offset) in EmitJmp() argument
305 offset--; in EmitJmp()
306 if (InRange8(offset - sizeof(int8_t))) { in EmitJmp()
309 EmitI8(offset - sizeof(int8_t)); in EmitJmp()
313 EmitI32(offset - sizeof(int32_t)); in EmitJmp()
317 void AssemblerX64::EmitJa(int32_t offset) in EmitJa() argument
319 offset--; in EmitJa()
320 if (InRange8(offset - sizeof(int8_t))) { in EmitJa()
323 EmitI8(offset - sizeof(int8_t)); in EmitJa()
325 offset--; in EmitJa()
[all …]
/arkcompiler/runtime_core/compiler/tests/
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, false, {"adr", "ldr"}); in TestOffset()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/base/
Dbit_set.h48 bool TestBit(size_t offset) const in TestBit() argument
51 return data_.inlineWord_ & Mask(offset); in TestBit()
53 return data_.words_[Index(offset)] & Mask(IndexInWord(offset)); in TestBit()
57 void SetBit(size_t offset) in SetBit() argument
60 data_.inlineWord_ |= Mask(offset); in SetBit()
62 data_.words_[Index(offset)] |= Mask(IndexInWord(offset)); in SetBit()
66 void ClearBit(size_t offset) in ClearBit() argument
69 data_.inlineWord_ &= ~Mask(offset); in ClearBit()
71 data_.words_[Index(offset)] &= ~Mask(IndexInWord(offset)); in ClearBit()
133 size_t IndexInWord(size_t offset) const in IndexInWord() argument
[all …]
/arkcompiler/runtime_core/libpandabase/tests/
Dbit_memory_region_test.cpp23 static void CompareData(uint8_t *data, size_t offset, size_t length, uint32_t value, uint8_t fill_v… 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() local
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()
51 ASSERT_EQ(region2.Read(offset), value); in TEST()
52 CompareData(data.data(), offset, 1, value, fill_value); in TEST()
64 for (size_t offset = 0; offset < MAX_BITS_COUNT; offset++) { in TEST() local
70 BitMemoryRegion region1(data.data(), offset, length); in TEST()
[all …]
/arkcompiler/runtime_core/runtime/
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 == 0) { in VisitGCRoots()
[all …]
/arkcompiler/runtime_core/docs/
Dfile_format.md40 having an offset to an entity it doesn't matter whether the entity is local or foreign.
42 Runtime can easily check type of an offset by checking it is in the foreign region
45 or create a runtime object from the definition by the offset (for local entities).
53 An offset cannot contain values in the range *\[0; 32)*, except for specially mentioned cases.
197 A file begins with the header which is located at offset 0.
212Offset to the foreign region. The region must contain elements only of types [ForeignField](#forei…
215 | `class_idx_off` | `uint32_t` | Offset to the class index structure. The offset must p…
217 | `lnp_idx_off` | `uint32_t` | Offset to the line number program index structure. The…
219 | `literalarray_idx_off` | `uint32_t` | Offset to the literalarray index structure. The offset
221 | `index_section_off` | `uint32_t` | Offset to the index section. The offset must point to …
[all …]
/arkcompiler/ets_runtime/ecmascript/mem/
Ddyn_chunk.h46 int EmitSelf(size_t offset, size_t len);
87 inline uint32_t GetU32(size_t offset) const in GetU32() argument
90 return *reinterpret_cast<uint32_t *>(buf_ + offset); in GetU32()
93 inline void PutU32(size_t offset, uint32_t data) const in PutU32() argument
96 *reinterpret_cast<uint32_t *>(buf_ + offset) = data; in PutU32()
99 inline uint32_t GetU16(size_t offset) const in GetU16() argument
102 return *reinterpret_cast<uint16_t *>(buf_ + offset); in GetU16()
105 inline void PutU16(size_t offset, uint16_t data) const in PutU16() argument
108 *reinterpret_cast<uint16_t *>(buf_ + offset) = data; in PutU16()
111 inline uint32_t GetU8(size_t offset) const in GetU8() argument
[all …]
/arkcompiler/runtime_core/verification/config/debug_breakpoint/
Dbreakpoint.cpp41 void AddBreakpointConfig(const PandaString &method_name, Offset offset) in AddBreakpointConfig() argument
46 opt_breakpoints->push_back(offset); in AddBreakpointConfig()
48 breakpoint_config.push_back({method_name, Offsets {offset}}); in AddBreakpointConfig()
50 LOG_VERIFIER_DEBUG_BREAKPOINT_ADDED_INFO(method_name, offset); in AddBreakpointConfig()
57 for (const auto offset : opt_breakpoints.Get()) { in InsertBreakpoints() local
58 LOG_VERIFIER_DEBUG_BREAKPOINT_SET_INFO(method_name, id, offset); in InsertBreakpoints()
59 …agedBreakpoints.Breakpoint.Apply([&](auto &breakpoint_map) { breakpoint_map[id].insert(offset); }); in InsertBreakpoints()
64 bool CheckManagedBreakpoint(Method::UniqId id, Offset offset) in CheckManagedBreakpoint() argument
72 return iter->second.count(offset) > 0; in CheckManagedBreakpoint()
/arkcompiler/runtime_core/runtime/arch/
Dasm_support.h54 #define CFI_DEF_CFA(reg, offset) .cfi_def_cfa reg, (offset) argument
56 #define CFI_ADJUST_CFA_OFFSET(offset) .cfi_adjust_cfa_offset (offset) argument
60 #define CFI_REL_OFFSET(reg, offset) .cfi_rel_offset reg, (offset) argument
62 #define CFI_OFFSET(reg, offset) .cfi_offset reg, (offset) argument
79 #define CFI_DEF_CFA(reg, offset) argument
81 #define CFI_ADJUST_CFA_OFFSET(offset) argument
85 #define CFI_REL_OFFSET(reg, offset) argument
87 #define CFI_OFFSET(reg, offset) argument
/arkcompiler/runtime_core/runtime/bridge/arch/arm/
Dcompiled_code_to_runtime_bridge_arm.S18 .macro SAVE_CALLEE_GP_REGS base_reg, tmp_reg, offset argument
19 add \tmp_reg, \base_reg, #(\offset - CALLEE_REG0_OFFSET)
21 CFI_REL_OFFSET(r10, (\offset - CALLEE_REG0_OFFSET + 4*6))
22 CFI_REL_OFFSET(r9, (\offset - CALLEE_REG0_OFFSET + 4*5))
23 CFI_REL_OFFSET(r8, (\offset - CALLEE_REG0_OFFSET + 4*4))
24 CFI_REL_OFFSET(r7, (\offset - CALLEE_REG0_OFFSET + 4*3))
25 CFI_REL_OFFSET(r6, (\offset - CALLEE_REG0_OFFSET + 4*2))
26 CFI_REL_OFFSET(r5, (\offset - CALLEE_REG0_OFFSET + 4*1))
27 CFI_REL_OFFSET(r4, (\offset - CALLEE_REG0_OFFSET + 4*0))
30 .macro RESTORE_CALLEE_GP_REGS base_reg, tmp_reg, offset argument
[all …]
/arkcompiler/runtime_core/libpandafile/
Dbytecode_instruction-inl.h26 inline auto BytecodeInst<Mode>::ReadHelper(size_t byteoffset, size_t bytecount, size_t offset, size… in ReadHelper() argument
30 size_t right_shift = offset % BYTE_WIDTH; in ReadHelper()
51 template <size_t offset, size_t width, bool is_signed /* = false */>
55 constexpr size_t BYTE_OFFSET = offset / BYTE_WIDTH; in Read()
56 constexpr size_t BYTE_OFFSET_END = (offset + width + BYTE_WIDTH - 1) / BYTE_WIDTH; in Read()
62 return ReadHelper<return_type, storage_type>(BYTE_OFFSET, BYTE_COUNT, offset, width); in Read()
67 inline auto BytecodeInst<Mode>::Read64(size_t offset, size_t width) const in Read64() argument
72 ASSERT((offset % BYTE_WIDTH) + width <= BIT64); in Read64()
74 size_t byteoffset = offset / BYTE_WIDTH; in Read64()
75 size_t byteoffset_end = (offset + width + BYTE_WIDTH - 1) / BYTE_WIDTH; in Read64()
[all …]
Dbytecode_instruction.h95 const uint8_t *GetPointer(int32_t offset) const in GetPointer() argument
98 return pc_ + offset; in GetPointer()
112 T Read(size_t offset) const in Read() argument
115 return *reinterpret_cast<unaligned_type *>(GetPointer(offset)); in Read()
118 void Write(uint32_t value, uint32_t offset, uint32_t width) in Write() argument
120 auto *dst = const_cast<uint8_t *>(GetPointer(offset)); in Write()
122 … LOG(FATAL, PANDAFILE) << "Cannot write value : " << value << "at the dst offset : " << offset; in Write()
126 uint8_t ReadByte(size_t offset) const in ReadByte() argument
128 return Read<uint8_t>(offset); in ReadByte()
146 const uint8_t *GetPointer(int32_t offset) const in GetPointer() argument
[all …]
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Ddebug_info_extractor.h31 uint32_t offset; member
36 return offset < other.offset;
41 uint32_t offset; member
46 return offset < other.offset;
108 uint32_t currentOffset = lineTable[i].offset; in MatchWithLocation()
109 … uint32_t nextOffset = ((i == lineTable.size() - 1) ? UINT32_MAX : lineTable[i + 1].offset); in MatchWithLocation()
111 … if (pair.column == column && pair.offset >= currentOffset && pair.offset < nextOffset) { in MatchWithLocation()
112 return cb(JSPtLocation(jsPandaFile_, methodId, pair.offset, url)); in MatchWithLocation()
122 … bool MatchLineWithOffset(const Callback &cb, panda_file::File::EntityId methodId, uint32_t offset) in MatchLineWithOffset() argument
126 … auto iter = std::upper_bound(lineTable.begin(), lineTable.end(), LineTableEntry {offset, 0}); in MatchLineWithOffset()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/assembler/
Dassembler.h88 // +1 skip offset 0 in BindTo()
94 // +1 skip offset 0 in LinkTo()
105 // +1 skip offset 0 in LinkNearPos()
156 void PutI8(size_t offset, int8_t data) in PutI8() argument
158 buffer_.PutU8(offset, static_cast<int8_t>(data)); in PutI8()
161 void PutI32(size_t offset, int32_t data) in PutI32() argument
163 buffer_.PutU32(offset, static_cast<int32_t>(data)); in PutI32()
166 uint32_t GetU32(size_t offset) const in GetU32() argument
168 return buffer_.GetU32(offset); in GetU32()
171 int8_t GetI8(size_t offset) const in GetI8() argument
[all …]

12345678910>>...15