/art/runtime/ |
D | reflection_test.cc | 146 jvalue args[1]; in InvokeIdentityByteMethod() local 148 args[0].b = 0; in InvokeIdentityByteMethod() 149 JValue result = InvokeWithJValues(soa, receiver_ref.get(), soa.EncodeMethod(method), args); in InvokeIdentityByteMethod() 152 args[0].b = -1; in InvokeIdentityByteMethod() 153 result = InvokeWithJValues(soa, receiver_ref.get(), soa.EncodeMethod(method), args); in InvokeIdentityByteMethod() 156 args[0].b = SCHAR_MAX; in InvokeIdentityByteMethod() 157 result = InvokeWithJValues(soa, receiver_ref.get(), soa.EncodeMethod(method), args); in InvokeIdentityByteMethod() 160 args[0].b = (SCHAR_MIN << 24) >> 24; in InvokeIdentityByteMethod() 161 result = InvokeWithJValues(soa, receiver_ref.get(), soa.EncodeMethod(method), args); in InvokeIdentityByteMethod() 171 jvalue args[1]; in InvokeIdentityIntMethod() local [all …]
|
D | common_throws.cc | 48 mirror::Class* referrer, const char* fmt, va_list* args = nullptr) in ThrowException() argument 51 if (args != nullptr) { in ThrowException() 53 StringAppendV(&vmsg, fmt, *args); in ThrowException() 64 mirror::Class* referrer, const char* fmt, va_list* args = nullptr) in ThrowWrappedException() argument 67 if (args != nullptr) { in ThrowWrappedException() 69 StringAppendV(&vmsg, fmt, *args); in ThrowWrappedException() 133 va_list args; in ThrowClassFormatError() local 134 va_start(args, fmt); in ThrowClassFormatError() 135 ThrowException("Ljava/lang/ClassFormatError;", referrer, fmt, &args); in ThrowClassFormatError() 136 va_end(args);} in ThrowClassFormatError() [all …]
|
D | parsed_options.cc | 424 RuntimeArgumentMap args = parser->ReleaseArgumentsMap(); in Parse() local 427 if (args.Exists(M::Help)) { in Parse() 430 } else if (args.Exists(M::ShowVersion)) { in Parse() 433 } else if (args.Exists(M::BootClassPath)) { in Parse() 434 LOG(INFO) << "setting boot class path to " << *args.Get(M::BootClassPath); in Parse() 439 args.SetIfMissing(M::BootClassPath, std::string(getenv("BOOTCLASSPATH"))); in Parse() 444 args.SetIfMissing(M::ClassPath, std::string(getenv("CLASSPATH"))); in Parse() 448 args.SetIfMissing(M::ParallelGCThreads, gc::Heap::kDefaultEnableParallelGC ? in Parse() 453 LogVerbosity *log_verbosity = args.Get(M::Verbose); in Parse() 460 Trace::SetDefaultClockSource(args.GetOrDefault(M::ProfileClock)); in Parse() [all …]
|
D | jni_internal.cc | 254 jvalue args[2]; in ThrowNewException() local 260 args[0].l = s.get(); in ThrowNewException() 263 args[0].l = cause; in ThrowNewException() 266 args[0].l = s.get(); in ThrowNewException() 267 args[1].l = cause; in ThrowNewException() 278 env, reinterpret_cast<jthrowable>(env->NewObjectA(exception_class, mid, args))); in ThrowNewException() 604 va_list args; in NewObject() local 605 va_start(args, mid); in NewObject() 608 jobject result = NewObjectV(env, java_class, mid, args); in NewObject() 609 va_end(args); in NewObject() [all …]
|
D | check_jni.cc | 345 bool Check(ScopedObjectAccess& soa, bool entry, const char* fmt, JniValueType* args) in Check() argument 361 TracePossibleHeapValue(soa, entry, fmt[i], args[i], &msg); in Check() 386 if (!CheckPossibleHeapValue(soa, fmt[i], args[i])) { in Check() 394 bool CheckNonHeap(JavaVMExt* vm, bool entry, const char* fmt, JniValueType* args) { in CheckNonHeap() argument 409 TraceNonHeapValue(fmt[i], args[i], &msg); in CheckNonHeap() 437 if (!CheckNonHeapValue(fmt[i], args[i])) { in CheckNonHeap() 1161 va_list args; in AbortF() local 1162 va_start(args, fmt); in AbortF() 1163 Runtime::Current()->GetJavaVM()->JniAbortV(function_name_, fmt, args); in AbortF() 1164 va_end(args); in AbortF() [all …]
|
D | reflection.h | 49 va_list args) 53 jvalue* args) 57 jobject obj, jmethodID mid, jvalue* args) 61 jobject obj, jmethodID mid, va_list args) 66 jobject args, size_t num_frames = 1)
|
/art/disassembler/ |
D | disassembler_arm.cc | 254 std::ostringstream args; in DumpArm() local 263 args << '#' << ((imm12 << 4) | imm4); in DumpArm() 268 args << ArmRegister(instruction & 0xf); in DumpArm() 282 args << ArmRegister(instruction, 12) << ", "; in DumpArm() 284 args << ShiftedImmediate(instruction); in DumpArm() 287 args << ArmRegister(instruction, 16) << ", " << ArmRegister(instruction, 0); in DumpArm() 296 args << ArmRegister(instruction, 12) << ", "; in DumpArm() 299 args << ArmRegister(instruction, 16) << ", " << ShiftedImmediate(instruction); in DumpArm() 302 args << ArmRegister(instruction, 16) << ", " << ArmRegister(instruction, 0); in DumpArm() 314 args << ArmRegister(instruction, 12) << ", "; in DumpArm() [all …]
|
D | disassembler_mips.cc | 329 std::ostringstream args; in Dump() local 342 args << sa; in Dump() 349 args << FormatInstructionPointer(instr_ptr + offset) in Dump() 358 args << FormatInstructionPointer(instr_ptr + offset) in Dump() 362 case 'D': args << 'r' << rd; break; in Dump() 363 case 'd': args << 'f' << rd; break; in Dump() 364 case 'a': args << 'f' << sa; break; in Dump() 379 args << reinterpret_cast<void*>((instruction & 0xffff) << 16); in Dump() 382 args << static_cast<int16_t>(instruction & 0xffff); in Dump() 390 args << reinterpret_cast<void*>(target); in Dump() [all …]
|
D | disassembler_x86.cc | 1262 std::ostringstream args; in DumpInstruction() local 1270 DumpOpcodeReg(args, rex_w, *instr & 0x7, byte_operand, prefix[2]); in DumpInstruction() 1299 DumpReg(args, rex, reg_or_opcode, byte_operand, prefix[2], dst_reg_file); in DumpInstruction() 1300 args << ", "; in DumpInstruction() 1302 DumpSegmentOverride(args, prefix[1]); in DumpInstruction() 1303 args << address; in DumpInstruction() 1306 DumpSegmentOverride(args, prefix[1]); in DumpInstruction() 1307 args << address; in DumpInstruction() 1309 args << ", "; in DumpInstruction() 1310 DumpReg(args, rex, reg_or_opcode, byte_operand, prefix[2], src_reg_file); in DumpInstruction() [all …]
|
/art/test/412-new-array/src/ |
D | Main.java | 24 public static void main(String[] args) throws Exception { in main() argument 153 Object[] args = {new Integer(1), new Integer(2), new Integer(3)}; in testSmaliFilledNewArray() local 154 int[] result = (int[])m.invoke(null, args); in testSmaliFilledNewArray() 163 Object[] args = {new Integer(1), new Integer(2)}; in testSmaliFilledNewArray() local 164 Object[] result = (Object[])m.invoke(null, args); in testSmaliFilledNewArray() 166 assertEquals(args[0], result[0]); in testSmaliFilledNewArray() 167 assertEquals(args[1], result[1]); in testSmaliFilledNewArray() 172 Object[] args = {new int[0], new int[1]}; in testSmaliFilledNewArray() local 173 Object[] result = (Object[])m.invoke(null, args); in testSmaliFilledNewArray() 175 assertEquals(args[0], result[0]); in testSmaliFilledNewArray() [all …]
|
/art/compiler/utils/ |
D | assembler_test_base.h | 201 std::vector<std::string> args; in Assemble() local 206 args.push_back(GetAssemblerCommand()); in Assemble() 207 args.push_back("-o"); in Assemble() 208 args.push_back(to_file); in Assemble() 209 args.push_back(from_file); in Assemble() 210 std::string cmd = Join(args, ' '); in Assemble() 212 args.clear(); in Assemble() 213 args.push_back("/bin/sh"); in Assemble() 214 args.push_back("-c"); in Assemble() 215 args.push_back(cmd); in Assemble() [all …]
|
D | test_dex_file_builder.h | 68 for (const auto& arg_type : proto_key.args) { in AddMethod() 124 size_t num_args = entry.first.args.size(); in Build() 180 size_t num_args = entry.first.args.size(); in Build() 192 GetTypeIdx(entry.first.args[i])); in Build() 277 std::vector<std::string> args; member 284 size_t min_args = std::min(lhs.args.size(), rhs.args.size()); in operator() 286 if (lhs.args[i] != rhs.args[i]) { in operator() 287 return lhs.args[i] < rhs.args[i]; in operator() 290 return lhs.args.size() < rhs.args.size(); in operator() 313 const char* args = signature.c_str() + 1; in CreateProtoKey() local [all …]
|
/art/runtime/arch/arm/ |
D | quick_entrypoints_cc_arm.cc | 28 static void quick_invoke_reg_setup(ArtMethod* method, uint32_t* args, uint32_t args_size, in quick_invoke_reg_setup() argument 42 core_reg_args[gpr_index++] = args[arg_index++]; in quick_invoke_reg_setup() 57 fp_reg_args[fpr_double_index++] = args[arg_index]; in quick_invoke_reg_setup() 58 fp_reg_args[fpr_double_index++] = args[arg_index + 1]; in quick_invoke_reg_setup() 74 fp_reg_args[fpr_index++] = args[arg_index]; in quick_invoke_reg_setup() 86 core_reg_args[gpr_index++] = args[arg_index]; in quick_invoke_reg_setup() 92 core_reg_args[gpr_index++] = args[arg_index]; in quick_invoke_reg_setup() 98 art_quick_invoke_stub_internal(method, args, args_size, self, result, result_in_float, in quick_invoke_reg_setup() 104 extern "C" void art_quick_invoke_stub(ArtMethod* method, uint32_t* args, uint32_t args_size, in art_quick_invoke_stub() argument 106 quick_invoke_reg_setup<false>(method, args, args_size, self, result, shorty); in art_quick_invoke_stub() [all …]
|
/art/runtime/interpreter/ |
D | interpreter.cc | 30 Object* receiver, uint32_t* args, JValue* result) in InterpreterJni() argument 67 result->SetB(fn(soa.Env(), klass.get(), args[0])); in InterpreterJni() 74 result->SetI(fn(soa.Env(), klass.get(), args[0])); in InterpreterJni() 82 reinterpret_cast<Object*>(args[0]))); in InterpreterJni() 95 result->SetI(fn(soa.Env(), klass.get(), args[0], args[1])); in InterpreterJni() 104 reinterpret_cast<Object*>(args[0]))); in InterpreterJni() 106 result->SetI(fn(soa.Env(), klass.get(), arg0.get(), args[1])); in InterpreterJni() 114 result->SetS(fn(soa.Env(), klass.get(), args[0], args[1])); in InterpreterJni() 121 fn(soa.Env(), klass.get(), args[0], args[1]); in InterpreterJni() 129 reinterpret_cast<Object*>(args[0]))); in InterpreterJni() [all …]
|
D | unstarted_runtime.cc | 52 va_list args; in AbortTransactionOrFail() local 54 va_start(args, fmt); in AbortTransactionOrFail() 55 AbortTransactionV(self, fmt, args); in AbortTransactionOrFail() 56 va_end(args); in AbortTransactionOrFail() 58 va_start(args, fmt); in AbortTransactionOrFail() 60 StringAppendV(&msg, fmt, args); in AbortTransactionOrFail() 61 va_end(args); in AbortTransactionOrFail() 509 jvalue args[1]; in GetDexFromDexCache() local 510 args[0].l = byte_buffer.get(); in GetDexFromDexCache() 515 args)); in GetDexFromDexCache() [all …]
|
/art/test/023-many-interfaces/src/ |
D | Main.java | 2 static public void main(String[] args) throws Exception { in main() argument 3 boolean timing = (args.length >= 1) && args[0].equals("--timing"); in main()
|
/art/test/044-proxy/ |
D | expected.txt | 15 (no args) 42 (no args) 47 (no args) 50 (no args) 64 (no args) 67 (no args) 70 (no args) 73 (no args) 76 (no args) 79 (no args) [all …]
|
/art/test/137-cfi/src/ |
D | Main.java | 43 public static void main(String[] args) throws Exception { in main() argument 45 if (args.length > 0 && args[args.length - 1].equals("--secondary")) { in main() 111 private static Process exec(String[] args) { in exec() argument 113 return Runtime.getRuntime().exec(args); in exec()
|
/art/test/004-ThreadStress/src/ |
D | Main.java | 237 public static void main(String[] args) throws Exception { in main() argument 238 parseAndRun(args); in main() 302 public static void parseAndRun(String[] args) throws Exception { in parseAndRun() argument 310 if (args != null) { in parseAndRun() 311 for (int i = 0; i < args.length; i++) { in parseAndRun() 312 if (args[i].equals("-n")) { in parseAndRun() 314 numberOfThreads = Integer.parseInt(args[i]); in parseAndRun() 315 } else if (args[i].equals("-o")) { in parseAndRun() 317 totalOperations = Integer.parseInt(args[i]); in parseAndRun() 318 } else if (args[i].equals("-t")) { in parseAndRun() [all …]
|
/art/test/002-sleep/src/ |
D | Main.java | 2 static public void main(String[] args) throws Exception { in main() argument 5 if (args.length != 0) { in main() 6 millis = Integer.parseInt(args[0]); in main()
|
/art/test/044-proxy/src/ |
D | FloatSelect.java | 29 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { in invoke() argument 30 return args[1]; in invoke() 34 public static void main(String[] args) { in main() argument
|
D | WrappedThrow.java | 28 public static void main(String[] args) { in main() argument 188 public Object invoke(Object proxy, Method method, Object[] args) in invoke() argument 202 return Boolean.valueOf(super.equals(args[0])); in invoke() 208 if (args == null || args.length == 0) { in invoke() 211 for (int i = 0; i < args.length; i++) in invoke() 212 System.out.println(" " + i + ": " + args[i]); in invoke() 232 result = method.invoke(mObj, args); in invoke()
|
/art/compiler/dwarf/ |
D | dwarf_test.h | 59 std::vector<std::string> Objdump(const char* args) { in Objdump() argument 98 cmd = cmd + "objdump " + args + " " + file.GetFilename() + " 2>&1"; in Objdump() 120 std::vector<std::string> Objdump(bool is64bit, const char* args) { in Objdump() argument 122 return Objdump<ElfTypes64>(args); in Objdump() 124 return Objdump<ElfTypes32>(args); in Objdump() 129 void CheckObjdumpOutput(bool is64bit, const char* args) { in CheckObjdumpOutput() argument 130 std::vector<std::string> actual_lines = Objdump(is64bit, args); in CheckObjdumpOutput()
|
/art/test/101-fibonacci/src/ |
D | Main.java | 45 public static void main(String[] args) { in main() argument 46 String arg = (args.length > 0) ? args[0] : "10"; in main()
|
/art/test/401-optimizing-compiler/ |
D | expected.txt | 2 In static method with 2 args 1 2 3 In static method with 5 args 1 2 3 4 5 4 In static method with 7 args 1 2 3 4 5 6 7
|