Home
last modified time | relevance | path

Searched refs:line (Results 1 – 25 of 45) sorted by relevance

12

/art/tools/checker/file_format/checker/
Dparser.py22 def __isCheckerLine(line): argument
23 return line.startswith("///") or line.startswith("##")
25 def __extractLine(prefix, line, arch = None, debuggable = False): argument
41 match = re.match(regexPrefix, line)
43 return line[match.end():].strip()
47 def __processLine(line, lineNo, prefix, fileName): argument
55 if not __isCheckerLine(line):
62 startLine = __extractLine(prefix + "-START", line, arch, debuggable)
67 plainLine = __extractLine(prefix, line)
72 nextLine = __extractLine(prefix + "-NEXT", line)
[all …]
/art/tools/
Dcpplint.py942 def IsCppString(line): argument
955 line = line.replace(r'\\', 'XX') # after this, \\" does not match to \"
956 return ((line.count('"') - line.count(r'\"') - line.count("'\"'")) & 1) == 1
1003 def CleanseComments(line): argument
1012 commentpos = line.find('//')
1013 if commentpos != -1 and not IsCppString(line[:commentpos]):
1014 line = line[:commentpos].rstrip()
1016 return _RE_PATTERN_CLEANSE_LINE_C_COMMENTS.sub('', line)
1064 def FindEndOfExpressionInLine(line, startpos, depth, startchar, endchar): argument
1077 for i in xrange(startpos, len(line)):
[all …]
Dgenerate-operator-out.py33 def Confused(filename, line_number, line): argument
34 sys.stderr.write('%s:%d: confused by:\n%s\n' % (filename, line_number, line))
116 line = re.sub(r'//.*', '', raw_line)
119 line = line.strip()
122 if len(line) == 0:
127 m = _ENUM_VALUE_RE.search(line)
/art/compiler/
Dcfi_test.h68 for (const std::string& line : lines) { in GenerateExpected() local
69 fprintf(f, "// %s\n", line.c_str()); in GenerateExpected()
85 std::string line; in ReformatAsm() local
86 while (std::getline(*stream, line)) { in ReformatAsm()
87 line = line.substr(0, FindEndOf(line, ": ")) + in ReformatAsm()
88 line.substr(FindEndOf(line, "\t")); in ReformatAsm()
90 while ((pos = line.find(" ")) != std::string::npos) { in ReformatAsm()
91 line = line.replace(pos, 2, " "); in ReformatAsm()
93 while (!line.empty() && line.back() == ' ') { in ReformatAsm()
94 line.pop_back(); in ReformatAsm()
[all …]
/art/tools/checker/file_format/c1visualizer/
Dparser.py28 def __parseC1Line(line, lineNo, state, fileName): argument
40 if re.match("name\s+\"[^\"]+\"", line):
44 return (None, state.lastMethodName + " " + line.split("\"")[1], None)
49 if line == "end_cfg":
53 return (line, None, None)
57 if re.match("method\s+\"[^\"]*\"", line):
58 methodName = line.split("\"")[1].strip()
62 elif line == "end_compilation":
68 if line == "begin_cfg":
75 elif line == "begin_compilation":
[all …]
/art/tools/checker/file_format/
Dcommon.py31 for line in stream:
33 line = line.strip()
34 if not line:
40 processedLine, newChunkName, testArch = fnProcessLine(line, lineNo)
50 fnLineOutsideChunk(line, lineNo)
/art/tools/dexfuzz/src/dexfuzz/
DExecutionResult.java44 for (String line : output) { in getFlattenedOutput()
45 builder.append(line); in getFlattenedOutput()
58 for (String line : output) { in getFlattenedOutputWithNewlines()
59 builder.append(line).append("\n"); in getFlattenedOutputWithNewlines()
72 for (String line : error) { in getFlattenedError()
73 builder.append(line); in getFlattenedError()
86 for (String line : error) { in getFlattenedErrorWithNewlines()
87 builder.append(line).append("\n"); in getFlattenedErrorWithNewlines()
DOptions.java269 String line = reader.readLine(); in setupMutationLikelihoodTable() local
270 while (line != null) { in setupMutationLikelihoodTable()
271 line = line.replaceAll("\\s+", " "); in setupMutationLikelihoodTable()
272 String[] entries = line.split(" "); in setupMutationLikelihoodTable()
282 line = reader.readLine(); in setupMutationLikelihoodTable()
/art/compiler/debug/dwarf/
Ddwarf_test.h91 const char* line; in Objdump() local
92 while ((line = fgets(buffer, sizeof(buffer), output)) != nullptr) { in Objdump()
94 printf("%s", line); in Objdump()
96 if (line[0] != '\0' && line[0] != '\n') { in Objdump()
97 EXPECT_TRUE(strstr(line, "objdump: Error:") == nullptr) << line; in Objdump()
98 EXPECT_TRUE(strstr(line, "objdump: Warning:") == nullptr) << line; in Objdump()
99 std::string str(line); in Objdump()
/art/test/dexdump/
Dbytecodes.txt127 0x0000 line=4
169 0x0000 line=11
216 0x0000 line=13
258 0x0000 line=10
444 0x0000 line=7
445 0x0003 line=8
446 0x0007 line=9
447 0x000c line=10
448 0x0010 line=11
449 0x0015 line=12
[all …]
/art/runtime/interpreter/mterp/
Dgen_mterp.py258 for line in opcode_fp:
259 match = opcode_re.match(line)
393 for line in fallback_stub_text:
394 asm_fp.write(line)
416 for line in asm_stub_text:
417 templ = Template(line)
439 for line in infp:
440 if line.startswith("%include"):
442 tokens = line.strip().split(' ', 2)
458 elif line.startswith("%default"):
[all …]
/art/runtime/arch/arm/
Dinstruction_set_features_arm.cc135 std::string line; in FromCpuInfo() local
136 std::getline(in, line); in FromCpuInfo()
138 LOG(INFO) << "cpuinfo line: " << line; in FromCpuInfo()
139 if (line.find("Features") != std::string::npos) { in FromCpuInfo()
141 if (line.find("idivt") != std::string::npos) { in FromCpuInfo()
144 CHECK_NE(line.find("idiva"), std::string::npos); in FromCpuInfo()
147 if (line.find("lpae") != std::string::npos) { in FromCpuInfo()
150 } else if (line.find("processor") != std::string::npos && in FromCpuInfo()
151 line.find(": 1") != std::string::npos) { in FromCpuInfo()
/art/compiler/utils/
Dassembler_test_base.h151 std::string line = FindTool(assembler_cmd_name_); in GetAssemblerCommand() local
152 if (line.length() == 0) { in GetAssemblerCommand()
153 return line; in GetAssemblerCommand()
156 resolved_assembler_cmd_ = line + assembler_parameters_; in GetAssemblerCommand()
168 std::string line = FindTool(objdump_cmd_name_); in GetObjdumpCommand() local
169 if (line.length() == 0) { in GetObjdumpCommand()
170 return line; in GetObjdumpCommand()
173 resolved_objdump_cmd_ = line + objdump_parameters_; in GetObjdumpCommand()
185 std::string line = FindTool(disassembler_cmd_name_); in GetDisassembleCommand() local
186 if (line.length() == 0) { in GetDisassembleCommand()
[all …]
/art/runtime/arch/x86/
Dinstruction_set_features_x86.cc184 std::string line; in FromCpuInfo() local
185 std::getline(in, line); in FromCpuInfo()
187 LOG(INFO) << "cpuinfo line: " << line; in FromCpuInfo()
188 if (line.find("flags") != std::string::npos) { in FromCpuInfo()
190 if (line.find("ssse3") != std::string::npos) { in FromCpuInfo()
193 if (line.find("sse4_1") != std::string::npos) { in FromCpuInfo()
196 if (line.find("sse4_2") != std::string::npos) { in FromCpuInfo()
199 if (line.find("avx") != std::string::npos) { in FromCpuInfo()
202 if (line.find("avx2") != std::string::npos) { in FromCpuInfo()
205 if (line.find("popcnt") != std::string::npos) { in FromCpuInfo()
[all …]
/art/runtime/base/
Dlogging.cc141 LogMessageData(const char* file, unsigned int line, LogSeverity severity, int error) in LogMessageData() argument
143 line_number_(line), in LogMessageData()
185 LogMessage::LogMessage(const char* file, unsigned int line, LogSeverity severity, int error) in LogMessage() argument
186 : data_(new LogMessageData(file, line, severity, error)) { in LogMessage()
192 << " " << getpid() << " " << ::art::GetTid() << " " << file << ":" << line << "]"; in LogMessage()
248 void LogMessage::LogLine(const char* file, unsigned int line, LogSeverity log_severity, in LogLine() argument
258 LOG_PRI(priority, tag, "%s:%u] %s", file, line, message); in LogLine()
267 ProgramInvocationShortName(), severity, getpid(), ::art::GetTid(), file, line, message); in LogLine()
271 void LogMessage::LogLineLowStack(const char* file, unsigned int line, LogSeverity log_severity, in LogLineLowStack() argument
286 buf_size = strlen(file) + 1 /* ':' */ + std::numeric_limits<typeof(line)>::max_digits10 + in LogLineLowStack()
[all …]
/art/runtime/arch/mips64/
Dinstruction_set_features_mips64.cc55 std::string line; in FromCpuInfo() local
56 std::getline(in, line); in FromCpuInfo()
58 LOG(INFO) << "cpuinfo line: " << line; in FromCpuInfo()
59 if (line.find("processor") != std::string::npos && line.find(": 1") != std::string::npos) { in FromCpuInfo()
/art/compiler/dex/
Dverified_method.cc98 verifier::RegisterLine* line = method_verifier->GetRegLine(dex_pc); in GenerateDequickenMap() local
100 method_verifier->GetQuickInvokedMethod(inst, line, is_range_quick, true); in GenerateDequickenMap()
112 verifier::RegisterLine* line = method_verifier->GetRegLine(dex_pc); in GenerateDequickenMap() local
113 ArtField* field = method_verifier->GetQuickFieldAccess(inst, line); in GenerateDequickenMap()
151 verifier::RegisterLine* line = method_verifier->GetRegLine(dex_pc); in GenerateDevirtMap() local
155 reg_type(line->GetRegisterType(method_verifier, in GenerateDevirtMap()
226 const verifier::RegisterLine* line = method_verifier->GetRegLine(dex_pc); in GenerateSafeCastSet() local
229 const verifier::RegType& reg_type(line->GetRegisterType(method_verifier, in GenerateSafeCastSet()
235 const verifier::RegType& array_type(line->GetRegisterType(method_verifier, in GenerateSafeCastSet()
241 const verifier::RegType& value_type(line->GetRegisterType(method_verifier, in GenerateSafeCastSet()
/art/runtime/arch/arm64/
Dinstruction_set_features_arm64.cc79 std::string line; in FromCpuInfo() local
80 std::getline(in, line); in FromCpuInfo()
82 LOG(INFO) << "cpuinfo line: " << line; in FromCpuInfo()
83 if (line.find("processor") != std::string::npos && line.find(": 1") != std::string::npos) { in FromCpuInfo()
/art/runtime/arch/mips/
Dinstruction_set_features_mips.cc136 std::string line; in FromCpuInfo() local
137 std::getline(in, line); in FromCpuInfo()
139 LOG(INFO) << "cpuinfo line: " << line; in FromCpuInfo()
140 if (line.find("processor") != std::string::npos && line.find(": 1") != std::string::npos) { in FromCpuInfo()
/art/test/970-iface-super-resolution-generated/util-src/
Dgenerate_java.py48 for line in str(self.inner).splitlines(keepends = True):
49 if line.startswith("#"):
50 out += line[1:]
/art/tools/dexfuzz/src/dexfuzz/program/
DMutationSerializer.java50 String line = reader.readLine(); in readMutation() local
52 if (line != null) { in readMutation()
53 fields = line.split(" "); in readMutation()
/art/tools/dexfuzz/src/dexfuzz/executors/
DExecutor.java133 for (String line : verificationResult.error) { in verifyOnHost()
134 if (line.contains("Verification error") in verifyOnHost()
135 || line.contains("Failure to verify dex file")) { in verifyOnHost()
140 listener.handleDumpVerify(line.replaceFirst(".*(cc|h):\\d+] ", "")); in verifyOnHost()
/art/tools/checker/
DREADME14 be listed with the '--list-passes' command-line flag).
18 - CHECK: Must match an output line which appears in the output group
22 - CHECK-DAG: Must match an output line which appears in the output group
26 - CHECK-NOT: Must not match any output line which appears in the output group
31 - CHECK-NEXT: Must match the output line which comes right after the line which
36 Check-line patterns are treated as plain text rather than regular expressions
57 group named on the first line. Together they verify that the CFG after
/art/test/304-method-tracing/
Dinfo.txt1 Test method tracing from command-line.
/art/tools/checker/common/
Dlogger.py58 def fail(msg, file=None, line=-1, lineText=None, variables=None): argument
66 if line > 0:
67 loc += str(line) + ":"

12