summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2017-02-06 16:36:24 +0000
committer Nicolas Geoffray <ngeoffray@google.com> 2017-02-06 16:36:24 +0000
commitd56a6a32547dfa354697430f89a0038895baac8e (patch)
treeef1468adfa615eecfefb012ca205325153e1993c
parent23d953942fe54bccbb3378af44aee6cd5ee6deaa (diff)
Remove obsolete restriction with allocations and dex cache.
We used to rely on being in the same dex file for doing allocations, but not anymore. Test: ART_TEST_JIT=true test-art-host Change-Id: Iabc27469dadea6bfe39054e4be305e620818ac99
-rw-r--r--compiler/optimizing/instruction_builder.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/compiler/optimizing/instruction_builder.cc b/compiler/optimizing/instruction_builder.cc
index 9a3fd2b054..a1c391f455 100644
--- a/compiler/optimizing/instruction_builder.cc
+++ b/compiler/optimizing/instruction_builder.cc
@@ -934,13 +934,6 @@ bool HInstructionBuilder::BuildInvokePolymorphic(const Instruction& instruction
bool HInstructionBuilder::BuildNewInstance(dex::TypeIndex type_index, uint32_t dex_pc) {
ScopedObjectAccess soa(Thread::Current());
- Handle<mirror::DexCache> dex_cache = dex_compilation_unit_->GetDexCache();
- Handle<mirror::DexCache> outer_dex_cache = outer_compilation_unit_->GetDexCache();
-
- if (outer_dex_cache.Get() != dex_cache.Get()) {
- // We currently do not support inlining allocations across dex files.
- return false;
- }
HLoadClass* load_class = BuildLoadClass(type_index, dex_pc);