Home
last modified time | relevance | path

Searched full:position (Results 1 – 25 of 89) sorted by relevance

1234

/arkcompiler/runtime_core/irtoc/lang/
Dregmask.rb71 def []=(position, value) argument
72 position = @regmap[position] if position.is_a? Symbol
73 raise "Wrong `position` type" unless position.is_a? Integer
75 @value |= (1 << position)
77 @value &= ~(1 << position)
81 def [](position) argument
82 position = @regmap[position] if position.is_a? Symbol
83 raise "Wrong `position` type" unless position.is_a? Integer
84 @value & (1 << position) != 0
/arkcompiler/runtime_core/libpandabase/utils/
Dlist.h234 Iterator InsertAfter(ConstIterator position, ValueType &value) in InsertAfter() argument
237 new_node->next_ = position.node_->next_; in InsertAfter()
238 position.node_->next_ = new_node; in InsertAfter()
242 Iterator InsertAfter(ConstIterator position, InputIterator first, InputIterator last) in InsertAfter() argument
245 position = InsertAfter(position, *first++); in InsertAfter()
247 return Iterator(position.node_); in InsertAfter()
250 Iterator EraseAfter(ConstIterator position) in EraseAfter() argument
252 ConstIterator last = position; in EraseAfter()
255 return EraseAfter(position, last); in EraseAfter()
259 * Erase elements in range (position, last)
[all …]
Dspan.h178 Span SubSpan(size_t position, size_t length) const in SubSpan() argument
180 ASSERT((position + length) <= size_); in SubSpan()
181 … return Span(data_ + position, length); // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) in SubSpan()
184 Span SubSpan(size_t position) const in SubSpan() argument
186 ASSERT(position <= size_); in SubSpan()
188 return Span(data_ + position, size_ - position); in SubSpan()
192 Span<SubT> SubSpan(size_t position, size_t length) const in SubSpan() argument
194 ASSERT((position * sizeof(T) + length * sizeof(SubT)) <= (size_ * sizeof(T))); in SubSpan()
195 ASSERT(((reinterpret_cast<uintptr_t>(data_ + position)) % alignof(SubT)) == 0); in SubSpan()
197 return Span<SubT>(reinterpret_cast<SubT *>(data_ + position), length); in SubSpan()
Dbit_field.h31 static_assert(start < sizeof(uint64_t) * BITS_PER_BYTE, "Invalid position");
34 static_assert(bits_num + start <= sizeof(uint64_t) * BITS_PER_BYTE, "Invalid position + size");
/arkcompiler/runtime_core/compiler/optimizer/optimizations/regalloc/
Dlocation_mask.h52 void Set(size_t position) in Set() argument
54 ASSERT(position < mask_.size()); in Set()
55 mask_[position] = true; in Set()
56 usage_[position] = true; in Set()
59 void Reset(size_t position) in Reset() argument
61 ASSERT(position < mask_.size()); in Reset()
62 mask_[position] = false; in Reset()
65 bool IsSet(size_t position) const in IsSet() argument
67 ASSERT(position < mask_.size()); in IsSet()
68 return mask_[position]; in IsSet()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_string_iterator.cpp47 // 6. Let position be the value of the [[StringIteratorNextIndex]] internal slot of O. in Next()
48 uint32_t position = thisValue.GetObject<JSStringIterator>()->GetStringIteratorNextIndex(); in Next() local
52 // If position ≥ len, then in Next()
55 if (position >= len) { in Next()
61 // 9. Let first be the code unit value at index position in s. in Next()
62 uint16_t first = EcmaStringAccessor(string.GetObject<EcmaString>()).Get<false>(position); in Next()
65 …// 10. If first < 0xD800 or first > 0xDBFF or position+1 = len, let resultString be the string con… in Next()
68 if (position + 1 == len || first < base::utf_helper::DECODE_LEAD_LOW || in Next()
74 // a. Let second be the code unit value at index position+1 in the String S. in Next()
78 … uint16_t second = EcmaStringAccessor(string.GetObject<EcmaString>()).Get<false>(position + 1); in Next()
[all …]
/arkcompiler/ets_frontend/merge_abc/src/
DideHelpersProto.cpp39 void SourcePosition::Serialize(const panda::pandasm::SourcePosition &position, in Serialize() argument
42 protoPosition.set_line(position.line); in Serialize()
43 protoPosition.set_column(position.column); in Serialize()
47 panda::pandasm::SourcePosition &position) in Deserialize() argument
49 position.line = protoPosition.line(); in Deserialize()
50 position.column = protoPosition.column(); in Deserialize()
DideHelpersProto.h32 static void Serialize(const panda::pandasm::SourcePosition &position,
34 …rialize(const protoPanda::SourcePosition &protoPosition, panda::pandasm::SourcePosition &position);
/arkcompiler/ets_runtime/ecmascript/mem/
Dc_string.h77 uint32_t position = BUFF_SIZE - 1; in ToCString() local
78 buf[position] = '\0'; in ToCString()
82 buf[--position] = static_cast<int8_t>('0' - (number % 10)); // 10 : decimal in ToCString()
84 buf[--position] = static_cast<int8_t>('0' + (number % 10)); // 10 : decimal in ToCString()
89 buf[--position] = '-'; in ToCString()
91 return CString(&buf[position]); in ToCString()
Ddyn_chunk.cpp54 int DynChunk::Insert(uint32_t position, size_t len) in Insert() argument
56 if (size_ < position) { in Insert()
62 size_t moveSize = size_ - position; in Insert()
64 if (memmove_s(buf_ + position + len, moveSize, buf_ + position, moveSize) != EOK) { in Insert()
/arkcompiler/runtime_core/libpandabase/tests/
Dmem_range_test.cpp200 uintptr_t position; in TEST() local
202 position = RandomUintptr(); in TEST()
203 if (position > RANDOM_AREA_SIZE) { in TEST()
204 RandomTestInBounds(position - RANDOM_AREA_SIZE, position); in TEST()
206 RandomTestInBounds(position, position + RANDOM_AREA_SIZE); in TEST()
/arkcompiler/runtime_core/tests/checked/
DREADME.md10 command token at the zero position.
26 * **EVENT_NEXT** (event: pattern) ordered search event, i.e. search from position of the last found…
28 * **EVENT_NEXT_NOT** (event: pattern) ensure event is not occurred after current position
34 * **INST_NEXT_NOT** (event: pattern) ensure instruction is not occurred after current position
/arkcompiler/runtime_core/runtime/bridge/arch/arm/
Dhandle_call_v4_v4_v4_imm4_id16_arm.S24 // read reg index and acc position into r3 and advance insn_ptr
29 and r9, r9, #0xF // r9 now contains acc position
36 // check acc position and branch to acc/vreg index handling
Dhandle_call_v4_v4_v4_imm4_id16_armhf.S29 // read reg index and acc position into r10 and advance insn_ptr
34 and ip, ip, #0xF // ip now contains acc position
41 // check acc position and branch to acc/vreg index handling
Dhandle_call_v4_imm4_id16_arm.S24 // read arg index and acc position into r3 and advance insn_ptr
27 // check acc position
Dhandle_call_v4_imm4_id16_armhf.S26 // read arg index and acc position into r10 and advance insn_ptr
29 // check acc position
/arkcompiler/ets_runtime/ecmascript/base/tests/
Dgc_ring_buffer_test.cpp53 …* to each position of the container, and when the maximum length is reached, overwrite t…
99 …* @tc.desc: Set the subscript of the start position and the subscript of the end position of the c…
100 …* The next time you store data, store it from the first position. then call the "Count" …
/arkcompiler/ets_runtime/ecmascript/base/
Dbuiltins_base.h52 static inline JSHandle<JSTaggedValue> GetCallArg(EcmaRuntimeCallInfo *msg, uint32_t position) in GetCallArg() argument
54 if (position >= msg->GetArgsNumber()) { in GetCallArg()
58 return msg->GetCallArg(position); in GetCallArg()
/arkcompiler/runtime_core/runtime/bridge/arch/amd64/
Dhandle_call_v4_imm4_id16_amd64.S24 // read the pair of arg index and accumulator position into %ecx and advance insn_ptr
33 // handle acc position
36 cmpl $0, %ecx // if acc position is 0, jump
/arkcompiler/runtime_core/compiler/docs/
Dmemory_coalescing_doc.md79 1) find the lowest position the candidate can be sunk
80 2) find the highest position the instruction can be hoisted
81 …3) The place can be any between highest and lowest position. If the intersection is empty, coalesc…
133 Inst *position = FindBetterPlace(cand, inst);
135 pairs.push_back({cand, inst, position});
/arkcompiler/ets_runtime/ecmascript/ts_types/
Dglobal_ts_type_ref.h57 * Indicates the position of the iterator object in the runtime table.
58 * Position 0 in the runtime table stores the number of existing types, so start from 1.
Dts_obj_layout_info.h24 * The first position is used to store the number of properties.
25 * Store the key and gt of properties alternately starting from the second position.
/arkcompiler/runtime_core/docs/
Dcode_metainfo.md194 …s a table with offsets: removed NullCheck instruction position and corresponding SlowPath position.
199 | INST_NATIVE_PC | NullCheck instruction position. |
200 | SLOW_PATH_NATIVE_PC | NullCheck SlowPath position. |
/arkcompiler/runtime_core/libpandabase/mem/
Dgc_barrier.h45 constexpr uint8_t BARRIER_POS_OFFSET = 0U; // offset in bits for encoding position of barrier…
49 constexpr uint8_t EncodeBarrierType(uint8_t value, BarrierPosition position, BarrierActionType acti… in EncodeBarrierType() argument
52 return (value << 2U) | (position << internal::BARRIER_POS_OFFSET) | in EncodeBarrierType()
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_date_time_format_test.cpp107 keyArray->Set(thread, 0, globalConst->GetHandledYearString()); // 0 : 0 first position in BuiltinsDateTimeOptionsSet()
108 keyArray->Set(thread, 1, globalConst->GetHandledMonthString()); // 1 : 1 second position in BuiltinsDateTimeOptionsSet()
109 keyArray->Set(thread, 2, globalConst->GetHandledDayString()); // 2 : 2 third position in BuiltinsDateTimeOptionsSet()
110 keyArray->Set(thread, 3, globalConst->GetHandledHourString()); // 3 : 3 fourth position in BuiltinsDateTimeOptionsSet()
111 keyArray->Set(thread, 4, globalConst->GetHandledMinuteString()); // 4 : 4 fifth position in BuiltinsDateTimeOptionsSet()
112 keyArray->Set(thread, 5, globalConst->GetHandledSecondString()); // 5 : 5 sixth position in BuiltinsDateTimeOptionsSet()

1234