/arkcompiler/runtime_core/static_core/plugins/ets/tests/mock/ |
D | stack_trace_test.cpp | 73 auto pos = 0; in TEST_F() local 75 pos = captured.find("Test message", pos); in TEST_F() 76 ASSERT_NE(pos, std::string::npos); in TEST_F() 78 pos = captured.find("StackTraceTest.throwing", pos); in TEST_F() 79 ASSERT_NE(pos, std::string::npos); in TEST_F() 81 pos = captured.find("StackTraceTest.nestedFunc2", pos); in TEST_F() 82 ASSERT_NE(pos, std::string::npos); in TEST_F() 84 pos = captured.find("StackTraceTest.nestedFunc1", pos); in TEST_F() 85 ASSERT_NE(pos, std::string::npos); in TEST_F() 87 pos = captured.find("StackTraceTest.invokeException", pos); in TEST_F() [all …]
|
/arkcompiler/ets_runtime/ecmascript/base/ |
D | path_helper.h | 48 size_t pos = moduleName.find(NAME_SPACE_TAG); in DeleteNamespace() local 49 if (pos == CString::npos) { in DeleteNamespace() 52 moduleName.erase(pos, moduleName.size() - pos); in DeleteNamespace() 61 size_t pos = recordName.find(SLASH_TAG); in AdaptOldIsaRecord() local 62 if (pos != CString::npos) { in AdaptOldIsaRecord() 63 pos = recordName.find(SLASH_TAG, pos + 1); in AdaptOldIsaRecord() 64 if (pos != CString::npos) { in AdaptOldIsaRecord() 65 recordName = recordName.substr(pos + 1); in AdaptOldIsaRecord() 76 size_t pos = moduleRequestName.find(COLON_TAG); in GetStrippedModuleName() local 77 if (pos == CString::npos) { in GetStrippedModuleName() [all …]
|
D | string_helper.h | 61 CString::size_type pos(0); in ReplaceAll() 62 while ((pos = str.find(oldValue, pos)) != CString::npos) { in ReplaceAll() 63 str.replace(pos, oldValue.length(), newValue); in ReplaceAll() 64 pos += newValue.length(); in ReplaceAll() 75 CString::size_type pos(0); in Replace() 76 if ((pos = str.find(oldValue, pos)) != CString::npos) { in Replace() 77 str.replace(pos, oldValue.length(), newValue); in Replace() 124 static inline size_t Find(const std::string &thisStr, const std::string &searchStr, int32_t pos) in Find() argument 126 size_t idx = thisStr.find(searchStr, pos); in Find() 130 …tic inline size_t Find(const std::u16string &thisStr, const std::u16string &searchStr, int32_t pos) in Find() argument [all …]
|
/arkcompiler/runtime_core/static_core/verification/util/ |
D | bit_vector.h | 272 for (size_t pos = 0; pos < SizeInWords(); ++pos) { in Clr() local 273 data_[pos] = 0; in Clr() 278 for (size_t pos = 0; pos < SizeInWords(); ++pos) { in Set() local 279 data_[pos] = MAX_WORD; in Set() 284 for (size_t pos = 0; pos < SizeInWords(); ++pos) { in Invert() local 285 data_[pos] = ~data_[pos]; in Invert() 317 for (size_t pos = 0; pos < numFullWords; pos++) { variable 318 if (data_[pos] != rhs.data_[pos]) { 344 auto processWord = [this, &handler](size_t pos) { in Process() 345 const Word val = handler(data_[pos], BITS_IN_WORD); in Process() [all …]
|
/arkcompiler/ets_frontend/es2panda/util/ |
D | bitset.cpp | 47 void BitSet::Set(size_t pos) noexcept in Set() argument 49 Set(pos, true); in Set() 52 void BitSet::Set(size_t pos, bool value) noexcept in Set() argument 54 ASSERT(pos < size_); in Set() 55 size_t idx = pos >> shiftOffset; in Set() 56 size_t slot = pos & shiftMask; in Set() 65 bool BitSet::Test(size_t pos) const noexcept in Test() 67 ASSERT(pos < size_); in Test() 68 size_t idx = pos >> shiftOffset; in Test() 69 size_t slot = pos & shiftMask; in Test()
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mempool/src/ |
D | maple_string.cpp | 56 size_t MapleString::find(const MapleString &str, size_t pos) const in find() 58 if ((dataLength - pos) < str.dataLength) { in find() 61 for (size_t i = pos; i < (dataLength - str.dataLength + 1); ++i) { in find() 79 size_t MapleString::find(const char *str, size_t pos) const in find() 85 if ((dataLength - pos) < strLen) { in find() 88 for (size_t i = pos; i < (dataLength - strLen + 1); ++i) { in find() 106 size_t MapleString::find_last_of(const char *str, size_t pos) const in find_last_of() 112 if ((dataLength - pos) < strLen) { in find_last_of() 115 … for (ssize_t i = static_cast<ssize_t>(dataLength - strLen); i >= static_cast<ssize_t>(pos); --i) { in find_last_of() 133 size_t MapleString::find(const char *str, size_t pos, size_t n) const in find() argument [all …]
|
/arkcompiler/runtime_core/assembler/ |
D | lexer.cpp | 170 LOG(DEBUG, ASSEMBLER) << std::string_view(&*(curr_line_->buffer.begin() + curr_line_->pos), in TokenizeString() 171 curr_line_->end - curr_line_->pos); in TokenizeString() 193 return curr_line_->pos == curr_line_->end; in Eol() 228 char quote = curr_line_->buffer[curr_line_->pos]; in LexString() 229 size_t begin = curr_line_->pos; in LexString() 231 ++(curr_line_->pos); in LexString() 233 char c = curr_line_->buffer[curr_line_->pos]; in LexString() 249 if (curr_line_->buffer[curr_line_->pos] != quote) { in LexString() 251 … Error::ErrorType::ERR_STRING_MISSING_TERMINATING_CHARACTER, "", begin, curr_line_->pos, in LexString() 256 ++(curr_line_->pos); in LexString() [all …]
|
/arkcompiler/runtime_core/static_core/assembler/ |
D | lexer.cpp | 167 LOG(DEBUG, ASSEMBLER) << std::string_view(&*(currLine_->buffer.begin() + currLine_->pos), in TokenizeString() 168 currLine_->end - currLine_->pos); in TokenizeString() 189 return currLine_->pos == currLine_->end; in Eol() 222 char quote = currLine_->buffer[currLine_->pos]; in LexString() 223 size_t begin = currLine_->pos; in LexString() 225 ++(currLine_->pos); in LexString() 227 char c = currLine_->buffer[currLine_->pos]; in LexString() 243 if (currLine_->buffer[currLine_->pos] != quote) { in LexString() 245 … Error::ErrorType::ERR_STRING_MISSING_TERMINATING_CHARACTER, "", begin, currLine_->pos, in LexString() 250 ++(currLine_->pos); in LexString() [all …]
|
/arkcompiler/ets_frontend/ets2panda/util/ |
D | bitset.cpp | 47 void BitSet::Set(size_t pos) noexcept in Set() argument 49 Set(pos, true); in Set() 52 void BitSet::Set(size_t pos, bool value) noexcept in Set() argument 54 ASSERT(pos < size_); in Set() 55 size_t idx = pos >> SHIFT_OFFSET; in Set() 56 size_t slot = pos & SHIFT_MASK; in Set() 65 bool BitSet::Test(size_t pos) const noexcept in Test() 67 ASSERT(pos < size_); in Test() 68 size_t idx = pos >> SHIFT_OFFSET; in Test() 69 size_t slot = pos & SHIFT_MASK; in Test()
|
/arkcompiler/ets_runtime/ecmascript/module/ |
D | module_path_helper.cpp | 68 size_t pos = CString::npos; in ParseOhmUrl() local 71 pos = BUNDLE_INSTALL_PATH_LEN; in ParseOhmUrl() 73 if (pos != CString::npos) { in ParseOhmUrl() 75 pos = inputFileName.find(PathHelper::SLASH_TAG, BUNDLE_INSTALL_PATH_LEN); in ParseOhmUrl() 76 if (pos == CString::npos) { in ParseOhmUrl() 79 … CString moduleName = inputFileName.substr(BUNDLE_INSTALL_PATH_LEN, pos - BUNDLE_INSTALL_PATH_LEN); in ParseOhmUrl() 208 size_t pos = moduleRequestName.find(PathHelper::CURRENT_DIREATORY_TAG); in MakeNewRecord() local 209 if (pos == 0) { in MakeNewRecord() 212 pos = recordName.rfind(PathHelper::SLASH_TAG); in MakeNewRecord() 213 if (pos != CString::npos) { in MakeNewRecord() [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/src/ |
D | namemangler.cpp | 105 size_t pos = 0; in EncodeName() local 112 buf[pos++] = '_'; in EncodeName() 113 buf[pos++] = '_'; in EncodeName() 115 buf[pos++] = 'A'; in EncodeName() 117 buf[pos++] = static_cast<char>(c); in EncodeName() 123 buf[pos++] = '_'; in EncodeName() 125 buf[pos++] = GETHEXCHARU(n); in EncodeName() 127 buf[pos++] = GETHEXCHARU(n); in EncodeName() 132 buf[pos++] = '_'; in EncodeName() 135 buf[pos++] = 'u'; in EncodeName() [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/ |
D | utils.h | 120 template <size_t pos, typename = std::enable_if_t<pos<32>> struct bit_field { 121 enum { value = 1U << pos }; 124 template <size_t pos> 125 constexpr uint32_t bit_field_v = bit_field<pos>::value; 127 template <size_t pos, typename = std::enable_if_t<pos<64>> struct lbit_field { 128 enum { value = 1ULL << pos }; 131 template <size_t pos> 132 constexpr uint64_t lbit_field_v = bit_field<pos>::value;
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/ |
D | src_position.h | 93 bool IsBfOrEq(SrcPosition pos) const in IsBfOrEq() argument 95 return (pos.FileNum() == FileNum() && in IsBfOrEq() 96 … ((LineNum() < pos.LineNum()) || ((LineNum() == pos.LineNum()) && (Column() <= pos.Column())))); in IsBfOrEq() 99 bool IsSrcPostionEq(SrcPosition pos) const in IsSrcPostionEq() argument 101 return FileNum() == pos.FileNum() && LineNum() == pos.LineNum() && Column() == pos.Column(); in IsSrcPostionEq()
|
/arkcompiler/ets_runtime/ecmascript/compiler/pgo_type/ |
D | pgo_type_manager.cpp | 57 uint32_t pos = 0; in GenHClassInfo() local 64 profileTyperToHClassIndex_.emplace(key, pos); in GenHClassInfo() 65 hclassInfo->Set(thread_, pos++, JSTaggedValue(hclass)); in GenHClassInfo() 76 for (uint32_t pos = 0; pos < count; pos++) { in GenArrayInfo() local 77 arrayInfo->Set(thread_, pos, JSTaggedValue(arrayData_[pos])); in GenArrayInfo() 87 for (uint32_t pos = 0; pos < count; pos++) { in GenConstantIndexInfo() local 88 constantIndexInfo->Set(thread_, pos, JSTaggedValue(constantIndexData_[pos])); in GenConstantIndexInfo()
|
/arkcompiler/ets_runtime/ecmascript/compiler/assembler/x64/ |
D | assembler_x64.cpp | 255 auto pos = GetCurrentPosition(); in Align16() local 258 size_t delta = static_cast<size_t>(x - (pos & (x - 1))); in Align16() 536 auto pos = GetCurrentPosition(); in Callq() local 542 target->LinkTo(pos + 1); in Callq() 562 auto pos = GetCurrentPosition(); in Jmp() local 566 emitPos = static_cast<int32_t>(target->GetLinkedNearPos() - pos); in Jmp() 569 target->LinkNearPos(pos + 1); in Jmp() 579 target->LinkTo(pos + 1); in Jmp() 615 auto pos = GetCurrentPosition(); in Ja() local 619 emitPos = static_cast<int32_t>(target->GetLinkedNearPos() - pos); in Ja() [all …]
|
/arkcompiler/ets_frontend/ets2panda/checker/ets/ |
D | arithmetic.cpp | 178 … lexer::TokenType operationType, lexer::SourcePosition pos, in CheckBinaryOperatorMulDivMod() argument 190 …wTypeError("Bad operand type, unions are not allowed in binary expressions except equality.", pos); in CheckBinaryOperatorMulDivMod() 194 ThrowTypeError("Bad operand type, the types of the operands must be numeric type.", pos); in CheckBinaryOperatorMulDivMod() 206 … lexer::TokenType operationType, lexer::SourcePosition pos, in CheckBinaryOperatorPlus() argument 211 …wTypeError("Bad operand type, unions are not allowed in binary expressions except equality.", pos); in CheckBinaryOperatorPlus() 217 … ThrowTypeError("Bad operand type, the types of the operands must be numeric type.", pos); in CheckBinaryOperatorPlus() 230 …ThrowTypeError("Bad operand type, the types of the operands must be numeric type or String.", pos); in CheckBinaryOperatorPlus() 241 … lexer::TokenType operationType, lexer::SourcePosition pos, in CheckBinaryOperatorShift() argument 246 …wTypeError("Bad operand type, unions are not allowed in binary expressions except equality.", pos); in CheckBinaryOperatorShift() 257 ThrowTypeError("Bad operand type, the types of the operands must be numeric type.", pos); in CheckBinaryOperatorShift() [all …]
|
D | typeRelationContext.h | 33 … const lexer::SourcePosition &pos, std::initializer_list<TypeErrorMessageElement> list, 67 relation->RaiseError(list, pos); 90 … const lexer::SourcePosition &pos, std::initializer_list<TypeErrorMessageElement> list, 118 relation->RaiseError(list, pos); 139 const lexer::SourcePosition &pos) in InstantiationContext() argument 142 if (ValidateTypeArguments(type, typeArgs, pos)) { in InstantiationContext() 149 const lexer::SourcePosition &pos) in InstantiationContext() argument 155 InstantiateType(type, typeArgs, pos); in InstantiationContext() 165 const lexer::SourcePosition &pos); 171 …iateType(ETSObjectType *type, ArenaVector<Type *> &typeArgTypes, const lexer::SourcePosition &pos);
|
/arkcompiler/toolchain/tooling/client/utils/ |
D | utils.cpp | 75 std::size_t pos = str.find_first_of(delimiter, strIndex); in SplitString() local 76 while ((pos < str.size()) && (pos > strIndex)) { in SplitString() 77 std::string subStr = str.substr(strIndex, pos - strIndex); in SplitString() 79 strIndex = pos; in SplitString() 81 pos = str.find_first_of(delimiter, strIndex); in SplitString() 83 if (pos > strIndex) { in SplitString() 84 std::string subStr = str.substr(strIndex, pos - strIndex); in SplitString()
|
/arkcompiler/ets_runtime/tools/circuit_viewer/src/ir/ |
D | IrViewer.js | 277 levely.add(n.pos.y); 298 let dx = n.pos.x - x1; 299 let dy = n.pos.y - y1; 360 if (maxx < n.pos.x + n.nameWidth + this.offx_) { 361 maxx = n.pos.x + n.nameWidth + this.offx_; 363 if (minx > n.pos.x + this.offx_) { 364 minx = n.pos.x + this.offx_; 367 …if (XTools.InRect(XTools.MOUSE_POS.x, XTools.MOUSE_POS.y, n.pos.x + this.offx_ - 3, n.pos.y + this… 377 if (n.pos.x === IrToPicture.INVALID_DEEP) { 378 n.pos.x = mmx1[1] - this.offx_ + 20; [all …]
|
/arkcompiler/ets_frontend/test262/ |
D | module_tests.txt | 271 parse-err-decl-pos-export-arrow-function.js 272 parse-err-decl-pos-export-block-stmt.js 273 parse-err-decl-pos-export-block-stmt-list.js 274 parse-err-decl-pos-export-class-decl-meth.js 275 parse-err-decl-pos-export-class-decl-method-gen.js 276 parse-err-decl-pos-export-class-decl-method-gen-static.js 277 parse-err-decl-pos-export-class-decl-meth-static.js 278 parse-err-decl-pos-export-class-expr-meth-gen.js 279 parse-err-decl-pos-export-class-expr-meth-gen-static.js 280 parse-err-decl-pos-export-class-expr-meth.js [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/utils/ |
D | ref_vector.h | 208 reference at(size_type pos) 210 return *(base.at(pos)); 213 const_reference at(size_type pos) const 215 return *(base.at(pos)); 218 reference operator[](size_type pos) noexcept 220 return *(base[pos]); 223 const_reference operator[](size_type pos) const noexcept 225 return *(base[pos]); 280 iterator insert(const_iterator pos, value_type &value) 282 return base.insert(pos, &value); [all …]
|
/arkcompiler/ets_frontend/ets2panda/ |
D | es2panda.cpp | 30 std::size_t pos = path.find_last_of(delims); in DirName() local 31 if (pos == std::string::npos) { in DirName() 35 if (pos == 0) { in DirName() 39 std::string_view dirPath = path.substr(0, pos); in DirName() 41 return path.substr(0, pos + 1); in DirName() 44 return path.substr(0, pos); in DirName()
|
/arkcompiler/ets_runtime/ecmascript/extractortool/src/ |
D | zip_file_reader_mem.cpp | 32 auto pos = std::string::size_type{}; in init() 34 auto const readCount = read(fd_, fileContent_.data() + pos, fileContent_.size() - pos); in init() 42 pos += readCount; in init()
|
/arkcompiler/runtime_core/compiler/optimizer/optimizations/regalloc/ |
D | interference_graph.cpp | 102 unsigned pos = 0; // Initialy we have set S of all elements in LexBFS() local 105 ASSERT(pos < out.size()); in LexBFS() 106 auto id = out[pos]; in LexBFS() 107 pos++; in LexBFS() 112 ASSERT(pos <= prev_end); in LexBFS() 113 if (pos == prev_end) { in LexBFS() 114 if (pos == num) { in LexBFS() 123 ASSERT(pos <= prev_end); in LexBFS() 124 auto it = std::stable_partition(out.begin() + pos, out.begin() + prev_end, in LexBFS() 128 if (pivot > pos && pivot != prev_end) { in LexBFS()
|
/arkcompiler/ets_frontend/es2panda/lexer/token/ |
D | sourceLocation.cpp | 81 SourceLocation LineIndex::GetLocation(SourcePosition pos) noexcept in GetLocation() argument 83 size_t line = pos.line; in GetLocation() 86 ASSERT(pos.line < entrys_.size()); in GetLocation() 87 const auto &entry = entrys_[pos.line]; in GetLocation() 88 size_t diff = pos.index - entry.lineStart; in GetLocation()
|