diff options
author | Vladimir Marko <vmarko@google.com> | 2016-12-08 14:41:46 +0000 |
---|---|---|
committer | Vladimir Marko <vmarko@google.com> | 2016-12-09 13:30:00 +0000 |
commit | 19a4d374738da4dc668a078f92dbe887ff9f00d9 (patch) | |
tree | a210638e93d80cf0a297de07f4c9cdc60784ce50 /compiler/optimizing/graph_visualizer.cc | |
parent | aea9ffece7eb32f3884a4ad0553e1df4d90fd9e4 (diff) |
Clean up Class::GetDirectInterface().
Once the `klass` has been resolved, this function should not
need to resolve interface types anymore. Drop the type
resolution from this function and pass the Class as ObjPtr<>
instead of Handle<>. Make callers that expect non-null
result DCHECK() that assumption. For the callers that may
actually need to resolve these interface classes, introduce
a new function ResolveDirectInterface().
Also improve ObjPtr<> constructors and assignment operator
to improve overload resolution. For example, if we have
foo(ObjPtr<T1>) and foo(ObjPtr<T2>), calling foo(.) with
a T1* would have previously been ambiguous even if T1 is
not a base of T2.
Test: m test-art-host
Change-Id: Iff44a7285f68f0af4507fc9ba37343865422fe84
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions