Home
last modified time | relevance | path

Searched refs:rhs (Results 1 – 25 of 136) sorted by relevance

123456

/art/runtime/arch/arm64/
Dregisters_arm64.cc38 std::ostream& operator<<(std::ostream& os, const XRegister& rhs) { in operator <<() argument
39 if (rhs >= X0 && rhs < kNumberOfXRegisters) { in operator <<()
40 os << kRegisterNames[rhs]; in operator <<()
42 os << "XRegister[" << static_cast<int>(rhs) << "]"; in operator <<()
47 std::ostream& operator<<(std::ostream& os, const WRegister& rhs) { in operator <<() argument
48 if (rhs >= W0 && rhs < kNumberOfWRegisters) { in operator <<()
49 os << kWRegisterNames[rhs]; in operator <<()
51 os << "WRegister[" << static_cast<int>(rhs) << "]"; in operator <<()
56 std::ostream& operator<<(std::ostream& os, const DRegister& rhs) { in operator <<() argument
57 if (rhs >= D0 && rhs < kNumberOfDRegisters) { in operator <<()
[all …]
/art/test/ti-agent/
Dscoped_utf_chars.h41 ScopedUtfChars(ScopedUtfChars&& rhs) : in ScopedUtfChars() argument
42 env_(rhs.env_), string_(rhs.string_), utf_chars_(rhs.utf_chars_) { in ScopedUtfChars()
43 rhs.env_ = nullptr; in ScopedUtfChars()
44 rhs.string_ = nullptr; in ScopedUtfChars()
45 rhs.utf_chars_ = nullptr; in ScopedUtfChars()
54 ScopedUtfChars& operator=(ScopedUtfChars&& rhs) {
55 if (this != &rhs) {
60 env_ = rhs.env_;
61 string_ = rhs.string_;
62 utf_chars_ = rhs.utf_chars_;
[all …]
/art/runtime/arch/x86_64/
Dregisters_x86_64.cc28 std::ostream& operator<<(std::ostream& os, const Register& rhs) { in operator <<() argument
29 if (rhs >= RAX && rhs <= R15) { in operator <<()
30 os << kRegisterNames[rhs]; in operator <<()
32 os << "Register[" << static_cast<int>(rhs) << "]"; in operator <<()
37 std::ostream& operator<<(std::ostream& os, const FloatRegister& rhs) { in operator <<() argument
38 if (rhs >= XMM0 && rhs <= XMM15) { in operator <<()
39 os << "xmm" << static_cast<int>(rhs); in operator <<()
41 os << "Register[" << static_cast<int>(rhs) << "]"; in operator <<()
/art/runtime/arch/arm/
Dregisters_arm.cc28 std::ostream& operator<<(std::ostream& os, const Register& rhs) { in operator <<() argument
29 if (rhs >= R0 && rhs <= PC) { in operator <<()
30 os << kRegisterNames[rhs]; in operator <<()
32 os << "Register[" << static_cast<int>(rhs) << "]"; in operator <<()
37 std::ostream& operator<<(std::ostream& os, const SRegister& rhs) { in operator <<() argument
38 if (rhs >= S0 && rhs < kNumberOfSRegisters) { in operator <<()
39 os << "s" << static_cast<int>(rhs); in operator <<()
41 os << "SRegister[" << static_cast<int>(rhs) << "]"; in operator <<()
/art/libdexfile/dex/
Dclass_iterator.h69 bool operator==(const ClassIterator& rhs) const {
70 DCHECK_EQ(&data_.dex_file_, &rhs.data_.dex_file_) << "Comparing different dex files.";
71 return data_.class_def_idx_ == rhs.data_.class_def_idx_;
74 bool operator!=(const ClassIterator& rhs) const {
75 return !(*this == rhs);
78 bool operator<(const ClassIterator& rhs) const {
79 DCHECK_EQ(&data_.dex_file_, &rhs.data_.dex_file_) << "Comparing different dex files.";
80 return data_.class_def_idx_ < rhs.data_.class_def_idx_;
83 bool operator>(const ClassIterator& rhs) const {
84 return rhs < *this;
[all …]
Dsignature-inl.h26 inline bool Signature::operator==(const Signature& rhs) const {
28 return rhs.dex_file_ == nullptr;
30 if (rhs.dex_file_ == nullptr) {
33 if (dex_file_ == rhs.dex_file_) {
34 return proto_id_ == rhs.proto_id_;
43 rhs.dex_file_->StringDataAndUtf16LengthByIdx(rhs.proto_id_->shorty_idx_,
53 rhs.dex_file_->GetTypeId(rhs.proto_id_->return_type_idx_);
55 rhs.dex_file_, rhs_return_type_id.descriptor_idx_)) {
61 const dex::TypeList* rhs_params = rhs.dex_file_->GetProtoParameters(*rhs.proto_id_);
70 rhs.dex_file_->GetTypeId(rhs_params->GetTypeItem(i).type_idx_);
[all …]
Ddex_instruction_iterator.h88 const DexInstructionIteratorBase& rhs) {
89 DCHECK_EQ(lhs.Instructions(), rhs.Instructions()) << "Comparing different code items.";
90 return lhs.DexPc() == rhs.DexPc();
94 const DexInstructionIteratorBase& rhs) {
95 return !(lhs == rhs);
99 const DexInstructionIteratorBase& rhs) {
100 DCHECK_EQ(lhs.Instructions(), rhs.Instructions()) << "Comparing different code items.";
101 return lhs.DexPc() < rhs.DexPc();
105 const DexInstructionIteratorBase& rhs) {
106 return rhs < lhs;
[all …]
Dsignature.h47 bool operator==(const Signature& rhs) const;
48 bool operator!=(const Signature& rhs) const {
49 return !(*this == rhs);
52 bool operator==(std::string_view rhs) const;
Dclass_accessor.h218 bool operator==(const DataIterator& rhs) const {
219 DCHECK_EQ(&data_.dex_file_, &rhs.data_.dex_file_) << "Comparing different dex files.";
220 return position_ == rhs.position_;
223 bool operator!=(const DataIterator& rhs) const {
224 return !(*this == rhs);
227 bool operator<(const DataIterator& rhs) const {
228 DCHECK_EQ(&data_.dex_file_, &rhs.data_.dex_file_) << "Comparing different dex files.";
229 return position_ < rhs.position_;
232 bool operator>(const DataIterator& rhs) const {
233 return rhs < *this;
[all …]
/art/compiler/debug/
Dsrc_map_elem.h30 inline bool operator<(const SrcMapElem& lhs, const SrcMapElem& rhs) {
31 if (lhs.from_ != rhs.from_) {
32 return lhs.from_ < rhs.from_;
34 return lhs.to_ < rhs.to_;
37 inline bool operator==(const SrcMapElem& lhs, const SrcMapElem& rhs) {
38 return lhs.from_ == rhs.from_ && lhs.to_ == rhs.to_;
/art/runtime/verifier/
Dreg_type-inl.h71 const RegType& rhs, in AssignableFrom() argument
74 if (lhs.Equals(rhs)) { in AssignableFrom()
79 return rhs.IsBooleanTypes(); in AssignableFrom()
81 return rhs.IsByteTypes(); in AssignableFrom()
83 return rhs.IsShortTypes(); in AssignableFrom()
85 return rhs.IsCharTypes(); in AssignableFrom()
87 return rhs.IsIntegralTypes(); in AssignableFrom()
89 return rhs.IsFloatTypes(); in AssignableFrom()
91 return rhs.IsLongTypes(); in AssignableFrom()
93 return rhs.IsDoubleTypes(); in AssignableFrom()
[all …]
/art/libartbase/base/
Dsdk_version.h40 inline bool IsSdkVersionSetAndMoreThan(uint32_t lhs, SdkVersion rhs) { in IsSdkVersionSetAndMoreThan() argument
41 return lhs != static_cast<uint32_t>(SdkVersion::kUnset) && lhs > static_cast<uint32_t>(rhs); in IsSdkVersionSetAndMoreThan()
44 inline bool IsSdkVersionSetAndAtLeast(uint32_t lhs, SdkVersion rhs) { in IsSdkVersionSetAndAtLeast() argument
45 return lhs != static_cast<uint32_t>(SdkVersion::kUnset) && lhs >= static_cast<uint32_t>(rhs); in IsSdkVersionSetAndAtLeast()
48 inline bool IsSdkVersionSetAndAtMost(uint32_t lhs, SdkVersion rhs) { in IsSdkVersionSetAndAtMost() argument
49 return lhs != static_cast<uint32_t>(SdkVersion::kUnset) && lhs <= static_cast<uint32_t>(rhs); in IsSdkVersionSetAndAtMost()
52 inline bool IsSdkVersionSetAndLessThan(uint32_t lhs, SdkVersion rhs) { in IsSdkVersionSetAndLessThan() argument
53 return lhs != static_cast<uint32_t>(SdkVersion::kUnset) && lhs < static_cast<uint32_t>(rhs); in IsSdkVersionSetAndLessThan()
Dstride_iterator.h94 difference_type operator-(const StrideIterator& rhs) {
95 DCHECK_EQ(stride_, rhs.stride_);
96 DCHECK_EQ((ptr_ - rhs.ptr_) % stride_, 0u);
97 return (ptr_ - rhs.ptr_) / stride_;
118 friend bool operator<(const StrideIterator<U>& lhs, const StrideIterator<U>& rhs);
128 bool operator<(const StrideIterator<T>& lhs, const StrideIterator<T>& rhs) {
129 DCHECK_EQ(lhs.stride_, rhs.stride_);
130 return lhs.ptr_ < rhs.ptr_;
134 bool operator>(const StrideIterator<T>& lhs, const StrideIterator<T>& rhs) {
135 return rhs < lhs;
[all …]
Denums.cc23 std::ostream& operator<<(std::ostream& os, const PointerSize& rhs) { in operator <<() argument
24 switch (rhs) { in operator <<()
27 default: os << "PointerSize[" << static_cast<int>(rhs) << "]"; break; in operator <<()
Ddchecked_vector.h196 void swap(dchecked_vector<T, Alloc>& lhs, dchecked_vector<T, Alloc>& rhs) { in swap() argument
197 lhs.swap(rhs); in swap()
202 bool operator==(const dchecked_vector<T, Alloc>& lhs, const dchecked_vector<T, Alloc>& rhs) {
203 return lhs.size() == rhs.size() && std::equal(lhs.begin(), lhs.end(), rhs.begin());
206 bool operator!=(const dchecked_vector<T, Alloc>& lhs, const dchecked_vector<T, Alloc>& rhs) {
207 return !(lhs == rhs);
210 bool operator<(const dchecked_vector<T, Alloc>& lhs, const dchecked_vector<T, Alloc>& rhs) {
211 return std::lexicographical_compare(lhs.begin(), lhs.end(), rhs.begin(), rhs.end());
214 bool operator<=(const dchecked_vector<T, Alloc>& lhs, const dchecked_vector<T, Alloc>& rhs) {
215 return !(rhs < lhs);
[all …]
Dintrusive_forward_list.h111 const IntrusiveForwardListIterator<OtherT2, OtherTraits>& rhs);
117 const IntrusiveForwardListIterator<OtherT, HookTraits>& rhs) {
118 return lhs.hook_ == rhs.hook_;
124 const IntrusiveForwardListIterator<OtherT, HookTraits>& rhs) {
125 return !(lhs == rhs);
401 void swap(IntrusiveForwardList<T, HookTraits>& lhs, IntrusiveForwardList<T, HookTraits>& rhs) { in swap() argument
402 lhs.swap(rhs); in swap()
407 const IntrusiveForwardList<T, HookTraits>& rhs) {
409 auto rit = rhs.begin();
410 for (; lit != lhs.end() && rit != rhs.end(); ++lit, ++rit) {
[all …]
/art/compiler/utils/arm/
Dconstants_arm.cc22 std::ostream& operator<<(std::ostream& os, const DRegister& rhs) { in operator <<() argument
23 if (rhs >= D0 && rhs < kNumberOfDRegisters) { in operator <<()
24 os << "d" << static_cast<int>(rhs); in operator <<()
26 os << "DRegister[" << static_cast<int>(rhs) << "]"; in operator <<()
/art/runtime/arch/x86/
Dregisters_x86.cc27 std::ostream& operator<<(std::ostream& os, const Register& rhs) { in operator <<() argument
28 if (rhs >= EAX && rhs <= EDI) { in operator <<()
29 os << kRegisterNames[rhs]; in operator <<()
31 os << "Register[" << static_cast<int>(rhs) << "]"; in operator <<()
/art/test/083-compiler-regressions/src/
DZeroTests.java42 private static long longDiv(long lhs, long rhs) { in longDiv() argument
43 return lhs / rhs; in longDiv()
46 private static long longMod(long lhs, long rhs) { in longMod() argument
47 return lhs % rhs; in longMod()
/art/runtime/
Dmapping_table.h96 bool operator==(const DexToPcIterator& rhs) const {
97 CHECK(table_ == rhs.table_);
98 return element_ == rhs.element_;
100 bool operator!=(const DexToPcIterator& rhs) const {
101 CHECK(table_ == rhs.table_);
102 return element_ != rhs.element_;
173 bool operator==(const PcToDexIterator& rhs) const {
174 CHECK(table_ == rhs.table_);
175 return element_ == rhs.element_;
177 bool operator!=(const PcToDexIterator& rhs) const {
[all …]
Dobj_ptr-inl.h140 operator==(ObjPtr<MirrorType1> lhs, ObjPtr<MirrorType2> rhs) {
141 return lhs.Ptr() == rhs.Ptr();
147 operator==(const MirrorType1* lhs, ObjPtr<MirrorType2> rhs) {
148 return lhs == rhs.Ptr();
154 operator==(ObjPtr<MirrorType1> lhs, const MirrorType2* rhs) {
155 return lhs.Ptr() == rhs;
161 operator!=(ObjPtr<MirrorType1> lhs, ObjPtr<MirrorType2> rhs) {
162 return !(lhs == rhs);
168 operator!=(const MirrorType1* lhs, ObjPtr<MirrorType2> rhs) {
169 return !(lhs == rhs);
[all …]
/art/compiler/linker/
Dlinker_patch.h287 friend bool operator==(const LinkerPatch& lhs, const LinkerPatch& rhs);
288 friend bool operator<(const LinkerPatch& lhs, const LinkerPatch& rhs);
292 inline bool operator==(const LinkerPatch& lhs, const LinkerPatch& rhs) {
293 return lhs.literal_offset_ == rhs.literal_offset_ &&
294 lhs.patch_type_ == rhs.patch_type_ &&
295 lhs.target_dex_file_ == rhs.target_dex_file_ &&
296 lhs.cmp1_ == rhs.cmp1_ &&
297 lhs.cmp2_ == rhs.cmp2_;
300 inline bool operator<(const LinkerPatch& lhs, const LinkerPatch& rhs) {
301 return (lhs.literal_offset_ != rhs.literal_offset_) ? lhs.literal_offset_ < rhs.literal_offset_
[all …]
/art/test/442-checker-constant-folding/src/
DMain.java711 long rhs = 2; in ShlIntLong() local
712 return lhs << rhs; in ShlIntLong()
730 int rhs = 2; in ShlLongInt() local
731 return lhs << rhs; in ShlLongInt()
755 long rhs = 2; in ShrIntLong() local
756 return lhs >> rhs; in ShrIntLong()
774 int rhs = 2; in ShrLongInt() local
775 return lhs >> rhs; in ShrLongInt()
799 long rhs = 2; in UShrIntLong() local
800 return lhs >>> rhs; in UShrIntLong()
[all …]
/art/compiler/utils/
Dswap_space.h82 bool operator()(const FreeBySizeEntry& lhs, const FreeBySizeEntry& rhs) const { in operator()
83 if (lhs.size != rhs.size) { in operator()
84 return lhs.size < rhs.size; in operator()
86 return lhs.free_by_start_entry->Start() < rhs.free_by_start_entry->Start(); in operator()
142 friend bool operator==(const SwapAllocator<U>& lhs, const SwapAllocator<U>& rhs);
221 friend bool operator==(const SwapAllocator<U>& lhs, const SwapAllocator<U>& rhs);
225 inline bool operator==(const SwapAllocator<T>& lhs, const SwapAllocator<T>& rhs) {
226 return lhs.swap_space_ == rhs.swap_space_;
230 inline bool operator!=(const SwapAllocator<T>& lhs, const SwapAllocator<T>& rhs) {
231 return !(lhs == rhs);
/art/compiler/optimizing/
Dcode_generator_vector_arm_vixl.cc277 vixl32::DRegister rhs = DRegisterFrom(locations->InAt(1)); in VisitVecAdd() local
283 __ Vadd(I8, dst, lhs, rhs); in VisitVecAdd()
288 __ Vadd(I16, dst, lhs, rhs); in VisitVecAdd()
292 __ Vadd(I32, dst, lhs, rhs); in VisitVecAdd()
307 vixl32::DRegister rhs = DRegisterFrom(locations->InAt(1)); in VisitVecSaturationAdd() local
312 __ Vqadd(DataTypeValue::U8, dst, lhs, rhs); in VisitVecSaturationAdd()
316 __ Vqadd(DataTypeValue::S8, dst, lhs, rhs); in VisitVecSaturationAdd()
320 __ Vqadd(DataTypeValue::U16, dst, lhs, rhs); in VisitVecSaturationAdd()
324 __ Vqadd(DataTypeValue::S16, dst, lhs, rhs); in VisitVecSaturationAdd()
339 vixl32::DRegister rhs = DRegisterFrom(locations->InAt(1)); in VisitVecHalvingAdd() local
[all …]

123456