/art/compiler/ |
H A D | cfi_test.h | 66 for (const std::string& line : lines) { 67 fprintf(f, "// %s\n", line.c_str()); 83 std::string line; local 84 while (std::getline(*stream, line)) { 85 line = line.substr(0, FindEndOf(line, ": ")) + 86 line.substr(FindEndOf(line, "\t")); 88 while ((pos = line [all...] |
H A D | elf_writer_debug.cc | 337 static bool NewPosition(void* ctx, uint32_t address, uint32_t line) { argument 339 context->dex2line_.push_back({address, static_cast<int32_t>(line)}); 409 int line = dex2line.second; local 421 opcodes.AddRow(mi->low_pc_ + pc, line); 422 } else if (line != opcodes.CurrentLine()) { 423 opcodes.AddRow(mi->low_pc_ + pc, line); 428 // line 0 - instruction cannot be attributed to any source line.
|
/art/tools/dexfuzz/src/dexfuzz/ |
H A D | ExecutionResult.java | 44 for (String line : output) { 45 builder.append(line); 58 for (String line : output) { 59 builder.append(line).append("\n"); 72 for (String line : error) { 73 builder.append(line); 86 for (String line : error) { 87 builder.append(line).append("\n");
|
H A D | Options.java | 269 String line = reader.readLine(); 270 while (line != null) { 271 line = line.replaceAll("\\s+", " "); 272 String[] entries = line.split(" "); 282 line = reader.readLine(); 294 * the program's command line arguments.
|
/art/tools/ |
H A D | cpplint.py | 49 # - Check for spaces between brackets in one-line inline method 75 same line, but it is far from perfect (in either direction). 103 'NOLINT(category)' comment to the line. NOLINT or NOLINT(*) 104 suppresses errors of all categories on that line. 320 # False positives include C-style multi-line comments (http://go/nsiut ) 321 # and multi-line strings (http://go/beujw ), but those have always been 338 _END_ASM = 2 # Last line of inline assembly block 363 Parses any NOLINT comments on the current line, updating the global 369 raw_line: str, the line of input text, with comments. 370 linenum: int, the number of the current line [all...] |
H A D | checker_test.py | 82 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 [all...] |
H A D | checker.py | 31 # be listed with the '--list-groups' command-line flag). 35 # - CHECK: Must match an output line which appears in the output group 39 # - CHECK-DAG: Must match an output line which appears in the output group 43 # - CHECK-NOT: Must not match any output line which appears in the output group 49 # Check-line patterns are treated as plain text rather than regular expressions 70 # group named on the first line. Together they verify that the CFG after 119 def fail(msg, file=None, line=-1): 123 if line > 0: 124 location += str(line) + ":" 143 def testFailed(msg, file=None, line [all...] |
H A D | generate-operator-out.py | 33 def Confused(filename, line_number, line): 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: 124 # or a blank line, this line should be the next enum value... 125 m = _ENUM_VALUE_RE.search(line)
|
H A D | analyze-init-failures.py | 31 def Confused(filename, line_number, line): 32 sys.stderr.write('%s:%d: confused by:\n%s\n' % (filename, line_number, line)) 59 # The error line should be next. 66 # Found an error line. 74 # Found a stack line. Get the method.
|
/art/compiler/dwarf/ |
H A D | dwarf_test.h | 52 // If next is true, it must be the next line. Otherwise lines are skipped. 101 const char* line; local 102 while ((line = fgets(buffer, sizeof(buffer), output)) != nullptr) { 104 printf("%s", line); 106 if (line[0] != '\0' && line[0] != '\n') { 107 EXPECT_TRUE(strstr(line, "objdump: Error:") == nullptr) << line; 108 EXPECT_TRUE(strstr(line, "objdump: Warning:") == nullptr) << line; [all...] |
H A D | dwarf_test.cc | 244 // DWARF has special one byte codes which advance PC and line at the same time. 249 int line = 1; local 261 line += line_delta; 262 opcodes.AddRow(pc, line); 265 ASSERT_EQ(opcodes.CurrentLine(), line); 267 sprintf(expected, "%i 0x%x", line, pc);
|
/art/runtime/arch/mips64/ |
H A D | instruction_set_features_mips64.cc | 55 std::string line; local 56 std::getline(in, line); 58 LOG(INFO) << "cpuinfo line: " << line; 59 if (line.find("processor") != std::string::npos && line.find(": 1") != std::string::npos) {
|
/art/runtime/base/ |
H A D | logging.cc | 80 // Stash the command line for later use. We can use /proc/self/cmdline on Linux to recover this, 141 LogMessageData(const char* file, unsigned int line, LogSeverity severity, int error) argument 143 line_number_(line), 185 LogMessage::LogMessage(const char* file, unsigned int line, LogSeverity severity, int error) argument 186 : data_(new LogMessageData(file, line, severity, error)) { 191 << " " << getpid() << " " << ::art::GetTid() << " " << file << ":" << line << "]"; local 246 void LogMessage::LogLine(const char* file, unsigned int line, LogSeverity log_severity, argument 252 LOG_PRI(priority, tag, "%s:%u] %s", file, line, message); 261 ProgramInvocationShortName(), severity, getpid(), ::art::GetTid(), file, line, message); 265 void LogMessage::LogLineLowStack(const char* file, unsigned int line, LogSeverit argument [all...] |
H A D | logging.h | 38 // and the "-verbose:" command line argument. 75 // Returns the command line used to invoke the current tool or null if InitLogging hasn't been 238 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/runtime/arch/arm64/ |
H A D | instruction_set_features_arm64.cc | 79 std::string line; local 80 std::getline(in, line); 82 LOG(INFO) << "cpuinfo line: " << line; 83 if (line.find("processor") != std::string::npos && line.find(": 1") != std::string::npos) {
|
/art/runtime/arch/x86/ |
H A D | instruction_set_features_x86.cc | 148 std::string line; local 149 std::getline(in, line); 151 LOG(INFO) << "cpuinfo line: " << line; 152 if (line.find("flags") != std::string::npos) { 154 if (line.find("ssse3") != std::string::npos) { 157 if (line.find("sse4_1") != std::string::npos) { 160 if (line.find("sse4_2") != std::string::npos) { 163 if (line.find("avx") != std::string::npos) { 166 if (line [all...] |
/art/tools/dexfuzz/src/dexfuzz/program/ |
H A D | MutationSerializer.java | 50 String line = reader.readLine(); 52 if (line != null) { 53 fields = line.split(" "); 55 Log.errorAndQuit("Could not read line during mutation loading.");
|
/art/compiler/dex/ |
H A D | verified_method.cc | 139 verifier::RegisterLine* line = method_verifier->GetRegLine(i); local 140 line->WriteReferenceBitMap(method_verifier, &dex_gc_map_, ref_bitmap_bytes); 162 verifier::RegisterLine* line = method_verifier->GetRegLine(i); local 164 if (line->GetRegisterType(method_verifier, j).IsNonZeroReferenceTypes()) { 170 // If a register doesn't contain a reference then the bitmap may be shorter than the line. 190 verifier::RegisterLine* line = method_verifier->GetRegLine(i); local 191 max_ref_reg = line->GetMaxNonZeroReferenceReg(method_verifier, max_ref_reg); 216 verifier::RegisterLine* line = method_verifier->GetRegLine(dex_pc); local 218 method_verifier->GetQuickInvokedMethod(inst, line, is_range_quick, true); 220 // It can be null if the line was 230 verifier::RegisterLine* line = method_verifier->GetRegLine(dex_pc); local 269 verifier::RegisterLine* line = method_verifier->GetRegLine(dex_pc); local 343 const verifier::RegisterLine* line = method_verifier->GetRegLine(dex_pc); local [all...] |
/art/runtime/arch/arm/ |
H A D | instruction_set_features_arm.cc | 135 std::string line; local 136 std::getline(in, line); 138 LOG(INFO) << "cpuinfo line: " << line; 139 if (line.find("Features") != std::string::npos) { 141 if (line.find("idivt") != std::string::npos) { 144 CHECK_NE(line.find("idiva"), std::string::npos); 147 if (line.find("lpae") != std::string::npos) { 150 } else if (line.find("processor") != std::string::npos && 151 line [all...] |
/art/tools/dexfuzz/src/dexfuzz/executors/ |
H A D | Executor.java | 133 for (String line : verificationResult.error) { 134 if (line.contains("Verification error") 135 || line.contains("Failure to verify dex file")) { 140 listener.handleDumpVerify(line.replaceFirst(".*(cc|h):\\d+] ", ""));
|
/art/compiler/utils/ |
H A D | assembler_test_base.h | 139 std::string line = FindTool(assembler_cmd_name_); local 140 if (line.length() == 0) { 141 return line; 144 resolved_assembler_cmd_ = line + assembler_parameters_; 156 std::string line = FindTool(objdump_cmd_name_); local 157 if (line.length() == 0) { 158 return line; 161 resolved_objdump_cmd_ = line + objdump_parameters_; 173 std::string line = FindTool(disassembler_cmd_name_); local 174 if (line 259 std::string line; local 500 std::string line; local [all...] |
/art/runtime/arch/mips/ |
H A D | instruction_set_features_mips.cc | 136 std::string line; local 137 std::getline(in, line); 139 LOG(INFO) << "cpuinfo line: " << line; 140 if (line.find("processor") != std::string::npos && line.find(": 1") != std::string::npos) {
|
/art/runtime/ |
H A D | profiler.cc | 716 // Read a single line into the given string. Returns true if everything OK, false 718 static bool ReadProfileLine(int fd, std::string& line) { argument 720 line.clear(); 729 line += buf[0]; 738 std::string line; local 740 // The first line contains summary information. 741 if (!ReadProfileLine(fd, line)) { 745 Split(line, '/', &summary_info); 754 // Now read each line until the end of file. Each line consist 816 std::string line; local [all...] |
/art/compiler/dex/quick/ |
H A D | resource_mask.cc | 55 // This should be a two-dimensions array, kSingleRegMasks[][32] and each line should be 64 // NOTE: Each line is 512B of constant data, 3KiB in total. 131 constexpr bool CheckTwoRegsMaskLine(size_t line, size_t lower = 0u) { argument 132 return (lower == line) || 133 (CheckTwoRegsMask(line, lower) && CheckTwoRegsMaskLine(line, lower + 1u));
|
H A D | codegen_util.cc | 46 std::string line(StringPrintf("\n %s %s%s_%s_table[%u] = {", table_name, 48 std::replace(line.begin(), line.end(), ';', '_'); 49 LOG(INFO) << line; 51 line = StringPrintf(" {0x%05x, 0x%04x},", first.NativePcOffset(), first.DexPc()); 53 LOG(INFO) << line;
|