summaryrefslogtreecommitdiff
path: root/runtime/interpreter/unstarted_runtime.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2020-05-14 16:39:14 +0100
committer Vladimir Marko <vmarko@google.com> 2020-05-15 14:10:47 +0000
commit0a6063a07edf210979de199aecead92647b8752c (patch)
tree03e427837b0c248700ac0ea7f42e91fa9a9cf53b /runtime/interpreter/unstarted_runtime.cc
parentecb984ddbd830e6eb3f339b9bd4c7c90eac2438b (diff)
Clean up Field::CreateFromArtField().
Remove code dealing with the DexCache. This was obsolete since switching to hash-based DexCache arrays. This makes the last remaining template parameter unused, so remove it and move the implementation to the .cc file. Test: m test-art-host-gtest Test: testrunner.py --host --optmizing Test: aost_taimen-userdebug boots. Change-Id: Ib2077028f45792e4357d9c57280ece70a22e47a2
Diffstat (limited to 'runtime/interpreter/unstarted_runtime.cc')
-rw-r--r--runtime/interpreter/unstarted_runtime.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/runtime/interpreter/unstarted_runtime.cc b/runtime/interpreter/unstarted_runtime.cc
index 6b10b7fb44..99cd5470c3 100644
--- a/runtime/interpreter/unstarted_runtime.cc
+++ b/runtime/interpreter/unstarted_runtime.cc
@@ -48,7 +48,7 @@
#include "mirror/array-inl.h"
#include "mirror/class-alloc-inl.h"
#include "mirror/executable-inl.h"
-#include "mirror/field-inl.h"
+#include "mirror/field.h"
#include "mirror/method.h"
#include "mirror/object-inl.h"
#include "mirror/object_array-alloc-inl.h"
@@ -360,10 +360,7 @@ void UnstartedRuntime::UnstartedClassGetDeclaredField(
klass->PrettyDescriptor().c_str());
return;
}
- PointerSize pointer_size = Runtime::Current()->GetClassLinker()->GetImagePointerSize();
- ObjPtr<mirror::Field> field = (pointer_size == PointerSize::k64)
- ? mirror::Field::CreateFromArtField<PointerSize::k64>(self, found, true)
- : mirror::Field::CreateFromArtField<PointerSize::k32>(self, found, true);
+ ObjPtr<mirror::Field> field = mirror::Field::CreateFromArtField(self, found, true);
result->SetL(field);
}