Home
last modified time | relevance | path

Searched refs:reference (Results 1 – 25 of 109) sorted by relevance

12345

/art/compiler/optimizing/
Descape.cc23 void VisitEscapes(HInstruction* reference, EscapeVisitor& escape_visitor) { in VisitEscapes() argument
26 if ((!reference->IsNewInstance() && !reference->IsNewArray()) || in VisitEscapes()
27 (reference->IsNewInstance() && reference->AsNewInstance()->IsFinalizable())) { in VisitEscapes()
28 if (!escape_visitor(reference)) { in VisitEscapes()
35 for (const HUseListNode<HInstruction*>& use : reference->GetUses()) { in VisitEscapes()
54 (user->IsInstanceFieldSet() && (reference == user->InputAt(1))) || in VisitEscapes()
55 (user->IsUnresolvedInstanceFieldSet() && (reference == user->InputAt(1))) || in VisitEscapes()
56 (user->IsStaticFieldSet() && (reference == user->InputAt(1))) || in VisitEscapes()
57 (user->IsUnresolvedStaticFieldSet() && (reference == user->InputAt(0))) || in VisitEscapes()
58 (user->IsArraySet() && (reference == user->InputAt(2)))) { in VisitEscapes()
[all …]
Descape.h63 virtual bool NoEscape(HInstruction* reference, HInstruction* user) = 0;
107 void CalculateEscape(HInstruction* reference,
113 inline void CalculateEscape(HInstruction* reference, in CalculateEscape() argument
120 CalculateEscape(reference, in CalculateEscape()
133 void VisitEscapes(HInstruction* reference, EscapeVisitor& escape_visitor);
139 bool DoesNotEscape(HInstruction* reference, NoEscapeCheck& no_escape);
141 inline bool DoesNotEscape(HInstruction* reference, in DoesNotEscape() argument
144 return DoesNotEscape(reference, esc); in DoesNotEscape()
/art/test/1339-dead-reference-safe/
DAndroid.bp3 // Build rules for ART run-test `1339-dead-reference-safe`.
16 name: "art-run-test-1339-dead-reference-safe",
21 ":art-run-test-1339-dead-reference-safe-expected-stdout",
22 ":art-run-test-1339-dead-reference-safe-expected-stderr",
28 name: "art-run-test-1339-dead-reference-safe-expected-stdout",
29 out: ["art-run-test-1339-dead-reference-safe-expected-stdout.txt"],
36 name: "art-run-test-1339-dead-reference-safe-expected-stderr",
37 out: ["art-run-test-1339-dead-reference-safe-expected-stderr.txt"],
/art/test/153-reference-stress/
DAndroid.bp3 // Build rules for ART run-test `153-reference-stress`.
16 name: "art-run-test-153-reference-stress",
21 ":art-run-test-153-reference-stress-expected-stdout",
22 ":art-run-test-153-reference-stress-expected-stderr",
28 name: "art-run-test-153-reference-stress-expected-stdout",
29 out: ["art-run-test-153-reference-stress-expected-stdout.txt"],
36 name: "art-run-test-153-reference-stress-expected-stderr",
37 out: ["art-run-test-153-reference-stress-expected-stderr.txt"],
/art/test/461-get-reference-vreg/
DAndroid.bp3 // Build rules for ART run-test `461-get-reference-vreg`.
16 name: "art-run-test-461-get-reference-vreg",
21 ":art-run-test-461-get-reference-vreg-expected-stdout",
22 ":art-run-test-461-get-reference-vreg-expected-stderr",
28 name: "art-run-test-461-get-reference-vreg-expected-stdout",
29 out: ["art-run-test-461-get-reference-vreg-expected-stdout.txt"],
36 name: "art-run-test-461-get-reference-vreg-expected-stderr",
37 out: ["art-run-test-461-get-reference-vreg-expected-stderr.txt"],
/art/runtime/
Dhandle.h63 ALWAYS_INLINE explicit Handle(StackReference<T>* reference) : reference_(reference) { in Handle() argument
117 explicit Handle(StackReference<S>* reference) in Handle() argument
118 : reference_(reference) { in Handle()
148 ALWAYS_INLINE explicit MutableHandle(StackReference<T>* reference) in MutableHandle() argument
150 : Handle<T>(reference) { in MutableHandle()
153 ALWAYS_INLINE T* Assign(T* reference) REQUIRES_SHARED(Locks::mutator_lock_) { in Assign() argument
156 ref->Assign(reference); in Assign()
160 ALWAYS_INLINE T* Assign(ObjPtr<T> reference) REQUIRES_SHARED(Locks::mutator_lock_) { in Assign() argument
163 ref->Assign(reference.Ptr()); in Assign()
174 explicit MutableHandle(StackReference<S>* reference) REQUIRES_SHARED(Locks::mutator_lock_) in MutableHandle() argument
[all …]
Dreflective_handle.h41 ALWAYS_INLINE explicit ReflectiveHandle(ReflectiveReference<T>* reference) in ReflectiveHandle() argument
42 : reference_(reference) {} in ReflectiveHandle()
90 ALWAYS_INLINE explicit MutableReflectiveHandle(ReflectiveReference<T>* reference) in MutableReflectiveHandle() argument
92 : ReflectiveHandle<T>(reference) {} in MutableReflectiveHandle()
94 ALWAYS_INLINE T* Assign(T* reference) REQUIRES_SHARED(Locks::mutator_lock_) { in Assign() argument
97 ref->Assign(reference); in Assign()
/art/test/1945-proxy-method-arguments/
Dinfo.txt1 Test checking that reference arguments of proxy methods are visited as
4 accessing one of these reference arguments in the proxy method stack
5 frame, it could end up with a stale reference, as the corresponding
7 reference would not have been updated.
/art/test/800-smali/smali/
Db_22411633_2.smali17 # Create a non-precise object reference. We can do this by merging to objects together
35 # Merge the uninitialized Object from line 12 with the reference to Object from 31. Older
36 # rules set any reference merged with Object to Object. This is wrong in the case of the
37 # other reference being an uninitialized reference, as we'd suddenly allow calling on it.
39 # Test whether it's some initialized reference by calling hashCode. This should fail, as we
Db_22411633_4.smali11 # At this point v4 is an uninitialized reference. This should fail to verify.
12 # Note: we make sure that it is an uninitialized reference and not a conflict in sister
/art/runtime/gc/
Dreference_processor.cc91 ObjPtr<mirror::Reference> reference) { in GetReferent() argument
96 return reference->GetReferent(); in GetReferent()
101 ObjPtr<mirror::Object> referent = reference->template GetReferent<kWithoutReadBarrier>(); in GetReferent()
122 if (UNLIKELY(reference->IsFinalizerReferenceInstance() in GetReferent()
124 || (kOtherReadBarrier && reference->IsPhantomReferenceInstance()))) { in GetReferent()
138 DCHECK(!reference->IsPhantomReferenceInstance()); in GetReferent()
150 referent = reference->GetReferent<kWithoutReadBarrier>(); in GetReferent()
163 return reference->GetReferent(); in GetReferent()
431 ObjPtr<mirror::FinalizerReference> reference) { in MakeCircularListIfUnenqueued() argument
442 if (reference->IsUnprocessed()) { in MakeCircularListIfUnenqueued()
[all …]
/art/test/600-verifier-fails/
Dinfo.txt13 access validation on field should occur prior to null reference check
16 verification failure (non-reference type) to avoid a compiler crash
19 access validation on method should occur prior to null reference check
/art/libartbase/base/
Dtransform_array_ref.h48 using reference = typename Iter::reference; variable
49 using const_reference = typename ConstIter::reference;
108 reference operator[](size_type n) { return GetFunction()(base()[n]); }
111 reference front() { return GetFunction()(base().front()); } in front()
114 reference back() { return GetFunction()(base().back()); } in back()
Dtransform_iterator.h46 using InputType = typename std::iterator_traits<BaseIterator>::reference;
56 using reference = ResultType; variable
91 reference operator*() const {
95 reference operator[](difference_type n) const {
Dtransform_iterator_test.cc51 static_assert(std::is_same_v<int, vector_titer::reference>); in TEST()
57 static_assert(std::is_same_v<int, vector_ctiter::reference>); in TEST()
63 static_assert(std::is_same_v<int, vector_rtiter::reference>); in TEST()
69 static_assert(std::is_same_v<int, vector_crtiter::reference>); in TEST()
150 static_assert(std::is_same_v<int, list_titer::reference>); in TEST()
156 static_assert(std::is_same_v<int, list_ctiter::reference>); in TEST()
162 static_assert(std::is_same_v<int, list_rtiter::reference>); in TEST()
168 static_assert(std::is_same_v<int, list_crtiter::reference>); in TEST()
210 static_assert(std::is_same_v<int, flist_titer::reference>); in TEST()
216 static_assert(std::is_same_v<int, flist_ctiter::reference>); in TEST()
[all …]
Darray_slice.h35 using reference = T&; variable
92 reference operator[](size_t index) {
102 reference front() { in front()
112 reference back() { in back()
Darray_ref.h44 using reference = T&; variable
135 reference operator[](size_type n) {
145 reference front() { in front()
155 reference back() { in back()
/art/tools/veridex/
Dflow_analysis.h52 RegisterValue(RegisterSource source, DexFileReference reference, const VeriClass* type) in RegisterValue() argument
53 : source_(source), value_(0), reference_(reference), type_(type) {} in RegisterValue()
57 DexFileReference reference, in RegisterValue() argument
59 : source_(source), value_(value), reference_(reference), type_(type) {} in RegisterValue()
/art/test/554-checker-rtp-checkcast/
Dinfo.txt1 Tests that phis with check-casted reference type inputs are typed.
/art/test/549-checker-types-merge/
Dinfo.txt1 Checker test for testing the type merge during reference type propagation.
/art/test/080-oom-throw-with-finalizer/
Dinfo.txt1 Regression test on correct processing of OOM thrown while adding a finalizer reference.
/art/test/557-checker-ref-equivalent/
Dinfo.txt1 Checker tests to ensure we do not get reference and integer phi equivalents.
/art/test/1003-metadata-section-strings/
Dinfo.txt1 Test that releasing the metadata cache doesn't break reference equality of string literals.
/art/tools/dexanalyze/
Ddexanalyze_strings.cc498 const std::vector<std::string>& reference, in Benchmark() argument
501 timings->num_comparisons_ += reference.size() * kIterations; in Benchmark()
505 for (size_t i = 0; i < reference.size(); ++i) { in Benchmark()
508 reinterpret_cast<const uint8_t*>(&reference[i][0]), in Benchmark()
509 reference[i].length())) in Benchmark()
510 << i << ": " << strings.GetString(i) << " vs " << reference[i]; in Benchmark()
518 for (size_t i = 0; i < reference.size(); ++i) { in Benchmark()
520 reference.size() - 1 - i, in Benchmark()
521 reinterpret_cast<const uint8_t*>(&reference[i][0]), in Benchmark()
522 reference[i].length()); in Benchmark()
/art/test/581-checker-rtp/
Dinfo.txt1 Regression test for the reference type propagation pass

12345