/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 RepalceAll() 62 while ((pos = str.find(oldValue, pos)) != CString::npos) { in RepalceAll() 63 str.replace(pos, oldValue.length(), newValue); in RepalceAll() 64 pos += newValue.length(); in RepalceAll() 111 static inline size_t Find(const std::string &thisStr, const std::string &searchStr, int32_t pos) in Find() argument 113 size_t idx = thisStr.find(searchStr, pos); in Find() 117 …tic inline size_t Find(const std::u16string &thisStr, const std::u16string &searchStr, int32_t pos) in Find() argument 119 size_t idx = thisStr.find(searchStr, pos); in Find() 123 …ic inline size_t RFind(const std::u16string &thisStr, const std::u16string &searchStr, int32_t pos) in RFind() argument 125 size_t idx = thisStr.rfind(searchStr, pos); in RFind() [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()
|
D | bitset.h | 34 void Set(size_t pos) noexcept; 35 void Set(size_t pos, bool value) noexcept; 36 bool Test(size_t pos) const noexcept;
|
D | moduleHelpers.cpp | 49 std::size_t pos = line.find(":"); in CompileNpmModuleEntryList() local 50 std::string recordName = line.substr(0, pos); in CompileNpmModuleEntryList() 51 std::string field = line.substr(pos + 1); in CompileNpmModuleEntryList()
|
/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/ets_runtime/ecmascript/module/ |
D | module_path_helper.cpp | 69 size_t pos = CString::npos; in ParseOhmUrl() local 72 pos = startStrLen; in ParseOhmUrl() 74 if (pos != CString::npos) { in ParseOhmUrl() 76 pos = inputFileName.find(PathHelper::SLASH_TAG, startStrLen); in ParseOhmUrl() 77 if (pos == CString::npos) { in ParseOhmUrl() 80 CString moduleName = inputFileName.substr(startStrLen, pos - startStrLen); 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_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/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_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/es2panda/lexer/token/ |
D | sourceLocation.cpp | 80 SourceLocation LineIndex::GetLocation(SourcePosition pos) noexcept in GetLocation() argument 82 size_t line = pos.line; in GetLocation() 85 ASSERT(pos.line < entrys_.size()); in GetLocation() 86 const auto &entry = entrys_[pos.line]; in GetLocation() 87 size_t diff = pos.index - entry.lineStart; in GetLocation()
|
/arkcompiler/toolchain/inspector/ |
D | log_wrapper.cpp | 29 for (auto pos = str.find(prefix, 0); pos != std::string::npos; pos = str.find(prefix, pos)) { in StripString() local 30 str.erase(pos, prefix.size()); in StripString()
|
/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() 129 if (pivot > pos && pivot != prev_end) { in LexBFS()
|
/arkcompiler/ets_frontend/es2panda/binder/ |
D | binder.h | 72 T *AddDecl(const lexer::SourcePosition &pos, bool isDeclare, Args &&... args); 75 …T *AddDecl(const lexer::SourcePosition &pos, DeclarationFlags flag, bool isDeclare, Args &&... arg… 78 T *AddTsDecl(const lexer::SourcePosition &pos, bool isDeclare, Args &&... args); 81 …T *AddTsDecl(const lexer::SourcePosition &pos, DeclarationFlags flag, bool isDeclare, Args &&... a… 95 …[[noreturn]] void ThrowRedeclaration(const lexer::SourcePosition &pos, const util::StringView &nam… 96 …[[noreturn]] void ThrowUndeclaredExport(const lexer::SourcePosition &pos, const util::StringView &… 97 …[[noreturn]] void ThrowInvalidDstrTarget(const lexer::SourcePosition &pos, const util::StringView … 279 T *Binder::AddTsDecl(const lexer::SourcePosition &pos, bool isDeclare, Args &&... args) in AddTsDecl() argument 289 ThrowRedeclaration(pos, decl->Name()); in AddTsDecl() 293 T *Binder::AddTsDecl(const lexer::SourcePosition &pos, DeclarationFlags flag, bool isDeclare, Args … in AddTsDecl() argument [all …]
|
/arkcompiler/runtime_core/libpandabase/utils/ |
D | json_builder.cpp | 32 auto pos = iter - string.begin(); in JsonEscape() local 34 os << string.substr(0, pos); in JsonEscape() 66 string.remove_prefix(pos + 1); in JsonEscape()
|
D | pandargs.h | 550 for (size_t pos = sub_args_str.find(',', 0); pos != std::string_view::npos; in ParseCompoundArg() local 551 start = pos + 1, pos = sub_args_str.find(',', start)) { in ParseCompoundArg() 552 auto arg_str = sub_args_str.substr(start, pos - start); in ParseCompoundArg() 940 std::size_t pos = param_str.find_first_of(delimiter, param_str_index); in ParseListArgParam() local 941 while (pos < param_str.size()) { in ParseListArgParam() 942 value.push_back(param_str.substr(param_str_index, pos - param_str_index)); in ParseListArgParam() 943 param_str_index = pos; in ParseListArgParam() 945 pos = param_str.find_first_of(delimiter, param_str_index); in ParseListArgParam() 948 value.push_back(param_str.substr(param_str_index, pos - param_str_index)); in ParseListArgParam() 953 static std::size_t NextSeparator(std::string_view argstr, std::size_t pos = 0, [all …]
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | es6ClassTest8.ts | 84 constructor(public pos: Vector, lookAt: Vector) { 94 this.forward = Vector.norm(Vector.minus(lookAt,this.pos)); 95 AssertType(this.forward = Vector.norm(Vector.minus(lookAt,this.pos)), "Vector"); 98 AssertType(Vector.norm(Vector.minus(lookAt,this.pos)), "Vector"); 100 AssertType(Vector.minus(lookAt,this.pos), "Vector"); 103 AssertType(this.pos, "Vector");
|
/arkcompiler/ets_runtime/ecmascript/compiler/assembler/ |
D | assembler.h | 136 void BindTo(int32_t pos) in BindTo() argument 139 pos_ = pos + 1; in BindTo() 142 void LinkTo(int32_t pos) in LinkTo() argument 145 pos_ = - (pos + 1); in LinkTo() 153 void LinkNearPos(uint32_t pos) in LinkNearPos() argument 156 nearPos_ = pos + 1; in LinkNearPos()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_string.cpp | 256 int32_t pos = 0; in CharAt() local 258 pos = posTag->GetInt(); in CharAt() 260 pos = 0; in CharAt() 264 pos = posVal.ToInt32(); in CharAt() 266 if (pos < 0 || pos >= thisLen) { in CharAt() 269 uint16_t res = EcmaStringAccessor(thisFlat).Get<false>(pos); in CharAt() 287 int32_t pos = 0; in CharCodeAt() local 289 pos = posTag->GetInt(); in CharCodeAt() 291 pos = 0; in CharCodeAt() 295 pos = posVal.ToInt32(); in CharCodeAt() [all …]
|
/arkcompiler/runtime_core/libpandabase/mem/ |
D | alloc_tracker.cpp | 159 size_t pos = 0; in Dump() local 161 while (pos < ARENA_SIZE && *reinterpret_cast<uint32_t *>(ptr + pos) != 0) { in Dump() 163 uint32_t tag = *reinterpret_cast<uint32_t *>(ptr + pos); in Dump() 166 auto alloc = reinterpret_cast<AllocInfo *>(ptr + pos); in Dump() 172 pos += sizeof(AllocInfo); in Dump() 175 auto info = reinterpret_cast<FreeInfo *>(ptr + pos); in Dump() 178 pos += sizeof(FreeInfo); in Dump()
|
/arkcompiler/ets_frontend/es2panda/typescript/ |
D | checker.cpp | 51 …rowTypeError(std::initializer_list<TypeErrorMessageElement> list, const lexer::SourcePosition &pos) in ThrowTypeError() argument 74 ThrowTypeError(err, pos); in ThrowTypeError() 77 void Checker::ThrowTypeError(std::string_view message, const lexer::SourcePosition &pos) in ThrowTypeError() argument 80 lexer::SourceLocation loc = index.GetLocation(pos); in ThrowTypeError()
|
/arkcompiler/ets_frontend/es2panda/ir/ |
D | validationInfo.h | 26 ValidationInfo(util::StringView m, lexer::SourcePosition p) noexcept : msg(m), pos(p) {} in ValidationInfo() 34 lexer::SourcePosition pos {};
|
/arkcompiler/runtime_core/platforms/windows/libpandabase/ |
D | file.cpp | 84 … std::string::size_type pos = std::string(ws.begin(), ws.end()).find_last_of(File::GetPathDelim()); in GetExecutablePath() local 86 …return (pos != std::string::npos) ? std::string(ws.begin(), ws.end()).substr(0, pos) : std::string… in GetExecutablePath()
|
/arkcompiler/ets_runtime/ecmascript/ |
D | ecma_string.cpp | 240 int32_t EcmaString::IndexOf(Span<const T1> &lhsSp, Span<const T2> &rhsSp, int32_t pos, int32_t max) in IndexOf() argument 244 for (int32_t i = pos; i <= max; i++) { in IndexOf() 268 int32_t EcmaString::LastIndexOf(Span<const T1> &lhsSp, Span<const T2> &rhsSp, int32_t pos) in LastIndexOf() argument 273 for (int32_t i = pos; i >= 0; i--) { in LastIndexOf() 293 const JSHandle<EcmaString> &receiver, const JSHandle<EcmaString> &search, int pos) in IndexOf() argument 303 if (pos > lhsCount) { in IndexOf() 308 return pos; in IndexOf() 311 if (pos < 0) { in IndexOf() 312 pos = 0; in IndexOf() 320 if (pos + rhsCount > lhsCount) { in IndexOf() [all …]
|
/arkcompiler/ets_frontend/es2panda/typescript/types/ |
D | indexInfo.h | 30 … IndexInfo(Type *type, util::StringView paramName, bool readonly, const lexer::SourcePosition &pos) in IndexInfo() argument 31 : type_(type), paramName_(paramName), readonly_(readonly), pos_(pos) in IndexInfo()
|