/arkcompiler/ets_frontend/es2panda/lexer/regexp/ |
D | regexp.cpp | 51 static bool IsDecimalDigit(char32_t cp) in IsDecimalDigit() argument 53 return (cp >= LEX_CHAR_0 && cp <= LEX_CHAR_9); in IsDecimalDigit() 56 static bool IsOctalDigit(char32_t cp) in IsOctalDigit() argument 58 return (cp >= LEX_CHAR_0 && cp <= LEX_CHAR_7); in IsOctalDigit() 61 static bool IsHexDigit(char32_t cp) in IsHexDigit() argument 63 return IsDecimalDigit(cp) || (cp >= LEX_CHAR_LOWERCASE_A && cp <= LEX_CHAR_LOWERCASE_F) || in IsHexDigit() 64 (cp >= LEX_CHAR_UPPERCASE_A && cp <= LEX_CHAR_UPPERCASE_F); in IsHexDigit() 67 static uint32_t DigitValue(char32_t cp) in DigitValue() argument 69 return (cp - LEX_CHAR_0); in DigitValue() 72 static uint32_t HexValue(char32_t cp) in HexValue() argument [all …]
|
D | regexp.h | 84 bool IsSyntaxCharacter(char32_t cp) const;
|
/arkcompiler/ets_frontend/es2panda/lexer/ |
D | keywordsUtil.cpp | 175 bool KeywordsUtil::IsIdentifierStart(char32_t cp) in IsIdentifierStart() argument 177 if (cp < LEX_ASCII_MAX_BITS) { in IsIdentifierStart() 178 return (ASCII_FLAGS[cp] & AsciiFlags::ID_START) != 0; in IsIdentifierStart() 181 auto uchar = static_cast<UChar32>(cp); in IsIdentifierStart() 185 bool KeywordsUtil::IsIdentifierPart(char32_t cp) in IsIdentifierPart() argument 187 if (cp < LEX_ASCII_MAX_BITS) { in IsIdentifierPart() 188 return (ASCII_FLAGS[cp] & AsciiFlags::ID_CONTINUE) != 0; in IsIdentifierPart() 195 auto uchar = static_cast<UChar32>(cp); in IsIdentifierPart() 196 …return (u_hasBinaryProperty(uchar, UCHAR_ID_CONTINUE) || cp == LEX_CHAR_ZWNJ || cp == LEX_CHAR_ZWJ… in IsIdentifierPart() 199 void KeywordsUtil::ScanIdentifierStart(char32_t cp) in ScanIdentifierStart() argument [all …]
|
D | lexer.cpp | 56 char32_t cp {}; in ScanUnicodeCodePointEscape() local 59 cp = Iterator().Peek(); in ScanUnicodeCodePointEscape() 60 if (!IsHexDigit(cp)) { in ScanUnicodeCodePointEscape() 67 code = code * multiplier + HexValue(cp); in ScanUnicodeCodePointEscape() 73 if (cp != LEX_CHAR_RIGHT_BRACE) { in ScanUnicodeCodePointEscape() 374 auto cp = Iterator().Peek(); in ScanNumber() local 375 if (IsDecimalDigit(cp) || cp == LEX_CHAR_LOWERCASE_E || LEX_CHAR_UPPERCASE_E) { in ScanNumber() 455 char32_t cp = Iterator().PeekCp(&cpSize); in ScanTemplateString() local 457 switch (cp) { in ScanTemplateString() 486 templateStr.str.Append(cp); in ScanTemplateString() [all …]
|
D | lexer.h | 165 inline static bool IsDecimalDigit(uint32_t cp); 219 char32_t cp = Iterator().Peek(); in ScanString() local 221 switch (cp) { in ScanString() 236 if (cp == LEX_CHAR_CR) { in ScanString() 262 if (end == cp) { in ScanString() 310 const auto cp = Iterator().Peek(); in ScanHexEscape() local 313 if (!IsHexDigit(cp)) { in ScanHexEscape() 318 code = code * MULTIPLIER + HexValue(cp); in ScanHexEscape() 329 auto cp = Iterator().Peek(); in ScanNumberRadix() local 330 if (!rangeCheck(cp)) { in ScanNumberRadix() [all …]
|
D | keywordsUtil.h | 34 explicit KeywordsUtil(Lexer *lexer, lexer::LexerNextTokenFlags flags, char32_t cp) in KeywordsUtil() argument 35 : lexer_(lexer), flags_(flags), cp_(cp) in KeywordsUtil() 55 void ScanIdentifierStart(char32_t cp); 61 static bool IsIdentifierStart(char32_t cp); 62 static bool IsIdentifierPart(char32_t cp);
|
/arkcompiler/ets_frontend/es2panda/util/ |
D | ustring.cpp | 45 std::tuple<char32_t, char32_t> StringView::EncodeSurrogate(char32_t cp) in EncodeSurrogate() argument 48 char32_t cu1 = ((cp - Constants::CELESTIAL_OFFSET) >> OFFSET) | Constants::SURROGATE_HIGH_MIN; in EncodeSurrogate() 49 char32_t cu2 = (cp & Constants::SURROGATE_LOW_MARKER) | Constants::SURROGATE_HIGH_MAX; in EncodeSurrogate()
|
D | ustring.h | 117 static bool IsHighSurrogate(char32_t cp) in IsHighSurrogate() argument 119 return (cp >= Constants::SURROGATE_HIGH_MIN && cp < Constants::SURROGATE_HIGH_MAX); in IsHighSurrogate() 122 static bool IsLowSurrogate(char32_t cp) in IsLowSurrogate() argument 124 return (cp >= Constants::SURROGATE_LOW_MIN && cp < Constants::SURROGATE_LOW_MAX); in IsLowSurrogate() 129 static std::tuple<char32_t, char32_t> EncodeSurrogate(char32_t cp); 395 auto cp = iter.Next(); in EscapeSymbol() local 397 switch (cp) { in EscapeSymbol() 434 encoder(&str, cp); in EscapeSymbol()
|
/arkcompiler/ets_frontend/es2panda/lexer/templates/ |
D | keywordsMap.h.erb | 27 static Span<const KeywordString> Map(char32_t cp) { 28 switch(cp) {
|
/arkcompiler/ets_frontend/ts2panda/scripts/ |
D | npm-install.sh | 40 /bin/cp -rf ${code_dir}/arkcompiler/ets_frontend/ts2panda/node_modules ${code_dir}/prebuilts/build-…
|
/arkcompiler/runtime_core/tests/benchmarks/ |
D | CMakeLists.txt | 275 "cp \"${benchmark}\" \"${vmb_benchmark_path}/${vmb_name}/pa/${vmb_name}.pa\"") 279 "cp \"${benchmark}\" \"${vmb_benchmark_path}/${vmb_name}/pa/${vmb_name}.pa\"") 282 … "cp \"${benchmark}\" \"${vmb_benchmark_path}/${vmb_name}/pa/${vmb_name}.pa.disabled\"")
|
/arkcompiler/ets_runtime/ecmascript/base/ |
D | utf_helper.cpp | 31 …uint32_t cp = (lead - DECODE_LEAD_LOW) * DECODE_FIRST_FACTOR + (trail - DECODE_TRAIL_LOW) + DECODE… in UTF16Decode() local 32 return cp; in UTF16Decode()
|
/arkcompiler/runtime_core/libpandafile/tests/ |
D | file_item_container_test.cpp | 669 auto cp = dda.GetConstantPool(); in __anon97c8f9171102() local 670 EXPECT_EQ(cp.size(), constant_pool->size()); in __anon97c8f9171102() 671 EXPECT_THAT(*constant_pool, ::testing::ElementsAreArray(cp.data(), cp.Size())); in __anon97c8f9171102() 673 EXPECT_EQ(helpers::ReadULeb128(&cp), source_code_item->GetOffset()); in __anon97c8f9171102() 674 EXPECT_EQ(helpers::ReadULeb128(&cp), source_file_item->GetOffset()); in __anon97c8f9171102() 675 EXPECT_EQ(helpers::ReadULeb128(&cp), 10U); in __anon97c8f9171102() 676 EXPECT_EQ(helpers::ReadLeb128(&cp), -5); in __anon97c8f9171102()
|
/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/ |
D | aot_file_manager.cpp | 336 JSTaggedValue cp = cpList->Get(pos + 1); in AddConstantPool() local 337 cpMap.insert({constantPoolID, cp}); in AddConstantPool()
|
/arkcompiler/runtime_core/gn/build/toolchain/ |
D | BUILD.gn | 132 command = "cp -af {{source}} {{output}}"
|
/arkcompiler/toolchain/build/toolchain/ |
D | toolchain.gni | 93 …copy_command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}}…
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_string.cpp | 148 int32_t cp = nextCpVal.ToInt32(); in FromCodePoint() local 149 if (cp < 0 || cp > ENCODE_MAX_UTF16) { in FromCodePoint() 152 if (cp == 0) { in FromCodePoint() 156 if (cp > UINT16_MAX) { in FromCodePoint() 158 …std::floor((static_cast<uint32_t>(cp) - ENCODE_SECOND_FACTOR) / ENCODE_FIRST_FACTOR) + ENCODE_LEAD… in FromCodePoint() 160 … ((static_cast<uint32_t>(cp) - ENCODE_SECOND_FACTOR) % ENCODE_FIRST_FACTOR) + ENCODE_TRAIL_LOW; in FromCodePoint() 167 auto u16tCp = static_cast<uint16_t>(cp); in FromCodePoint()
|
/arkcompiler/ets_frontend/test262/ |
D | eshost.patch | 32 const cpSym = Symbol.for('cp');
|
/arkcompiler/ets_frontend/es2panda/parser/ |
D | expressionParser.cpp | 1877 static bool IsAccessorDelimiter(char32_t cp) in IsAccessorDelimiter() argument 1879 switch (cp) { in IsAccessorDelimiter() 1892 static bool IsShorthandDelimiter(char32_t cp) in IsShorthandDelimiter() argument 1894 switch (cp) { in IsShorthandDelimiter()
|
/arkcompiler/ets_frontend/legacy_bin/api8/src/ |
D | index.js | 2 …cp(e,t,r){void 0===r&&(r=0);for(var n=""+e.target.id,i=0,a=El(e);i<a.length;i++){var o=a[i];if(op(… function
|
/arkcompiler/ets_frontend/es2panda/test/compiler/js/ |
D | cocos_worker_test.js | 25790 var op, ap, lp, hp, cp, up, _p, dp, pp, mp, fp; 25800 Ml(this, "easingMethod", cp, this); 25819 }), cp = Bl(ap.prototype, "easingMethod", [ Yl ], {
|