/art/tools/checker/match/ |
D | line.py | 53 pattern = re.escape(getVariable(expression.name, variables, pos)) 55 pattern = expression.text 59 match = re.match(pattern, stringWord)
|
/art/tools/checker/file_format/checker/ |
D | parser.py | 134 pattern = line[0:matchPattern.end()] 135 pattern = pattern[2:-2] 137 assertion.addExpression(TestExpression.createPattern(pattern))
|
D | struct.py | 162 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)
|
D | test.py | 98 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/ |
D | info.txt | 1 Test pattern substitution used when we cannot inline.
|
/art/test/593-checker-shift-and-simplifier/ |
D | info.txt | 1 Regression test on pattern that caused double removal of AND by ARM64 simplifier.
|
/art/test/460-multiple-returns3/ |
D | info.txt | 1 Tests inlining of a pattern not generated by DX: multiple
|
/art/test/448-multiple-returns/ |
D | info.txt | 1 Tests inlining of a pattern not generated by DX: multiple
|
/art/test/452-multiple-returns2/ |
D | info.txt | 1 Tests inlining of a pattern not generated by DX: multiple
|
/art/test/631-checker-get-class/ |
D | info.txt | 1 Checker test to make sure we recognize the pattern:
|
/art/test/094-pattern/ |
D | info.txt | 1 A simple test to exercise pattern matching.
|
/art/test/622-simplifyifs-exception-edges/smali/ |
D | Test.smali | 35 # 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/ |
D | cpplint.py | 413 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/ |
D | inline_method_analyser.cc | 46 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/ |
D | info.txt | 21 It is also possible it could fail due to the pattern of allocations caused by
|
/art/runtime/jdwp/ |
D | jdwp_event.cc | 468 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()
|
D | jdwp_handler.cc | 1271 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/ |
D | README | 8 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/ |
D | SmaliTests.smali | 331 # Test simplification of the `~~var` pattern.
|