/art/test/110-field-access/src/ |
D | Main.java | 33 int result = 0; in timeField() local 35 result = intVal; in timeField() 37 return result; in timeField() 40 int result = 0; in timeFieldFinal() local 42 result = finalIntVal; in timeFieldFinal() 44 return result; in timeFieldFinal() 47 int result = 0; in timeFieldStatic() local 49 result = staticIntVal; in timeFieldStatic() 51 return result; in timeFieldStatic() 54 int result = 0; in timeFieldStaticFinal() local [all …]
|
/art/runtime/ |
D | leb128.h | 30 int result = *(ptr++); in DecodeUnsignedLeb128() local 31 if (UNLIKELY(result > 0x7f)) { in DecodeUnsignedLeb128() 33 result = (result & 0x7f) | ((cur & 0x7f) << 7); in DecodeUnsignedLeb128() 36 result |= (cur & 0x7f) << 14; in DecodeUnsignedLeb128() 39 result |= (cur & 0x7f) << 21; in DecodeUnsignedLeb128() 44 result |= cur << 28; in DecodeUnsignedLeb128() 50 return static_cast<uint32_t>(result); in DecodeUnsignedLeb128() 66 int32_t result = *(ptr++); in DecodeSignedLeb128() local 67 if (result <= 0x7f) { in DecodeSignedLeb128() 68 result = (result << 25) >> 25; in DecodeSignedLeb128() [all …]
|
D | reflection_test.cc | 147 JValue result = InvokeWithJValues(soa, receiver, soa.EncodeMethod(method), args); in InvokeIdentityByteMethod() local 148 EXPECT_EQ(0, result.GetB()); in InvokeIdentityByteMethod() 151 result = InvokeWithJValues(soa, receiver, soa.EncodeMethod(method), args); in InvokeIdentityByteMethod() 152 EXPECT_EQ(-1, result.GetB()); in InvokeIdentityByteMethod() 155 result = InvokeWithJValues(soa, receiver, soa.EncodeMethod(method), args); in InvokeIdentityByteMethod() 156 EXPECT_EQ(SCHAR_MAX, result.GetB()); in InvokeIdentityByteMethod() 159 result = InvokeWithJValues(soa, receiver, soa.EncodeMethod(method), args); in InvokeIdentityByteMethod() 160 EXPECT_EQ(SCHAR_MIN, result.GetB()); in InvokeIdentityByteMethod() 171 JValue result = InvokeWithJValues(soa, receiver, soa.EncodeMethod(method), args); in InvokeIdentityIntMethod() local 172 EXPECT_EQ(0, result.GetI()); in InvokeIdentityIntMethod() [all …]
|
D | utils.cc | 76 std::string result; in GetThreadName() local 77 if (ReadFileToString(StringPrintf("/proc/self/task/%d/comm", tid), &result)) { in GetThreadName() 78 result.resize(result.size() - 1); // Lose the trailing '\n'. in GetThreadName() 80 result = "<unknown>"; in GetThreadName() 82 return result; in GetThreadName() 113 bool ReadFileToString(const std::string& file_name, std::string* result) { in ReadFileToString() argument 128 result->append(&buf[0], n); in ReadFileToString() 276 std::string result; in PrettyDescriptor() local 283 result.push_back(ch); in PrettyDescriptor() 287 result += "[]"; in PrettyDescriptor() [all …]
|
D | instruction_set.cc | 121 std::string result; in GetFeatureString() local 123 result += "div"; in GetFeatureString() 125 if (result.size() == 0) { in GetFeatureString() 126 result = "none"; in GetFeatureString() 128 return result; in GetFeatureString()
|
/art/runtime/base/ |
D | stringprintf.cc | 32 int result = vsnprintf(space, sizeof(space), format, backup_ap); in StringAppendV() local 35 if (result < static_cast<int>(sizeof(space))) { in StringAppendV() 36 if (result >= 0) { in StringAppendV() 38 dst->append(space, result); in StringAppendV() 42 if (result < 0) { in StringAppendV() 50 int length = result+1; in StringAppendV() 55 result = vsnprintf(buf, length, format, backup_ap); in StringAppendV() 58 if (result >= 0 && result < length) { in StringAppendV() 60 dst->append(buf, result); in StringAppendV() 68 std::string result; in StringPrintf() local [all …]
|
D | stringpiece.cc | 38 const char* result = std::search(ptr_ + pos, ptr_ + length_, in find() local 40 const size_type xpos = result - ptr_; in find() 57 const char* result = std::find(ptr_ + pos, ptr_ + length_, c); in find() local 58 return result != ptr_ + length_ ? result - ptr_ : npos; in find() 67 const char* result = std::find_end(ptr_, last, s.ptr_, s.ptr_ + s.length_); in rfind() local 68 return result != last ? result - ptr_ : npos; in rfind()
|
/art/test/402-optimizing-control-flow/src/ |
D | Main.java | 29 int result = $opt$testIfEq1(42); in main() local 30 expectEquals(42, result); in main() 32 result = $opt$testIfEq2(42); in main() 33 expectEquals(7, result); in main() 35 result = $opt$testWhileLoop(42); in main() 36 expectEquals(45, result); in main() 38 result = $opt$testDoWhileLoop(42); in main() 39 expectEquals(45, result); in main() 41 result = $opt$testForLoop(42); in main() 42 expectEquals(44, result); in main() [all …]
|
/art/runtime/mirror/ |
D | string-inl.h | 41 int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, count_)); in GetLength() local 42 DCHECK(result >= 0 && result <= GetCharArray()->GetLength()); in GetLength() 43 return result; in GetLength() 72 int32_t result = GetField32(OFFSET_OF_OBJECT_MEMBER(String, hash_code_)); in GetHashCode() local 73 if (UNLIKELY(result == 0)) { in GetHashCode() 74 result = ComputeHashCode(); in GetHashCode() 76 DCHECK(result != 0 || ComputeUtf16Hash(GetCharArray(), GetOffset(), GetLength()) == 0) in GetHashCode() 77 << ToModifiedUtf8() << " " << result; in GetHashCode() 78 return result; in GetHashCode()
|
D | throwable.cc | 73 std::string result(PrettyTypeOf(this)); in Dump() local 74 result += ": "; in Dump() 77 result += msg->ToModifiedUtf8(); in Dump() 79 result += "\n"; in Dump() 88 result += "(Throwable with empty stack trace)"; in Dump() 95 result += StringPrintf(" at %s (%s:%d)\n", PrettyMethod(method, true).c_str(), in Dump() 107 result += "(Throwable with empty stack trace)"; in Dump() 111 result += StringPrintf(" at %s (%s:%d)\n", in Dump() 118 result += "(Throwable with no stack trace)"; in Dump() 123 result += "Caused by: "; in Dump() [all …]
|
D | art_method.cc | 132 ArtMethod* result = NULL; in FindOverriddenMethod() local 136 result = super_class->GetVTableEntry(method_index); in FindOverriddenMethod() 140 result = GetDexCacheResolvedMethods()->Get(GetDexMethodIndex()); in FindOverriddenMethod() 141 CHECK_EQ(result, in FindOverriddenMethod() 148 for (size_t i = 0; i < iftable->Count() && result == NULL; i++) { in FindOverriddenMethod() 153 result = interface_mh.GetMethod(); in FindOverriddenMethod() 162 MethodHelper result_mh(hs.NewHandle(result)); in FindOverriddenMethod() 164 DCHECK(result == nullptr || this_mh.HasSameNameAndSignature(&result_mh)); in FindOverriddenMethod() 166 return result; in FindOverriddenMethod() 284 void ArtMethod::Invoke(Thread* self, uint32_t* args, uint32_t args_size, JValue* result, in Invoke() argument [all …]
|
/art/runtime/verifier/ |
D | reg_type.cc | 85 std::stringstream result; in Dump() local 89 result << "Zero/null"; in Dump() 91 result << "Precise "; in Dump() 93 result << StringPrintf("Constant: %d", val); in Dump() 95 result << StringPrintf("Constant: 0x%x", val); in Dump() 98 return result.str(); in Dump() 395 std::stringstream result; in Dump() local 397 result << "UnresolvedMergedReferences("; in Dump() 399 result << reg_type_cache_->GetFromId(*it).Dump(); in Dump() 401 result << ", "; in Dump() [all …]
|
/art/test/401-optimizing-compiler/src/ |
D | Main.java | 32 int result = $opt$TestInvokeIntParameter(42); in main() local 33 if (result != 42) { in main() 34 throw new Error("Different value returned: " + result); in main() 46 result = $opt$TestInvokeWith2Parameters(10, 9); in main() 47 if (result != 1) { in main() 48 throw new Error("Unexpected result: " + result); in main() 51 result = $opt$TestInvokeWith3Parameters(10, 9, 1); in main() 52 if (result != 0) { in main() 53 throw new Error("Unexpected result: " + result); in main() 56 result = $opt$TestInvokeWith5Parameters(10000, 1000, 100, 10, 1); in main() [all …]
|
/art/test/115-native-bridge/src/ |
D | NativeBridgeMain.java | 98 byte result = byteMethod((byte)i, (byte)2, (byte)(-3), (byte)4, (byte)(-5), (byte)6, in testByteMethod() 100 if (returns[i] != result) { in testByteMethod() 101 System.out.println("Run " + i + " with " + returns[i] + " vs " + result); in testByteMethod() 113 short result = shortMethod((short)i, (short)2, (short)(-3), (short)4, (short)(-5), (short)6, in testShortMethod() local 115 if (returns[i] != result) { in testShortMethod() 116 System.out.println("Run " + i + " with " + returns[i] + " vs " + result); in testShortMethod() 144 char result = charMethod((char)i, 'a', 'b', 'c', '0', '1', '2', (char)1234, (char)2345, in testCharMethod() local 146 if (returns[i] != result) { in testCharMethod() 147 System.out.println("Run " + i + " with " + (int)returns[i] + " vs " + (int)result); in testCharMethod()
|
/art/test/004-JniTest/src/ |
D | Main.java | 103 byte result = byteMethod((byte)i, (byte)2, (byte)(-3), (byte)4, (byte)(-5), (byte)6, in testByteMethod() 105 if (returns[i] != result) { in testByteMethod() 106 System.out.println("Run " + i + " with " + returns[i] + " vs " + result); in testByteMethod() 118 short result = shortMethod((short)i, (short)2, (short)(-3), (short)4, (short)(-5), (short)6, in testShortMethod() local 120 if (returns[i] != result) { in testShortMethod() 121 System.out.println("Run " + i + " with " + returns[i] + " vs " + result); in testShortMethod() 149 char result = charMethod((char)i, 'a', 'b', 'c', '0', '1', '2', (char)1234, (char)2345, in testCharMethod() local 151 if (returns[i] != result) { in testCharMethod() 152 System.out.println("Run " + i + " with " + (int)returns[i] + " vs " + (int)result); in testCharMethod()
|
/art/runtime/quick/ |
D | inline_method_analyser.cc | 145 InlineMethod* result) { in AnalyseReturnMethod() argument 154 if (result != nullptr) { in AnalyseReturnMethod() 155 result->opcode = kInlineOpReturnArg; in AnalyseReturnMethod() 156 result->flags = kInlineSpecial; in AnalyseReturnMethod() 157 InlineReturnArgData* data = &result->d.return_data; in AnalyseReturnMethod() 168 InlineMethod* result) { in AnalyseConstMethod() argument 191 if (result != nullptr) { in AnalyseConstMethod() 192 result->opcode = kInlineOpNonWideConst; in AnalyseConstMethod() 193 result->flags = kInlineSpecial; in AnalyseConstMethod() 194 result->d.data = static_cast<uint64_t>(const_value); in AnalyseConstMethod() [all …]
|
/art/runtime/entrypoints/quick/ |
D | quick_instrumentation_entrypoints.cc | 35 const void* result; in artInstrumentationMethodEntryFromCode() local 37 result = GetQuickToInterpreterBridge(); in artInstrumentationMethodEntryFromCode() 39 result = instrumentation->GetQuickCodeFor(method); in artInstrumentationMethodEntryFromCode() 41 DCHECK((result != Runtime::Current()->GetClassLinker()->GetQuickToInterpreterBridgeTrampoline()) in artInstrumentationMethodEntryFromCode() 43 bool interpreter_entry = (result == GetQuickToInterpreterBridge()); in artInstrumentationMethodEntryFromCode() 46 CHECK(result != NULL) << PrettyMethod(method); in artInstrumentationMethodEntryFromCode() 47 return result; in artInstrumentationMethodEntryFromCode()
|
/art/runtime/gc/space/ |
D | dlmalloc_space-inl.h | 55 mirror::Object* result = reinterpret_cast<mirror::Object*>(mspace_malloc(mspace_, num_bytes)); in AllocWithoutGrowthLocked() local 56 if (LIKELY(result != NULL)) { in AllocWithoutGrowthLocked() 58 CHECK(Contains(result)) << "Allocation (" << reinterpret_cast<void*>(result) in AllocWithoutGrowthLocked() 61 size_t allocation_size = AllocationSizeNonvirtual(result, usable_size); in AllocWithoutGrowthLocked() 65 return result; in AllocWithoutGrowthLocked()
|
D | rosalloc_space-inl.h | 56 mirror::Object* result = reinterpret_cast<mirror::Object*>( in AllocCommon() local 58 if (LIKELY(result != NULL)) { in AllocCommon() 60 CHECK(Contains(result)) << "Allocation (" << reinterpret_cast<void*>(result) in AllocCommon() 65 DCHECK_EQ(rosalloc_size, rosalloc_->UsableSize(result)); in AllocCommon() 70 return result; in AllocCommon()
|
D | valgrind_malloc_space-inl.h | 41 mirror::Object* result = reinterpret_cast<mirror::Object*>( in AllocWithGrowth() local 45 VALGRIND_MAKE_MEM_NOACCESS(reinterpret_cast<byte*>(result) + num_bytes, kValgrindRedZoneBytes); in AllocWithGrowth() 46 return result; in AllocWithGrowth() 58 mirror::Object* result = reinterpret_cast<mirror::Object*>( in Alloc() local 62 VALGRIND_MAKE_MEM_NOACCESS(reinterpret_cast<byte*>(result) + num_bytes, kValgrindRedZoneBytes); in Alloc() 63 return result; in Alloc() 68 size_t result = S::AllocationSize(reinterpret_cast<mirror::Object*>( in AllocationSize() local 70 return result; in AllocationSize()
|
/art/runtime/interpreter/ |
D | interpreter.cc | 28 Object* receiver, uint32_t* args, JValue* result) in UnstartedRuntimeJni() argument 39 result->SetL(mirror::Array::Alloc<true>(self, array_class, length, in UnstartedRuntimeJni() 42 result->SetL(NULL); in UnstartedRuntimeJni() 46 result->SetL(visitor.caller->GetDeclaringClass()); in UnstartedRuntimeJni() 50 result->SetD(log(value.GetD())); in UnstartedRuntimeJni() 53 result->SetL(mirror::Class::ComputeName(hs.NewHandle(receiver->AsClass()))); in UnstartedRuntimeJni() 55 result->SetI(args[0]); in UnstartedRuntimeJni() 57 result->SetI(args[0]); in UnstartedRuntimeJni() 61 result->SetD(exp(value.GetD())); in UnstartedRuntimeJni() 63 result->SetL(receiver->Clone(self)); in UnstartedRuntimeJni() [all …]
|
/art/test/064-field-access/src/ |
D | Main.java | 53 Object result = null; in getValue() local 57 result = field.getBoolean(obj); in getValue() 60 result = field.getByte(obj); in getValue() 63 result = field.getShort(obj); in getValue() 66 result = field.getChar(obj); in getValue() 69 result = field.getInt(obj); in getValue() 72 result = field.getLong(obj); in getValue() 75 result = field.getFloat(obj); in getValue() 78 result = field.getDouble(obj); in getValue() 81 result = field.get(obj); in getValue() [all …]
|
/art/test/022-interface/src/ |
D | Main.java | 22 int result = 0; in main() local 28 result = faceObj.iFunc2(5); in main() 30 System.out.println(result); in main() 33 result = faceObj2.iFunc2(5); in main() 35 System.out.println(result); in main()
|
/art/runtime/base/unix_file/ |
D | mapped_file.cc | 43 int result = TEMP_FAILURE_RETRY(fstat(Fd(), &st)); in MapReadOnly() local 44 if (result == -1) { in MapReadOnly() 65 int result = TEMP_FAILURE_RETRY(ftruncate64(Fd(), file_size)); in MapReadWrite() local 67 int result = TEMP_FAILURE_RETRY(ftruncate(Fd(), file_size)); in MapReadWrite() local 69 if (result == -1) { in MapReadWrite() 90 int result = TEMP_FAILURE_RETRY(munmap(mapped_file_, file_size_)); in Unmap() local 91 if (result == -1) { in Unmap()
|
/art/compiler/jni/quick/ |
D | calling_convention.h | 38 size_t result = Primitive::ComponentSize(Primitive::GetType(shorty_[0])); in SizeOfReturnValue() local 39 if (result >= 1 && result < 4) { in SizeOfReturnValue() 40 result = 4; in SizeOfReturnValue() 42 return result; in SizeOfReturnValue() 176 size_t result = Primitive::ComponentSize(Primitive::GetType(shorty_[param])); in ParamSize() local 177 if (result >= 1 && result < 4) { in ParamSize() 178 result = 4; in ParamSize() 180 return result; in ParamSize()
|