summaryrefslogtreecommitdiff
path: root/runtime/art_method.cc
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2017-01-27 10:37:34 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2017-01-27 10:37:36 +0000
commitca21dc47adeed92a15a9d3fd090bdd0e6654679c (patch)
tree59aca3792abfa47c7424e4dac13248651e4662b2 /runtime/art_method.cc
parent67c60656639acc92dca2ae8713add7d22683c7b9 (diff)
parente8fcd013493b800227bd7ea5f38f6cc27e9b90d1 (diff)
Merge "Revert "Revert "CHA for abstract methods."""
Diffstat (limited to 'runtime/art_method.cc')
-rw-r--r--runtime/art_method.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/runtime/art_method.cc b/runtime/art_method.cc
index a3d9ba61f3..ec789f51ef 100644
--- a/runtime/art_method.cc
+++ b/runtime/art_method.cc
@@ -55,15 +55,13 @@ extern "C" void art_quick_invoke_stub(ArtMethod*, uint32_t*, uint32_t, Thread*,
extern "C" void art_quick_invoke_static_stub(ArtMethod*, uint32_t*, uint32_t, Thread*, JValue*,
const char*);
-ArtMethod* ArtMethod::GetSingleImplementation() {
+ArtMethod* ArtMethod::GetSingleImplementation(PointerSize pointer_size) {
DCHECK(!IsNative());
if (!IsAbstract()) {
// A non-abstract's single implementation is itself.
return this;
}
- // TODO: add single-implementation logic for abstract method by storing it
- // in ptr_sized_fields_.
- return nullptr;
+ return reinterpret_cast<ArtMethod*>(GetDataPtrSize(pointer_size));
}
ArtMethod* ArtMethod::FromReflectedMethod(const ScopedObjectAccessAlreadyRunnable& soa,