blob: 76aeaa55d7f60d59c3490e1d41eb8644d3fef75b [file] [log] [blame]
Brian Carlstrom7940e442013-07-12 13:46:57 -07001/*
2 * Copyright (C) 2011 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Andreas Gampe5eb0d382015-07-23 01:19:26 -070017#include "dex_to_dex_compiler.h"
18
Andreas Gampe46ee31b2016-12-14 10:11:49 -080019#include "android-base/stringprintf.h"
20
Mathieu Chartierc7853442015-03-27 14:35:38 -070021#include "art_field-inl.h"
Mathieu Chartiere401d142015-04-22 13:56:20 -070022#include "art_method-inl.h"
Brian Carlstrom7940e442013-07-12 13:46:57 -070023#include "base/logging.h"
24#include "base/mutex.h"
Nicolas Geoffrayc04c8002015-07-14 11:37:54 +010025#include "compiled_method.h"
Brian Carlstrom7940e442013-07-12 13:46:57 -070026#include "dex_file-inl.h"
27#include "dex_instruction-inl.h"
28#include "driver/compiler_driver.h"
29#include "driver/dex_compilation_unit.h"
Brian Carlstrom7940e442013-07-12 13:46:57 -070030#include "mirror/class-inl.h"
31#include "mirror/dex_cache.h"
Ian Rogers02ed4c02013-09-06 13:10:04 -070032#include "thread-inl.h"
Brian Carlstrom7940e442013-07-12 13:46:57 -070033
34namespace art {
35namespace optimizer {
36
Andreas Gampe46ee31b2016-12-14 10:11:49 -080037using android::base::StringPrintf;
38
Brian Carlstrom7940e442013-07-12 13:46:57 -070039// Controls quickening activation.
40const bool kEnableQuickening = true;
Sebastien Hertz543959c2013-07-03 12:00:19 +020041// Control check-cast elision.
42const bool kEnableCheckCastEllision = true;
Brian Carlstrom7940e442013-07-12 13:46:57 -070043
Nicolas Geoffrayc04c8002015-07-14 11:37:54 +010044struct QuickenedInfo {
45 QuickenedInfo(uint32_t pc, uint16_t index) : dex_pc(pc), dex_member_index(index) {}
46
47 uint32_t dex_pc;
48 uint16_t dex_member_index;
49};
50
Brian Carlstrom7940e442013-07-12 13:46:57 -070051class DexCompiler {
52 public:
53 DexCompiler(art::CompilerDriver& compiler,
Sebastien Hertz75021222013-07-16 18:34:50 +020054 const DexCompilationUnit& unit,
55 DexToDexCompilationLevel dex_to_dex_compilation_level)
Brian Carlstrom7940e442013-07-12 13:46:57 -070056 : driver_(compiler),
Sebastien Hertz75021222013-07-16 18:34:50 +020057 unit_(unit),
58 dex_to_dex_compilation_level_(dex_to_dex_compilation_level) {}
Brian Carlstrom7940e442013-07-12 13:46:57 -070059
Brian Carlstrom9b7085a2013-07-18 15:15:21 -070060 ~DexCompiler() {}
Brian Carlstrom7940e442013-07-12 13:46:57 -070061
62 void Compile();
63
Nicolas Geoffrayc04c8002015-07-14 11:37:54 +010064 const std::vector<QuickenedInfo>& GetQuickenedInfo() const {
65 return quickened_info_;
66 }
67
Brian Carlstrom7940e442013-07-12 13:46:57 -070068 private:
69 const DexFile& GetDexFile() const {
70 return *unit_.GetDexFile();
71 }
72
Sebastien Hertz75021222013-07-16 18:34:50 +020073 bool PerformOptimizations() const {
Andreas Gampe5eb0d382015-07-23 01:19:26 -070074 return dex_to_dex_compilation_level_ >= DexToDexCompilationLevel::kOptimize;
Sebastien Hertz75021222013-07-16 18:34:50 +020075 }
76
Brian Carlstrom7940e442013-07-12 13:46:57 -070077 // Compiles a RETURN-VOID into a RETURN-VOID-BARRIER within a constructor where
78 // a barrier is required.
79 void CompileReturnVoid(Instruction* inst, uint32_t dex_pc);
80
Sebastien Hertz543959c2013-07-03 12:00:19 +020081 // Compiles a CHECK-CAST into 2 NOP instructions if it is known to be safe. In
82 // this case, returns the second NOP instruction pointer. Otherwise, returns
83 // the given "inst".
84 Instruction* CompileCheckCast(Instruction* inst, uint32_t dex_pc);
85
Brian Carlstrom7940e442013-07-12 13:46:57 -070086 // Compiles a field access into a quick field access.
87 // The field index is replaced by an offset within an Object where we can read
88 // from / write to this field. Therefore, this does not involve any resolution
89 // at runtime.
90 // Since the field index is encoded with 16 bits, we can replace it only if the
91 // field offset can be encoded with 16 bits too.
92 void CompileInstanceFieldAccess(Instruction* inst, uint32_t dex_pc,
93 Instruction::Code new_opcode, bool is_put);
94
95 // Compiles a virtual method invocation into a quick virtual method invocation.
96 // The method index is replaced by the vtable index where the corresponding
Neil Fuller0e844392016-09-08 13:43:31 +010097 // Executable can be found. Therefore, this does not involve any resolution
Brian Carlstrom7940e442013-07-12 13:46:57 -070098 // at runtime.
99 // Since the method index is encoded with 16 bits, we can replace it only if the
100 // vtable index can be encoded with 16 bits too.
101 void CompileInvokeVirtual(Instruction* inst, uint32_t dex_pc,
102 Instruction::Code new_opcode, bool is_range);
103
104 CompilerDriver& driver_;
105 const DexCompilationUnit& unit_;
Sebastien Hertz75021222013-07-16 18:34:50 +0200106 const DexToDexCompilationLevel dex_to_dex_compilation_level_;
Brian Carlstrom7940e442013-07-12 13:46:57 -0700107
Nicolas Geoffrayc04c8002015-07-14 11:37:54 +0100108 // Filled by the compiler when quickening, in order to encode that information
109 // in the .oat file. The runtime will use that information to get to the original
110 // opcodes.
111 std::vector<QuickenedInfo> quickened_info_;
112
Brian Carlstrom7940e442013-07-12 13:46:57 -0700113 DISALLOW_COPY_AND_ASSIGN(DexCompiler);
114};
115
Brian Carlstrom7940e442013-07-12 13:46:57 -0700116void DexCompiler::Compile() {
Andreas Gampe5eb0d382015-07-23 01:19:26 -0700117 DCHECK_GE(dex_to_dex_compilation_level_, DexToDexCompilationLevel::kRequired);
Brian Carlstrom7940e442013-07-12 13:46:57 -0700118 const DexFile::CodeItem* code_item = unit_.GetCodeItem();
119 const uint16_t* insns = code_item->insns_;
120 const uint32_t insns_size = code_item->insns_size_in_code_units_;
121 Instruction* inst = const_cast<Instruction*>(Instruction::At(insns));
122
123 for (uint32_t dex_pc = 0; dex_pc < insns_size;
124 inst = const_cast<Instruction*>(inst->Next()), dex_pc = inst->GetDexPc(insns)) {
125 switch (inst->Opcode()) {
126 case Instruction::RETURN_VOID:
127 CompileReturnVoid(inst, dex_pc);
128 break;
129
Sebastien Hertz543959c2013-07-03 12:00:19 +0200130 case Instruction::CHECK_CAST:
131 inst = CompileCheckCast(inst, dex_pc);
132 break;
133
Brian Carlstrom7940e442013-07-12 13:46:57 -0700134 case Instruction::IGET:
135 CompileInstanceFieldAccess(inst, dex_pc, Instruction::IGET_QUICK, false);
136 break;
137
138 case Instruction::IGET_WIDE:
139 CompileInstanceFieldAccess(inst, dex_pc, Instruction::IGET_WIDE_QUICK, false);
140 break;
141
142 case Instruction::IGET_OBJECT:
143 CompileInstanceFieldAccess(inst, dex_pc, Instruction::IGET_OBJECT_QUICK, false);
144 break;
145
Mathieu Chartierffc605c2014-12-10 10:35:44 -0800146 case Instruction::IGET_BOOLEAN:
147 CompileInstanceFieldAccess(inst, dex_pc, Instruction::IGET_BOOLEAN_QUICK, false);
148 break;
149
150 case Instruction::IGET_BYTE:
151 CompileInstanceFieldAccess(inst, dex_pc, Instruction::IGET_BYTE_QUICK, false);
152 break;
153
154 case Instruction::IGET_CHAR:
155 CompileInstanceFieldAccess(inst, dex_pc, Instruction::IGET_CHAR_QUICK, false);
156 break;
157
158 case Instruction::IGET_SHORT:
159 CompileInstanceFieldAccess(inst, dex_pc, Instruction::IGET_SHORT_QUICK, false);
160 break;
161
Brian Carlstrom7940e442013-07-12 13:46:57 -0700162 case Instruction::IPUT:
Brian Carlstrom7940e442013-07-12 13:46:57 -0700163 CompileInstanceFieldAccess(inst, dex_pc, Instruction::IPUT_QUICK, true);
164 break;
165
Fred Shih37f05ef2014-07-16 18:38:08 -0700166 case Instruction::IPUT_BOOLEAN:
167 CompileInstanceFieldAccess(inst, dex_pc, Instruction::IPUT_BOOLEAN_QUICK, true);
168 break;
169
170 case Instruction::IPUT_BYTE:
171 CompileInstanceFieldAccess(inst, dex_pc, Instruction::IPUT_BYTE_QUICK, true);
172 break;
173
174 case Instruction::IPUT_CHAR:
175 CompileInstanceFieldAccess(inst, dex_pc, Instruction::IPUT_CHAR_QUICK, true);
176 break;
177
178 case Instruction::IPUT_SHORT:
179 CompileInstanceFieldAccess(inst, dex_pc, Instruction::IPUT_SHORT_QUICK, true);
180 break;
181
Brian Carlstrom7940e442013-07-12 13:46:57 -0700182 case Instruction::IPUT_WIDE:
183 CompileInstanceFieldAccess(inst, dex_pc, Instruction::IPUT_WIDE_QUICK, true);
184 break;
185
186 case Instruction::IPUT_OBJECT:
187 CompileInstanceFieldAccess(inst, dex_pc, Instruction::IPUT_OBJECT_QUICK, true);
188 break;
189
190 case Instruction::INVOKE_VIRTUAL:
191 CompileInvokeVirtual(inst, dex_pc, Instruction::INVOKE_VIRTUAL_QUICK, false);
192 break;
193
194 case Instruction::INVOKE_VIRTUAL_RANGE:
195 CompileInvokeVirtual(inst, dex_pc, Instruction::INVOKE_VIRTUAL_RANGE_QUICK, true);
196 break;
197
198 default:
199 // Nothing to do.
200 break;
201 }
202 }
203}
204
205void DexCompiler::CompileReturnVoid(Instruction* inst, uint32_t dex_pc) {
Mathieu Chartierd7cbf8a2015-03-19 12:43:20 -0700206 DCHECK_EQ(inst->Opcode(), Instruction::RETURN_VOID);
207 if (unit_.IsConstructor()) {
208 // Are we compiling a non clinit constructor which needs a barrier ?
209 if (!unit_.IsStatic() &&
210 driver_.RequiresConstructorBarrier(Thread::Current(), unit_.GetDexFile(),
211 unit_.GetClassDefIndex())) {
212 return;
213 }
Brian Carlstrom7940e442013-07-12 13:46:57 -0700214 }
Mathieu Chartierd7cbf8a2015-03-19 12:43:20 -0700215 // Replace RETURN_VOID by RETURN_VOID_NO_BARRIER.
Sebastien Hertz543959c2013-07-03 12:00:19 +0200216 VLOG(compiler) << "Replacing " << Instruction::Name(inst->Opcode())
Mathieu Chartierd7cbf8a2015-03-19 12:43:20 -0700217 << " by " << Instruction::Name(Instruction::RETURN_VOID_NO_BARRIER)
Sebastien Hertz543959c2013-07-03 12:00:19 +0200218 << " at dex pc " << StringPrintf("0x%x", dex_pc) << " in method "
David Sehr709b0702016-10-13 09:12:37 -0700219 << GetDexFile().PrettyMethod(unit_.GetDexMethodIndex(), true);
Mathieu Chartierd7cbf8a2015-03-19 12:43:20 -0700220 inst->SetOpcode(Instruction::RETURN_VOID_NO_BARRIER);
Brian Carlstrom7940e442013-07-12 13:46:57 -0700221}
222
Sebastien Hertz543959c2013-07-03 12:00:19 +0200223Instruction* DexCompiler::CompileCheckCast(Instruction* inst, uint32_t dex_pc) {
Sebastien Hertz75021222013-07-16 18:34:50 +0200224 if (!kEnableCheckCastEllision || !PerformOptimizations()) {
Sebastien Hertz543959c2013-07-03 12:00:19 +0200225 return inst;
226 }
Vladimir Marko2730db02014-01-27 11:15:17 +0000227 if (!driver_.IsSafeCast(&unit_, dex_pc)) {
Sebastien Hertz543959c2013-07-03 12:00:19 +0200228 return inst;
229 }
230 // Ok, this is a safe cast. Since the "check-cast" instruction size is 2 code
231 // units and a "nop" instruction size is 1 code unit, we need to replace it by
232 // 2 consecutive NOP instructions.
233 // Because the caller loops over instructions by calling Instruction::Next onto
234 // the current instruction, we need to return the 2nd NOP instruction. Indeed,
235 // its next instruction is the former check-cast's next instruction.
236 VLOG(compiler) << "Removing " << Instruction::Name(inst->Opcode())
237 << " by replacing it with 2 NOPs at dex pc "
238 << StringPrintf("0x%x", dex_pc) << " in method "
David Sehr709b0702016-10-13 09:12:37 -0700239 << GetDexFile().PrettyMethod(unit_.GetDexMethodIndex(), true);
Nicolas Geoffray01b70e82016-11-17 10:58:36 +0000240 quickened_info_.push_back(QuickenedInfo(dex_pc, inst->VRegA_21c()));
241 quickened_info_.push_back(QuickenedInfo(dex_pc, inst->VRegB_21c()));
Sebastien Hertz543959c2013-07-03 12:00:19 +0200242 // We are modifying 4 consecutive bytes.
Sebastien Hertz543959c2013-07-03 12:00:19 +0200243 inst->SetOpcode(Instruction::NOP);
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700244 inst->SetVRegA_10x(0u); // keep compliant with verifier.
Sebastien Hertz543959c2013-07-03 12:00:19 +0200245 // Get to next instruction which is the second half of check-cast and replace
246 // it by a NOP.
247 inst = const_cast<Instruction*>(inst->Next());
248 inst->SetOpcode(Instruction::NOP);
Brian Carlstrom7934ac22013-07-26 10:54:15 -0700249 inst->SetVRegA_10x(0u); // keep compliant with verifier.
Sebastien Hertz543959c2013-07-03 12:00:19 +0200250 return inst;
251}
252
Brian Carlstrom7940e442013-07-12 13:46:57 -0700253void DexCompiler::CompileInstanceFieldAccess(Instruction* inst,
254 uint32_t dex_pc,
255 Instruction::Code new_opcode,
256 bool is_put) {
Sebastien Hertz75021222013-07-16 18:34:50 +0200257 if (!kEnableQuickening || !PerformOptimizations()) {
Brian Carlstrom7940e442013-07-12 13:46:57 -0700258 return;
259 }
260 uint32_t field_idx = inst->VRegC_22c();
Vladimir Markobe0e5462014-02-26 11:24:15 +0000261 MemberOffset field_offset(0u);
Brian Carlstrom7940e442013-07-12 13:46:57 -0700262 bool is_volatile;
Ian Rogers9b297bf2013-09-06 11:11:25 -0700263 bool fast_path = driver_.ComputeInstanceFieldInfo(field_idx, &unit_, is_put,
264 &field_offset, &is_volatile);
Andreas Gampeab1eb0d2015-02-13 19:23:55 -0800265 if (fast_path && !is_volatile && IsUint<16>(field_offset.Int32Value())) {
Sebastien Hertz543959c2013-07-03 12:00:19 +0200266 VLOG(compiler) << "Quickening " << Instruction::Name(inst->Opcode())
267 << " to " << Instruction::Name(new_opcode)
268 << " by replacing field index " << field_idx
Vladimir Markobe0e5462014-02-26 11:24:15 +0000269 << " by field offset " << field_offset.Int32Value()
Sebastien Hertz543959c2013-07-03 12:00:19 +0200270 << " at dex pc " << StringPrintf("0x%x", dex_pc) << " in method "
David Sehr709b0702016-10-13 09:12:37 -0700271 << GetDexFile().PrettyMethod(unit_.GetDexMethodIndex(), true);
Brian Carlstrom7940e442013-07-12 13:46:57 -0700272 // We are modifying 4 consecutive bytes.
Brian Carlstrom7940e442013-07-12 13:46:57 -0700273 inst->SetOpcode(new_opcode);
274 // Replace field index by field offset.
Vladimir Markobe0e5462014-02-26 11:24:15 +0000275 inst->SetVRegC_22c(static_cast<uint16_t>(field_offset.Int32Value()));
Nicolas Geoffrayc04c8002015-07-14 11:37:54 +0100276 quickened_info_.push_back(QuickenedInfo(dex_pc, field_idx));
Brian Carlstrom7940e442013-07-12 13:46:57 -0700277 }
278}
279
Mathieu Chartier091d2382015-03-06 10:59:06 -0800280void DexCompiler::CompileInvokeVirtual(Instruction* inst, uint32_t dex_pc,
281 Instruction::Code new_opcode, bool is_range) {
Sebastien Hertz75021222013-07-16 18:34:50 +0200282 if (!kEnableQuickening || !PerformOptimizations()) {
Brian Carlstrom7940e442013-07-12 13:46:57 -0700283 return;
284 }
285 uint32_t method_idx = is_range ? inst->VRegB_3rc() : inst->VRegB_35c();
Nicolas Geoffray5e4e11e2016-09-22 13:17:41 +0100286 ScopedObjectAccess soa(Thread::Current());
Nicolas Geoffray5e4e11e2016-09-22 13:17:41 +0100287
288 ClassLinker* class_linker = unit_.GetClassLinker();
289 ArtMethod* resolved_method = class_linker->ResolveMethod<ClassLinker::kForceICCECheck>(
290 GetDexFile(),
291 method_idx,
292 unit_.GetDexCache(),
Vladimir Marko8d6768d2017-03-14 10:13:21 +0000293 unit_.GetClassLoader(),
Nicolas Geoffray5e4e11e2016-09-22 13:17:41 +0100294 /* referrer */ nullptr,
295 kVirtual);
296
297 if (UNLIKELY(resolved_method == nullptr)) {
298 // Clean up any exception left by type resolution.
299 soa.Self()->ClearException();
300 return;
Brian Carlstrom7940e442013-07-12 13:46:57 -0700301 }
Nicolas Geoffray5e4e11e2016-09-22 13:17:41 +0100302
303 uint32_t vtable_idx = resolved_method->GetMethodIndex();
304 DCHECK(IsUint<16>(vtable_idx));
305 VLOG(compiler) << "Quickening " << Instruction::Name(inst->Opcode())
David Sehr709b0702016-10-13 09:12:37 -0700306 << "(" << GetDexFile().PrettyMethod(method_idx, true) << ")"
Nicolas Geoffray5e4e11e2016-09-22 13:17:41 +0100307 << " to " << Instruction::Name(new_opcode)
308 << " by replacing method index " << method_idx
309 << " by vtable index " << vtable_idx
310 << " at dex pc " << StringPrintf("0x%x", dex_pc) << " in method "
David Sehr709b0702016-10-13 09:12:37 -0700311 << GetDexFile().PrettyMethod(unit_.GetDexMethodIndex(), true);
Nicolas Geoffray5e4e11e2016-09-22 13:17:41 +0100312 // We are modifying 4 consecutive bytes.
313 inst->SetOpcode(new_opcode);
314 // Replace method index by vtable index.
315 if (is_range) {
316 inst->SetVRegB_3rc(static_cast<uint16_t>(vtable_idx));
317 } else {
318 inst->SetVRegB_35c(static_cast<uint16_t>(vtable_idx));
319 }
320 quickened_info_.push_back(QuickenedInfo(dex_pc, method_idx));
Brian Carlstrom7940e442013-07-12 13:46:57 -0700321}
322
Andreas Gampe5eb0d382015-07-23 01:19:26 -0700323CompiledMethod* ArtCompileDEX(
324 CompilerDriver* driver,
325 const DexFile::CodeItem* code_item,
Nicolas Geoffrayc04c8002015-07-14 11:37:54 +0100326 uint32_t access_flags,
Andreas Gampe5eb0d382015-07-23 01:19:26 -0700327 InvokeType invoke_type ATTRIBUTE_UNUSED,
Nicolas Geoffrayc04c8002015-07-14 11:37:54 +0100328 uint16_t class_def_idx,
329 uint32_t method_idx,
Vladimir Marko8d6768d2017-03-14 10:13:21 +0000330 Handle<mirror::ClassLoader> class_loader,
Andreas Gampe5eb0d382015-07-23 01:19:26 -0700331 const DexFile& dex_file,
332 DexToDexCompilationLevel dex_to_dex_compilation_level) {
333 DCHECK(driver != nullptr);
334 if (dex_to_dex_compilation_level != DexToDexCompilationLevel::kDontDexToDexCompile) {
Mathieu Chartier736b5602015-09-02 14:54:11 -0700335 ScopedObjectAccess soa(Thread::Current());
336 StackHandleScope<1> hs(soa.Self());
337 ClassLinker* const class_linker = Runtime::Current()->GetClassLinker();
Vladimir Markodf739842016-03-23 16:59:07 +0000338 art::DexCompilationUnit unit(
339 class_loader,
340 class_linker,
341 dex_file,
342 code_item,
343 class_def_idx,
344 method_idx,
345 access_flags,
346 driver->GetVerifiedMethod(&dex_file, method_idx),
347 hs.NewHandle(class_linker->FindDexCache(soa.Self(), dex_file)));
Andreas Gampe5eb0d382015-07-23 01:19:26 -0700348 art::optimizer::DexCompiler dex_compiler(*driver, unit, dex_to_dex_compilation_level);
Sebastien Hertz75021222013-07-16 18:34:50 +0200349 dex_compiler.Compile();
Nicolas Geoffrayc04c8002015-07-14 11:37:54 +0100350 if (dex_compiler.GetQuickenedInfo().empty()) {
351 // No need to create a CompiledMethod if there are no quickened opcodes.
352 return nullptr;
353 }
354
355 // Create a `CompiledMethod`, with the quickened information in the vmap table.
Vladimir Markof9f64412015-09-02 14:05:49 +0100356 Leb128EncodingVector<> builder;
Nicolas Geoffrayc04c8002015-07-14 11:37:54 +0100357 for (QuickenedInfo info : dex_compiler.GetQuickenedInfo()) {
358 builder.PushBackUnsigned(info.dex_pc);
359 builder.PushBackUnsigned(info.dex_member_index);
360 }
Andreas Gampe5eb0d382015-07-23 01:19:26 -0700361 InstructionSet instruction_set = driver->GetInstructionSet();
Nicolas Geoffrayc04c8002015-07-14 11:37:54 +0100362 if (instruction_set == kThumb2) {
363 // Don't use the thumb2 instruction set to avoid the one off code delta.
364 instruction_set = kArm;
365 }
366 return CompiledMethod::SwapAllocCompiledMethod(
Andreas Gampe5eb0d382015-07-23 01:19:26 -0700367 driver,
Nicolas Geoffrayc04c8002015-07-14 11:37:54 +0100368 instruction_set,
369 ArrayRef<const uint8_t>(), // no code
370 0,
371 0,
372 0,
Vladimir Marko35831e82015-09-11 11:59:18 +0100373 ArrayRef<const SrcMapElem>(), // src_mapping_table
Nicolas Geoffrayc04c8002015-07-14 11:37:54 +0100374 ArrayRef<const uint8_t>(builder.GetData()), // vmap_table
Nicolas Geoffrayc04c8002015-07-14 11:37:54 +0100375 ArrayRef<const uint8_t>(), // cfi data
376 ArrayRef<const LinkerPatch>());
Sebastien Hertz75021222013-07-16 18:34:50 +0200377 }
Nicolas Geoffrayc04c8002015-07-14 11:37:54 +0100378 return nullptr;
Brian Carlstrom7940e442013-07-12 13:46:57 -0700379}
Nicolas Geoffrayc04c8002015-07-14 11:37:54 +0100380
381} // namespace optimizer
382
383} // namespace art