| /arkcompiler/ets_runtime/ecmascript/regexp/ |
| D | regexp_parser_cache.cpp | 39 size_t RegExpParserCache::GetHash(EcmaString *pattern, const uint32_t flags) in GetHash() argument 41 auto hashcode = EcmaStringAccessor(pattern).GetHashcode(); in GetHash() 45 std::pair<JSTaggedValue, size_t> RegExpParserCache::GetCache(EcmaString *pattern, const uint32_t fl… in GetCache() argument 48 size_t hash = GetHash(pattern, flags); in GetCache() 50 if (info.flags_ != flags || !EcmaStringAccessor::StringsAreEqual(info.pattern_, pattern)) { in GetCache() 57 void RegExpParserCache::SetCache(EcmaString *pattern, const uint32_t flags, in SetCache() argument 61 size_t hash = GetHash(pattern, flags); in SetCache() 63 info.pattern_ = pattern; in SetCache()
|
| D | regexp_parser_cache.h | 32 bool IsInCache(EcmaString *pattern, const uint32_t flags); 33 std::pair<JSTaggedValue, size_t> GetCache(EcmaString *pattern, const uint32_t flags, 35 void SetCache(EcmaString *pattern, const uint32_t flags, const JSTaggedValue codeBuffer, 40 size_t GetHash(EcmaString *pattern, const uint32_t flags);
|
| /arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
| D | constructorOverloads5.ts | 25 export function RegExp(pattern: string): RegExp; 26 export function RegExp(pattern: string, flags: string): RegExp; 28 constructor(pattern: string); 29 constructor(pattern: string, flags: string);
|
| /arkcompiler/ets_runtime/test/moduletest/builtins/ |
| D | builtinsregexp.js | 52 var pattern = /[A-Z]{3}/g; variable 54 var res1 = testStr.match(pattern); 57 var res2 = testStr.match(pattern); 60 var res3 = testStr.match(pattern);
|
| /arkcompiler/runtime_core/scripts/ |
| D | run-check-concurrency-format.sh | 58 for pattern in "${PATTERNS[@]}"; do 59 if grep ${pattern} ${FILE}; then 60 …echo "File ${FILE} contains '${pattern}' usage. Please use wrapper functions from 'os/mutex.h' ins…
|
| /arkcompiler/runtime_core/gn/build/ |
| D | cmake_configure_file.py | 33 pattern = r'@([^@]*)@|\$\{([^}]*)\}' 47 def replace(pattern): argument 48 key = pattern.group(1) or pattern.group(2) 54 in_line = re.sub(pattern, replace, in_line)
|
| /arkcompiler/ets_frontend/es2panda/compiler/base/ |
| D | destructuring.cpp | 243 void Destructuring::Compile(PandaGen *pg, const ir::Expression *pattern) in Compile() argument 248 pg->StoreAccumulator(pattern, rhs); in Compile() 250 if (pattern->IsArrayPattern() || pattern->IsArrayExpression()) { in Compile() 251 auto *arrExpr = pattern->IsArrayPattern() ? pattern->AsArrayPattern() : in Compile() 252 pattern->AsArrayExpression(); in Compile() 255 auto *objExpr = pattern->IsObjectPattern() ? pattern->AsObjectPattern() : in Compile() 256 pattern->AsObjectExpression(); in Compile() 260 pg->LoadAccumulator(pattern, rhs); in Compile()
|
| D | destructuring.h | 29 static void Compile(PandaGen *pg, const ir::Expression *pattern);
|
| /arkcompiler/runtime_core/tests/checked/ |
| D | README.md | 25 * **EVENT** (event: pattern) search event within all events 26 * **EVENT_NEXT** (event: pattern) ordered search event, i.e. search from position of the last found… 27 * **EVENT_NOT** (event: pattern) ensure event is not occurred 28 * **EVENT_NEXT_NOT** (event: pattern) ensure event is not occurred after current position 32 * **INST** (inst: pattern) search specified instruction in the ir dump file specified by commands `… 33 * **INST_NOT** (inst: pattern) equal to `NOT INST`, i.e. check that instruction is not exist 34 * **INST_NEXT_NOT** (event: pattern) ensure instruction is not occurred after current position 40 * **ASM_INST** (inst: pattern) select a specified instruction in disasm file, next "ASM*" checks wi… 41 * **ASM/ASM_NEXT/ASM_NOT/ASM_NEXT_NOT** (inst: pattern) same as other similar checks, but search on… 44 *pattern* can be a string(surrounded by quotes) or regex(surrounded by slashes): string - `"SearchP…
|
| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | js_regexp_iterator_test.cpp | 54 …STaggedValue CreateJSRegexpByPatternAndFlags(JSThread *thread, const JSHandle<EcmaString> &pattern, in CreateJSRegexpByPatternAndFlags() argument 64 ecmaRuntimeCallInfo->SetCallArg(0, pattern.GetTaggedValue()); in CreateJSRegexpByPatternAndFlags() 77 JSHandle<EcmaString> pattern = factory->NewFromASCII("\\w+"); in HWTEST_F_L0() local 80 …JSHandle<JSTaggedValue> matchHandle(thread, CreateJSRegexpByPatternAndFlags(thread, pattern, flags… in HWTEST_F_L0() 93 JSHandle<EcmaString> pattern = factory->NewFromASCII("-[0-9]+"); in HWTEST_F_L0() local 99 JSTaggedValue jsRegExp = CreateJSRegexpByPatternAndFlags(thread, pattern, flags); in HWTEST_F_L0()
|
| /arkcompiler/runtime_core/templates/ |
| D | messages.rb | 21 def scan_until_exclusive(scanner, pattern) argument 22 scanner.scan_until(Regexp.new(Regexp.escape(pattern)))&.delete_suffix(pattern)
|
| /arkcompiler/ets_frontend/es2panda/ir/expressions/literals/ |
| D | regExpLiteral.cpp | 38 compiler::VReg pattern = pg->AllocReg(); in Compile() local 45 pg->StoreAccumulator(this, pattern); in Compile()
|
| D | regExpLiteral.h | 35 explicit RegExpLiteral(util::StringView pattern, util::StringView flags) in RegExpLiteral() argument 36 : Literal(AstNodeType::REGEXP_LITERAL), pattern_(pattern), flags_(flags) in RegExpLiteral()
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_regexp.cpp | 47 JSHandle<JSTaggedValue> pattern = GetCallArg(argv, 0); in RegExpConstructor() local 50 bool patternIsRegExp = JSObject::IsRegExp(thread, pattern); in RegExpConstructor() 70 thread, pattern.GetTaggedValue(), constructorString.GetTaggedValue()); in RegExpConstructor() 75 return pattern.GetTaggedValue(); in RegExpConstructor() 81 if (pattern->IsECMAObject()) { in RegExpConstructor() 82 JSHandle<JSObject> patternObj = JSHandle<JSObject>::Cast(pattern); in RegExpConstructor() 88 JSHandle<JSRegExp> patternReg(thread, JSRegExp::Cast(pattern->GetTaggedObject())); in RegExpConstructor() 106 patternTemp = JSObject::GetProperty(thread, pattern, sourceString).GetValue(); in RegExpConstructor() 112 flagsTemp = JSObject::GetProperty(thread, pattern, flagsString).GetValue(); in RegExpConstructor() 122 patternTemp = pattern; in RegExpConstructor() [all …]
|
| D | builtins_regexp.h | 80 static JSTaggedValue RegExpCreate(JSThread *thread, const JSHandle<JSTaggedValue> &pattern, 113 … const JSHandle<JSTaggedValue> &pattern, const JSHandle<JSTaggedValue> &flags);
|
| /arkcompiler/ets_frontend/es2panda/test/parser/ts/ |
| D | test-func-param6-expected.txt | 1 SyntaxError: A binding pattern parameter cannot be optional in an implementation signature [test-fu…
|
| D | test-ts-parameter-property9-expected.txt | 1 SyntaxError: A parameter property may not be declared using a binding pattern. [test-ts-parameter-p…
|
| D | test-ts-parameter-property12-expected.txt | 1 SyntaxError: A parameter property may not be declared using a binding pattern. [test-ts-parameter-p…
|
| D | test-ts-parameter-property10-expected.txt | 1 SyntaxError: A parameter property may not be declared using a binding pattern. [test-ts-parameter-p…
|
| D | test-ts-parameter-property11-expected.txt | 1 SyntaxError: A parameter property may not be declared using a binding pattern. [test-ts-parameter-p…
|
| /arkcompiler/ets_frontend/ts2panda/src/ |
| D | compilerUtils.ts | 39 export function compileDestructuring(pattern: ts.BindingOrAssignmentPattern, pandaGen: PandaGen, co… 41 pandaGen.storeAccumulator(pattern, rhs); 43 if (isArrayBindingOrAssignmentPattern(pattern)) { 44 compileArrayDestructuring(<ts.ArrayBindingOrAssignmentPattern>pattern, pandaGen, compiler); 47 if (isObjectBindingOrAssignmentPattern(pattern)) { 48 … compileObjectDestructuring(<ts.ObjectBindingOrAssignmentPattern>pattern, pandaGen, compiler); 51 pandaGen.loadAccumulator(pattern, rhs);
|
| D | addVariable2Scope.ts | 213 function addPatternParamterElements(pattern: ts.BindingPattern, scope: VariableScope): void { 215 pattern.elements.forEach(bindingElement => {
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_date_time_format.cpp | 448 icu::UnicodeString pattern = ChangeHourCyclePattern( in InitializeDateTimeFormat() local 451 auto simpleDateFormatIcu(std::make_unique<icu::SimpleDateFormat>(pattern, icuLocale, status)); in InitializeDateTimeFormat() 918 std::string pattern; in ResolvedOptions() local 919 patternUnicode.toUTF8String(pattern); in ResolvedOptions() 925 int tmpResult = count(pattern.begin(), pattern.end(), 'S'); in ResolvedOptions() 936 if (pattern.find(pair.first) != std::string::npos) { in ResolvedOptions() 1197 Pattern pattern("jj", "j"); in GetIcuPatternDesc() local 1198 return pattern.Get(); in GetIcuPatternDesc() 1204 icu::UnicodeString JSDateTimeFormat::ChangeHourCyclePattern(const icu::UnicodeString &pattern, Hour… in ChangeHourCyclePattern() argument 1207 return pattern; in ChangeHourCyclePattern() [all …]
|
| /arkcompiler/runtime_core/libpandabase/tests/ |
| D | bit_table_test.cpp | 367 uint64_t pattern = 0xBADDCAFEDEADF00DULL; in TEST_F() local 374 uint64_t value = pattern & mask; in TEST_F() 387 ASSERT_EQ(Popcount(pattern), builder.GetRowsCount()); in TEST_F() 398 ASSERT_EQ(table.GetRowSizeInBits(), MinimumBitsToStore(pattern)); in TEST_F()
|
| /arkcompiler/ets_frontend/es2panda/test/parser/ts/type_checker/ |
| D | objectDestructuring5-expected.txt | 221 …ay only specify known properties, and property 'b' does not exist in the pattern. [objectDestructu…
|