/arkcompiler/runtime_core/static_core/irtoc/lang/ |
H A D | regmask.rb | 72 def []=(position, value) 73 position = @regmap[position] if position.is_a? Symbol 74 raise "Wrong `position` type" unless position.is_a? Integer 76 @value |= (1 << position) 78 @value &= ~(1 << position) 82 def [](position) 83 position [all...] |
/arkcompiler/runtime_core/libpandabase/utils/ |
H A D | list.h | 234 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, las in EraseAfter() 261 EraseAfter(ConstIterator position, ConstIterator last) EraseAfter() argument 301 Splice(ConstIterator position, List &other) Splice() argument 309 Splice(ConstIterator position, List &other, ConstIterator first) Splice() argument 318 Splice(ConstIterator position, List &src_list, ConstIterator first, ConstIterator last) Splice() argument 565 insert(Iterator position, DListNode *new_node) insert() argument 589 erase(Iterator position) erase() argument [all...] |
H A D | span.h | 178 Span SubSpan(size_t position, size_t length) const 180 ASSERT((position + length) <= size_); 181 return Span(data_ + position, length); // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) 184 Span SubSpan(size_t position) const 186 ASSERT(position <= size_); 188 return Span(data_ + position, size_ - position); 192 Span<SubT> SubSpan(size_t position, size_t length) const 194 ASSERT((position * sizeof(T) + length * sizeof(SubT)) <= (size_ * sizeof(T))); 195 ASSERT(((reinterpret_cast<uintptr_t>(data_ + position)) [all...] |
/arkcompiler/runtime_core/static_core/libpandabase/utils/ |
H A D | list.h | 230 Iterator InsertAfter(ConstIterator position, ValueType &value) in InsertAfter() argument 233 newNode->next_ = position.node_->next_; in InsertAfter() 234 position.node_->next_ = newNode; in InsertAfter() 238 Iterator InsertAfter(ConstIterator position, InputIterator first, InputIterator last) in InsertAfter() argument 241 position = InsertAfter(position, *first++); in InsertAfter() 243 return Iterator(position.node_); in InsertAfter() 246 Iterator EraseAfter(ConstIterator position) in EraseAfter() argument 248 ConstIterator last = position; in EraseAfter() 251 return EraseAfter(position, las in EraseAfter() 255 EraseAfter(ConstIterator position, ConstIterator last) EraseAfter() argument 293 Splice(ConstIterator position, List &other) Splice() argument 299 Splice(ConstIterator position, List &other, ConstIterator first) Splice() argument 306 Splice(ConstIterator position, List &srcList, ConstIterator first, ConstIterator last) Splice() argument 548 insert(Iterator position, DListNode *new_node) insert() argument 575 erase(Iterator position) erase() argument [all...] |
H A D | span.h | 177 Span SubSpan(size_t position, size_t length) const 179 ASSERT((position + length) <= size_); 180 return Span(data_ + position, length); // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic) 183 Span SubSpan(size_t position) const 185 ASSERT(position <= size_); 187 return Span(data_ + position, size_ - position); 191 Span<SubT> SubSpan(size_t position, size_t length) const 193 ASSERT((position * sizeof(T) + length * sizeof(SubT)) <= (size_ * sizeof(T))); 194 ASSERT(((reinterpret_cast<uintptr_t>(data_ + position)) [all...] |
/arkcompiler/runtime_core/compiler/optimizer/optimizations/regalloc/ |
H A D | location_mask.h | 53 void Set(size_t position) in Set() argument 55 ASSERT(position < mask_.size()); in Set() 56 mask_[position] = true; in Set() 57 usage_[position] = true; in Set() 60 void Reset(size_t position) 62 ASSERT(position < mask_.size()); 63 mask_[position] = false; 66 bool IsSet(size_t position) const 68 ASSERT(position < mask_.size()); 69 return mask_[position]; [all...] |
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/regalloc/ |
H A D | location_mask.h | 50 void Set(size_t position) in Set() argument 52 ASSERT(position < mask_.size()); in Set() 53 mask_[position] = true; in Set() 54 usage_[position] = true; in Set() 57 void Reset(size_t position) 59 ASSERT(position < mask_.size()); 60 mask_[position] = false; 63 bool IsSet(size_t position) const 65 ASSERT(position < mask_.size()); 66 return mask_[position]; [all...] |
/arkcompiler/ets_frontend/ets2panda/util/ |
H A D | path.cpp | 53 int position = path_.Mutf8().find_last_of(PATH_DELIMITER); in InitializeFileName() local 55 util::StringView fileName = path_.Substr(position + 1, path_.Length()); in InitializeFileName() 70 size_t position = path_.Mutf8().find_last_of('.'); in InitializeFileExtension() local 71 if (position != std::string::npos && position + 1 <= path_.Length()) { in InitializeFileExtension() 72 fileExtension_ = path_.Substr(position + 1, path_.Length()); in InitializeFileExtension() 82 int position = absolutePath_.Mutf8().find_last_of(PATH_DELIMITER); in InitializeAbsoluteParentFolder() local 85 absoluteParentFolder_ = absolutePath_.Substr(0, position); in InitializeAbsoluteParentFolder() 95 int position = path_.Mutf8().find_last_of(PATH_DELIMITER); in InitializeParentFolder() local 97 parentFolder_ = path_.Substr(0, position); in InitializeParentFolder() [all...] |
/arkcompiler/ets_frontend/merge_abc/src/ |
H A D | ideHelpersProto.cpp | 39 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() 49 position.line = protoPosition.line(); in Deserialize() 50 position.column = protoPosition.column(); in Deserialize() 46 Deserialize(const protoPanda::SourcePosition &protoPosition, panda::pandasm::SourcePosition &position) Deserialize() argument
|
H A D | ideHelpersProto.h | 32 static void Serialize(const panda::pandasm::SourcePosition &position, 34 static void Deserialize(const protoPanda::SourcePosition &protoPosition, panda::pandasm::SourcePosition &position);
|
/arkcompiler/ets_runtime/ecmascript/serializer/ |
H A D | serialize_data.h | 225 uint8_t ReadUint8(size_t &position) in ReadUint8() argument 227 ASSERT(position < Size()); in ReadUint8() 228 return *(buffer_ + (position++)); in ReadUint8() 241 uint32_t ReadUint32(size_t &position) 243 ASSERT(position < Size()); 244 uint32_t value = *reinterpret_cast<uint32_t *>(buffer_ + position); 245 position += sizeof(uint32_t); 264 JSTaggedType ReadJSTaggedType(size_t &position) 266 ASSERT(position < Size()); 267 JSTaggedType value = *reinterpret_cast<uint64_t *>(buffer_ + position); [all...] |
/arkcompiler/ets_runtime/ecmascript/mem/ |
H A D | dyn_chunk.cpp | 54 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()
|
H A D | c_string.h | 78 uint32_t position = BUFF_SIZE - 1; in ToCString() local 79 buf[position] = '\0'; in ToCString() 86 buf[--position] = static_cast<int8_t>('0' - (n % 10)); // 10 : decimal in ToCString() 90 buf[--position] = '-'; in ToCString() 92 return CString(&buf[position]); in ToCString()
|
/arkcompiler/runtime_core/static_core/runtime/regexp/ecmascript/mem/ |
H A D | dyn_chunk.cpp | 53 int DynChunk::Insert(uint32_t position, size_t len) in Insert() argument 55 if (size_ < position) { in Insert() 61 size_t moveSize = size_ - position; in Insert() 63 if (memmove_s(buf_ + position + len, moveSize, buf_ + position, moveSize) != EOK) { in Insert()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
H A D | builtins_string_iterator.cpp | 47 // 6. Let position be the value of the [[StringIteratorNextIndex]] internal slot of O. in NextInternal() 48 uint32_t position = thisValue.GetObject<JSStringIterator>()->GetStringIteratorNextIndex(); in NextInternal() local 52 // If position ≥ len, then in NextInternal() 55 if (position >= len) { in NextInternal() 61 // 9. Let first be the code unit value at index position in s. in NextInternal() 62 uint16_t first = EcmaStringAccessor(string.GetObject<EcmaString>()).Get<false>(position); in NextInternal() 65 // 10. If first < 0xD800 or first > 0xDBFF or position+1 = len, let resultString be the string consisting of the in NextInternal() 68 if (position + 1 == len || first < base::utf_helper::DECODE_LEAD_LOW || in NextInternal() 79 // a. Let second be the code unit value at index position+1 in the String S. in NextInternal() 83 uint16_t second = EcmaStringAccessor(string.GetObject<EcmaString>()).Get<false>(position in NextInternal() [all...] |
/arkcompiler/ets_frontend/ets2panda/ir/statements/ |
H A D | forOfStatement.cpp | 153 auto const &position = right_->Start(); in CheckIteratorMethodForObject() local 166 checker->LogTypeError("Object type doesn't have proper iterator method.", position); in CheckIteratorMethodForObject() 173 checker::Signature *signature = checker->ValidateSignatures(signatures, nullptr, arguments, position, "iterator", in CheckIteratorMethodForObject() 176 checker->LogTypeError("Cannot find iterator method with the required signature.", position); in CheckIteratorMethodForObject() 179 checker->ValidateSignatureAccessibility(sourceType, nullptr, signature, position, in CheckIteratorMethodForObject() 188 if (!CheckReturnTypeOfIteratorMethod(checker, sourceType, signature, position)) { in CheckIteratorMethodForObject() 195 checker->LogTypeError("Iterator object doesn't have proper next method.", position); in CheckIteratorMethodForObject() 201 auto const *const nextSignature = checker->ValidateSignatures(nextSignatures, nullptr, arguments, position, in CheckIteratorMethodForObject() 215 const lexer::SourcePosition &position) in CheckReturnTypeOfIteratorMethod() 233 checker->LogTypeError("Iterator method must return an object which implements Iterator<T>", position); in CheckReturnTypeOfIteratorMethod() 213 CheckReturnTypeOfIteratorMethod(checker::ETSChecker *checker, checker::ETSObjectType *sourceType, checker::Signature *signature, const lexer::SourcePosition &position) CheckReturnTypeOfIteratorMethod() argument [all...] |
/arkcompiler/runtime_core/libpandabase/tests/ |
H A D | mem_range_test.cpp | 200 uintptr_t position; 202 position = RandomUintptr(); 203 if (position > RANDOM_AREA_SIZE) { 204 RandomTestInBounds(position - RANDOM_AREA_SIZE, position); 206 RandomTestInBounds(position, position + RANDOM_AREA_SIZE);
|
/arkcompiler/runtime_core/static_core/libpandabase/tests/ |
H A D | mem_range_test.cpp | 222 uintptr_t position; 224 position = RandomUintptr(); 225 if (position > RANDOM_AREA_SIZE) { 226 RandomTestInBounds(position - RANDOM_AREA_SIZE, position); 228 RandomTestInBounds(position, position + RANDOM_AREA_SIZE);
|
/arkcompiler/ets_runtime/tools/circuit_viewer/src/engine/graphics/shaders/ |
H A D | shader_fast.js | 17 attribute vec3 position; 34 vec4 tv=vec4(position.x, position.y, position.z, 1.0)*tmpMat*uMat;
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/ |
H A D | disassembly.h | 35 CodeItem(size_t position, size_t cursorOffset, size_t depth) in CodeItem() argument 36 : position_(position), cursorOffset_(cursorOffset), depth_(depth) in CodeItem() 118 void AddCode(size_t position, size_t cursorOffset, size_t depth) in AddCode() argument 120 CodeItem item(position, cursorOffset, depth); in AddCode()
|
/arkcompiler/ets_runtime/ecmascript/base/ |
H A D | builtins_base.h | 179 static inline JSHandle<JSTaggedValue> GetCallArg(EcmaRuntimeCallInfo *msg, uint32_t position) in GetCallArg() argument 181 if (position >= msg->GetArgsNumber()) { in GetCallArg() 185 return msg->GetCallArg(position); in GetCallArg()
|
H A D | dtoa_helper.h | 125 int BitAt(int position) in BitAt() argument 127 if (position >= SHIFT_64BIT) { in BitAt() 128 return static_cast<int>((high_bits_ >> (position - SHIFT_64BIT)) & 1); in BitAt() 130 return static_cast<int>((low_bits_ >> position) & 1); in BitAt()
|
/arkcompiler/runtime_core/static_core/assembler/ |
H A D | lexer.cpp | 327 size_t position = currLine_->pos; in LexBadTokens() local 328 while (FindDelim(currLine_->buffer[position]) == Token::Type::DEL_SQUARE_BRACKET_L || in LexBadTokens() 329 FindDelim(currLine_->buffer[position]) == Token::Type::DEL_SQUARE_BRACKET_R) { in LexBadTokens() 330 position++; in LexBadTokens() 332 if (isspace(currLine_->buffer[position]) == 0 && (position != currLine_->end)) { in LexBadTokens() 333 currLine_->pos = position; in LexBadTokens() 341 * to another position (next after the last character of the last
|
/arkcompiler/runtime_core/libpandabase/mem/ |
H A D | gc_barrier.h | 45 constexpr uint8_t BARRIER_POS_OFFSET = 0U; // offset in bits for encoding position of barrier(pre or post) 49 constexpr uint8_t EncodeBarrierType(uint8_t value, BarrierPosition position, BarrierActionType action_type) in EncodeBarrierType() argument 52 return (value << 2U) | (position << internal::BARRIER_POS_OFFSET) | in EncodeBarrierType()
|
/arkcompiler/runtime_core/static_core/libpandabase/mem/ |
H A D | gc_barrier.h | 41 constexpr uint8_t BARRIER_POS_OFFSET = 0U; // offset in bits for encoding position of barrier(pre or post) 45 constexpr uint8_t EncodeBarrierType(uint8_t value, BarrierPosition position, BarrierActionType actionType) in EncodeBarrierType() argument 48 return (value << 2U) | (position << internal::BARRIER_POS_OFFSET) | in EncodeBarrierType()
|