Home
last modified time | relevance | path

Searched refs:pattern (Results 1 – 19 of 19) sorted by relevance

/art/tools/checker/match/
Dline.py53 pattern = re.escape(getVariable(expression.name, variables, pos))
55 pattern = expression.text
59 match = re.match(pattern, stringWord)
/art/tools/checker/file_format/checker/
Dparser.py134 pattern = line[0:matchPattern.end()]
135 pattern = pattern[2:-2]
137 assertion.addExpression(TestExpression.createPattern(pattern))
Dstruct.py162 def createPattern(pattern): argument
163 return TestExpression(TestExpression.Variant.Pattern, None, pattern)
171 def createVariableDefinition(name, pattern): argument
173 return TestExpression(TestExpression.Variant.VarDef, name, pattern)
Dtest.py98 def assertEqualsPattern(self, string, pattern): argument
99 self.assertEqual(self.parseExpression(string), TestExpression.createPattern(pattern))
104 def assertEqualsVarDef(self, string, name, pattern): argument
106 TestExpression.createVariableDefinition(name, pattern))
/art/test/569-checker-pattern-replacement/
Dinfo.txt1 Test pattern substitution used when we cannot inline.
/art/test/593-checker-shift-and-simplifier/
Dinfo.txt1 Regression test on pattern that caused double removal of AND by ARM64 simplifier.
/art/test/460-multiple-returns3/
Dinfo.txt1 Tests inlining of a pattern not generated by DX: multiple
/art/test/448-multiple-returns/
Dinfo.txt1 Tests inlining of a pattern not generated by DX: multiple
/art/test/452-multiple-returns2/
Dinfo.txt1 Tests inlining of a pattern not generated by DX: multiple
/art/test/631-checker-get-class/
Dinfo.txt1 Checker test to make sure we recognize the pattern:
/art/test/094-pattern/
Dinfo.txt1 A simple test to exercise pattern matching.
/art/test/622-simplifyifs-exception-edges/smali/
DTest.smali35 # Note: There is no move-exception here to prevent matching the SimplifyIfs() pattern.
67 # Note: There is no move-exception here to prevent matching the SimplifyIfs() pattern.
/art/tools/
Dcpplint.py413 def Match(pattern, s): argument
418 if not pattern in _regexp_compile_cache:
419 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)
420 return _regexp_compile_cache[pattern].match(s)
423 def Search(pattern, s): argument
425 if not pattern in _regexp_compile_cache:
426 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)
427 return _regexp_compile_cache[pattern].search(s)
1905 for pattern in (r'\bif\s*\((.*)\)\s*{',
1909 match = Search(pattern, line)
[all …]
/art/compiler/dex/
Dinline_method_analyser.cc46 static bool Match(const DexFile::CodeItem* code_item, MatchFn* const (&pattern)[size]);
71 static bool DoMatch(const DexFile::CodeItem* code_item, MatchFn* const* pattern, size_t size);
80 bool Matcher::Match(const DexFile::CodeItem* code_item, MatchFn* const (&pattern)[size]) { in Match()
81 return DoMatch(code_item, pattern, size); in Match()
130 bool Matcher::DoMatch(const DexFile::CodeItem* code_item, MatchFn* const* pattern, size_t size) { in DoMatch() argument
133 if (!pattern[matcher.pos_](&matcher)) { in DoMatch()
/art/test/980-redefine-object/
Dinfo.txt21 It is also possible it could fail due to the pattern of allocations caused by
/art/runtime/jdwp/
Djdwp_event.cc468 static bool PatternMatch(const char* pattern, const std::string& target) { in PatternMatch() argument
469 size_t patLen = strlen(pattern); in PatternMatch()
470 if (pattern[0] == '*') { in PatternMatch()
475 return strcmp(pattern+1, target.c_str() + (target.size()-patLen)) == 0; in PatternMatch()
476 } else if (pattern[patLen-1] == '*') { in PatternMatch()
477 return strncmp(pattern, target.c_str(), patLen-1) == 0; in PatternMatch()
479 return strcmp(pattern, target.c_str()) == 0; in PatternMatch()
Djdwp_handler.cc1271 std::string pattern(request->ReadUtf8String()); in ER_Set() local
1272 std::replace(pattern.begin(), pattern.end(), '.', '/'); in ER_Set()
1273 mod.classMatch.classPattern = strdup(pattern.c_str()); in ER_Set()
1280 std::string pattern(request->ReadUtf8String()); in ER_Set() local
1281 std::replace(pattern.begin(), pattern.end(), '.', '/'); in ER_Set()
1282 mod.classExclude.classPattern = strdup(pattern.c_str()); in ER_Set()
/art/tools/checker/
DREADME8 followed by a pattern that the engine attempts to match in the compiler output.
41 enclosed in round brackets. For example, the pattern '{{foo{2}}}' will parse
/art/test/458-checker-instruct-simplification/smali/
DSmaliTests.smali331 # Test simplification of the `~~var` pattern.