Home
last modified time | relevance | path

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

12

/art/tools/
Dcpplint.py916 def IsCppString(line): argument
929 line = line.replace(r'\\', 'XX') # after this, \\" does not match to \"
930 return ((line.count('"') - line.count(r'\"') - line.count("'\"'")) & 1) == 1
977 def CleanseComments(line): argument
986 commentpos = line.find('//')
987 if commentpos != -1 and not IsCppString(line[:commentpos]):
988 line = line[:commentpos].rstrip()
990 return _RE_PATTERN_CLEANSE_LINE_C_COMMENTS.sub('', line)
1038 def FindEndOfExpressionInLine(line, startpos, depth, startchar, endchar): argument
1051 for i in xrange(startpos, len(line)):
[all …]
Dchecker.py119 def fail(msg, file=None, line=-1): argument
123 if line > 0:
124 location += str(line) + ":"
143 def testFailed(msg, file=None, line=-1): argument
145 Logger.fail(msg, file, line)
256 def __parse(self, line): argument
259 while line:
261 matchWhitespace = re.search(r"\s+", line)
262 matchPattern = re.search(CheckElement.regexPattern, line)
263 matchVariable = re.search(CheckElement.regexVariable, line)
[all …]
Dchecker_test.py82 line = self.__tryParse(string)
83 self.assertEqual(1, len(line.lineParts))
84 self.assertEqual(checker.CheckElement.Variant.Pattern, line.lineParts[0].variant)
85 self.assertEqual(pattern, line.lineParts[0].pattern)
88 line = self.__tryParse(string)
89 self.assertEqual(1, len(line.lineParts))
90 self.assertEqual(checker.CheckElement.Variant.VarRef, line.lineParts[0].variant)
91 self.assertEqual(name, line.lineParts[0].name)
94 line = self.__tryParse(string)
95 self.assertEqual(1, len(line.lineParts))
[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))
114 line = re.sub(r'//.*', '', raw_line)
117 line = line.strip()
120 if len(line) == 0:
125 m = _ENUM_VALUE_RE.search(line)
Danalyze-init-failures.py31 def Confused(filename, line_number, line): argument
32 sys.stderr.write('%s:%d: confused by:\n%s\n' % (filename, line_number, line))
/art/compiler/
Dcfi_test.h66 for (const std::string& line : lines) { in GenerateExpected() local
67 fprintf(f, "// %s\n", line.c_str()); in GenerateExpected()
83 std::string line; in ReformatAsm() local
84 while (std::getline(*stream, line)) { in ReformatAsm()
85 line = line.substr(0, FindEndOf(line, ": ")) + in ReformatAsm()
86 line.substr(FindEndOf(line, "\t")); in ReformatAsm()
88 while ((pos = line.find(" ")) != std::string::npos) { in ReformatAsm()
89 line = line.replace(pos, 2, " "); in ReformatAsm()
91 while (!line.empty() && line.back() == ' ') { in ReformatAsm()
92 line.pop_back(); in ReformatAsm()
[all …]
Delf_writer_debug.cc337 static bool NewPosition(void* ctx, uint32_t address, uint32_t line) { in WriteDebugSections()
339 context->dex2line_.push_back({address, static_cast<int32_t>(line)}); in WriteDebugSections()
409 int line = dex2line.second; in WriteDebugSections() local
421 opcodes.AddRow(mi->low_pc_ + pc, line); in WriteDebugSections()
422 } else if (line != opcodes.CurrentLine()) { in WriteDebugSections()
423 opcodes.AddRow(mi->low_pc_ + pc, line); in WriteDebugSections()
/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/dwarf/
Ddwarf_test.h101 const char* line; in Objdump() local
102 while ((line = fgets(buffer, sizeof(buffer), output)) != nullptr) { in Objdump()
104 printf("%s", line); in Objdump()
106 if (line[0] != '\0' && line[0] != '\n') { in Objdump()
107 EXPECT_TRUE(strstr(line, "objdump: Error:") == nullptr) << line; in Objdump()
108 EXPECT_TRUE(strstr(line, "objdump: Warning:") == nullptr) << line; in Objdump()
109 std::string str(line); in Objdump()
Ddwarf_test.cc249 int line = 1; in TEST_F() local
261 line += line_delta; in TEST_F()
262 opcodes.AddRow(pc, line); in TEST_F()
265 ASSERT_EQ(opcodes.CurrentLine(), line); in TEST_F()
267 sprintf(expected, "%i 0x%x", line, pc); in TEST_F()
/art/runtime/arch/x86/
Dinstruction_set_features_x86.cc148 std::string line; in FromCpuInfo() local
149 std::getline(in, line); in FromCpuInfo()
151 LOG(INFO) << "cpuinfo line: " << line; in FromCpuInfo()
152 if (line.find("flags") != std::string::npos) { in FromCpuInfo()
154 if (line.find("ssse3") != std::string::npos) { in FromCpuInfo()
157 if (line.find("sse4_1") != std::string::npos) { in FromCpuInfo()
160 if (line.find("sse4_2") != std::string::npos) { in FromCpuInfo()
163 if (line.find("avx") != std::string::npos) { in FromCpuInfo()
166 if (line.find("avx2") != std::string::npos) { in FromCpuInfo()
169 } else if (line.find("processor") != 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()
191 << " " << getpid() << " " << ::art::GetTid() << " " << file << ":" << line << "]"; in LogMessage()
246 void LogMessage::LogLine(const char* file, unsigned int line, LogSeverity log_severity, in LogLine() argument
252 LOG_PRI(priority, tag, "%s:%u] %s", file, line, message); in LogLine()
261 ProgramInvocationShortName(), severity, getpid(), ::art::GetTid(), file, line, message); in LogLine()
265 void LogMessage::LogLineLowStack(const char* file, unsigned int line, LogSeverity log_severity, in LogLineLowStack() argument
276 buf_size = strlen(file) + 1 /* ':' */ + std::numeric_limits<typeof(line)>::max_digits10 + in LogLineLowStack()
[all …]
Dlogging.h238 LogMessage(const char* file, unsigned int line, LogSeverity severity, int error);
247 static void LogLine(const char* file, unsigned int line, LogSeverity severity, const char* msg);
250 static void LogLineLowStack(const char* file, unsigned int line, LogSeverity severity,
/art/compiler/utils/
Dassembler_test_base.h139 std::string line = FindTool(assembler_cmd_name_); in GetAssemblerCommand() local
140 if (line.length() == 0) { in GetAssemblerCommand()
141 return line; in GetAssemblerCommand()
144 resolved_assembler_cmd_ = line + assembler_parameters_; in GetAssemblerCommand()
156 std::string line = FindTool(objdump_cmd_name_); in GetObjdumpCommand() local
157 if (line.length() == 0) { in GetObjdumpCommand()
158 return line; in GetObjdumpCommand()
161 resolved_objdump_cmd_ = line + objdump_parameters_; in GetObjdumpCommand()
173 std::string line = FindTool(disassembler_cmd_name_); in GetDisassembleCommand() local
174 if (line.length() == 0) { in GetDisassembleCommand()
[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/dex/
Dverified_method.cc139 verifier::RegisterLine* line = method_verifier->GetRegLine(i); in GenerateGcMap() local
140 line->WriteReferenceBitMap(method_verifier, &dex_gc_map_, ref_bitmap_bytes); in GenerateGcMap()
162 verifier::RegisterLine* line = method_verifier->GetRegLine(i); in VerifyGcMap() local
164 if (line->GetRegisterType(method_verifier, j).IsNonZeroReferenceTypes()) { in VerifyGcMap()
190 verifier::RegisterLine* line = method_verifier->GetRegLine(i); in ComputeGcMapSizes() local
191 max_ref_reg = line->GetMaxNonZeroReferenceReg(method_verifier, max_ref_reg); in ComputeGcMapSizes()
216 verifier::RegisterLine* line = method_verifier->GetRegLine(dex_pc); in GenerateDequickenMap() local
218 method_verifier->GetQuickInvokedMethod(inst, line, is_range_quick, true); in GenerateDequickenMap()
230 verifier::RegisterLine* line = method_verifier->GetRegLine(dex_pc); in GenerateDequickenMap() local
231 ArtField* field = method_verifier->GetQuickFieldAccess(inst, line); in GenerateDequickenMap()
[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/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/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/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/runtime/
Dprofiler.cc718 static bool ReadProfileLine(int fd, std::string& line) { in ReadProfileLine() argument
720 line.clear(); in ReadProfileLine()
729 line += buf[0]; in ReadProfileLine()
738 std::string line; in ReadPrevious() local
741 if (!ReadProfileLine(fd, line)) { in ReadPrevious()
745 Split(line, '/', &summary_info); in ReadPrevious()
756 if (!ReadProfileLine(fd, line)) { in ReadPrevious()
760 Split(line, '/', &info); in ReadPrevious()
816 std::string line; in LoadFile() local
817 std::getline(in, line); in LoadFile()
[all …]
/art/test/304-method-tracing/
Dinfo.txt1 Test method tracing from command-line.
/art/compiler/dex/quick/
Dresource_mask.cc131 constexpr bool CheckTwoRegsMaskLine(size_t line, size_t lower = 0u) { in CheckTwoRegsMaskLine() argument
132 return (lower == line) || in CheckTwoRegsMaskLine()
133 (CheckTwoRegsMask(line, lower) && CheckTwoRegsMaskLine(line, lower + 1u)); in CheckTwoRegsMaskLine()

12