diff options
author | 2016-01-07 15:42:47 +0000 | |
---|---|---|
committer | 2016-01-26 10:23:06 -0800 | |
commit | 9724c636467d56632a45fdf6353e3d57d1925501 (patch) | |
tree | f28f6ff8146088eef28405a55a7f6ab517120ae0 /runtime/class_linker.cc | |
parent | 4fe6ce5f48687cf24c91ac9865dbad497ed6c074 (diff) |
Enable interface default methods by default.
This also enables interface static methods.
This removes the -Xexperimental:default-methods flag and all places
where we explicitly check for its presence.
Bug: 24618811
Change-Id: Icd91e377bd6e1a45a1645f810d15de1b0312e31d
Diffstat (limited to 'runtime/class_linker.cc')
-rw-r--r-- | runtime/class_linker.cc | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc index ed833c4335..5e4b3a6f0c 100644 --- a/runtime/class_linker.cc +++ b/runtime/class_linker.cc @@ -5523,15 +5523,6 @@ bool ClassLinker::LinkInterfaceMethods( Runtime* const runtime = Runtime::Current(); const bool is_interface = klass->IsInterface(); - // TODO It might in the future prove useful to make interfaces have full iftables, allowing a - // faster invoke-super implementation in the interpreter/across dex-files. - // We will just skip doing any of this on non-debug builds for speed. - if (is_interface && - !kIsDebugBuild && - !runtime->AreExperimentalFlagsEnabled(ExperimentalFlags::kDefaultMethods)) { - return true; - } - const bool has_superclass = klass->HasSuperClass(); const bool fill_tables = !is_interface; const size_t super_ifcount = has_superclass ? klass->GetSuperClass()->GetIfTableCount() : 0U; |