compiler_driver.h revision 33083d626dbf2c8b06badfd73f50e98114483059
1/*
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
17#ifndef ART_COMPILER_DRIVER_COMPILER_DRIVER_H_
18#define ART_COMPILER_DRIVER_COMPILER_DRIVER_H_
19
20#include <set>
21#include <string>
22#include <unordered_set>
23#include <vector>
24
25#include "arch/instruction_set.h"
26#include "base/arena_allocator.h"
27#include "base/array_ref.h"
28#include "base/bit_utils.h"
29#include "base/mutex.h"
30#include "base/timing_logger.h"
31#include "class_reference.h"
32#include "compiler.h"
33#include "dex_file.h"
34#include "dex_file_types.h"
35#include "driver/compiled_method_storage.h"
36#include "jit/profile_compilation_info.h"
37#include "invoke_type.h"
38#include "method_reference.h"
39#include "mirror/class.h"  // For mirror::Class::Status.
40#include "os.h"
41#include "runtime.h"
42#include "safe_map.h"
43#include "thread_pool.h"
44#include "utils/atomic_method_ref_map.h"
45#include "utils/dex_cache_arrays_layout.h"
46
47namespace art {
48
49namespace mirror {
50class DexCache;
51}  // namespace mirror
52
53namespace verifier {
54class MethodVerifier;
55class VerifierDepsTest;
56}  // namespace verifier
57
58class BitVector;
59class CompiledClass;
60class CompiledMethod;
61class CompilerOptions;
62class DexCompilationUnit;
63struct InlineIGetIPutData;
64class InstructionSetFeatures;
65class ParallelCompilationManager;
66class ScopedObjectAccess;
67template <class Allocator> class SrcMap;
68class SrcMapElem;
69using SwapSrcMap = SrcMap<SwapAllocator<SrcMapElem>>;
70template<class T> class Handle;
71class TimingLogger;
72class VdexFile;
73class VerificationResults;
74class VerifiedMethod;
75
76enum EntryPointCallingConvention {
77  // ABI of invocations to a method's interpreter entry point.
78  kInterpreterAbi,
79  // ABI of calls to a method's native code, only used for native methods.
80  kJniAbi,
81  // ABI of calls to a method's quick code entry point.
82  kQuickAbi
83};
84
85class CompilerDriver {
86 public:
87  // Create a compiler targeting the requested "instruction_set".
88  // "image" should be true if image specific optimizations should be
89  // enabled.  "image_classes" lets the compiler know what classes it
90  // can assume will be in the image, with null implying all available
91  // classes.
92  CompilerDriver(const CompilerOptions* compiler_options,
93                 VerificationResults* verification_results,
94                 Compiler::Kind compiler_kind,
95                 InstructionSet instruction_set,
96                 const InstructionSetFeatures* instruction_set_features,
97                 std::unordered_set<std::string>* image_classes,
98                 std::unordered_set<std::string>* compiled_classes,
99                 std::unordered_set<std::string>* compiled_methods,
100                 size_t thread_count,
101                 bool dump_stats,
102                 bool dump_passes,
103                 CumulativeLogger* timer,
104                 int swap_fd,
105                 const ProfileCompilationInfo* profile_compilation_info);
106
107  ~CompilerDriver();
108
109  // Set dex files that will be stored in the oat file after being compiled.
110  void SetDexFilesForOatFile(const std::vector<const DexFile*>& dex_files) {
111    dex_files_for_oat_file_ = &dex_files;
112  }
113
114  // Get dex file that will be stored in the oat file after being compiled.
115  ArrayRef<const DexFile* const> GetDexFilesForOatFile() const {
116    return (dex_files_for_oat_file_ != nullptr)
117        ? ArrayRef<const DexFile* const>(*dex_files_for_oat_file_)
118        : ArrayRef<const DexFile* const>();
119  }
120
121  void CompileAll(jobject class_loader,
122                  const std::vector<const DexFile*>& dex_files,
123                  TimingLogger* timings)
124      REQUIRES(!Locks::mutator_lock_, !compiled_classes_lock_, !dex_to_dex_references_lock_);
125
126  void CompileAll(jobject class_loader,
127                  const std::vector<const DexFile*>& dex_files,
128                  VdexFile* vdex_file,
129                  TimingLogger* timings)
130      REQUIRES(!Locks::mutator_lock_, !compiled_classes_lock_, !dex_to_dex_references_lock_);
131
132  // Compile a single Method.
133  void CompileOne(Thread* self, ArtMethod* method, TimingLogger* timings)
134      REQUIRES_SHARED(Locks::mutator_lock_)
135      REQUIRES(!compiled_classes_lock_, !dex_to_dex_references_lock_);
136
137  VerificationResults* GetVerificationResults() const {
138    DCHECK(Runtime::Current()->IsAotCompiler());
139    return verification_results_;
140  }
141
142  InstructionSet GetInstructionSet() const {
143    return instruction_set_;
144  }
145
146  const InstructionSetFeatures* GetInstructionSetFeatures() const {
147    return instruction_set_features_;
148  }
149
150  const CompilerOptions& GetCompilerOptions() const {
151    return *compiler_options_;
152  }
153
154  Compiler* GetCompiler() const {
155    return compiler_.get();
156  }
157
158  const std::unordered_set<std::string>* GetImageClasses() const {
159    return image_classes_.get();
160  }
161
162  // Generate the trampolines that are invoked by unresolved direct methods.
163  std::unique_ptr<const std::vector<uint8_t>> CreateJniDlsymLookup() const;
164  std::unique_ptr<const std::vector<uint8_t>> CreateQuickGenericJniTrampoline() const;
165  std::unique_ptr<const std::vector<uint8_t>> CreateQuickImtConflictTrampoline() const;
166  std::unique_ptr<const std::vector<uint8_t>> CreateQuickResolutionTrampoline() const;
167  std::unique_ptr<const std::vector<uint8_t>> CreateQuickToInterpreterBridge() const;
168
169  CompiledClass* GetCompiledClass(ClassReference ref) const
170      REQUIRES(!compiled_classes_lock_);
171
172  CompiledMethod* GetCompiledMethod(MethodReference ref) const;
173  size_t GetNonRelativeLinkerPatchCount() const;
174  // Add a compiled method.
175  void AddCompiledMethod(const MethodReference& method_ref,
176                         CompiledMethod* const compiled_method,
177                         size_t non_relative_linker_patch_count);
178
179  void SetRequiresConstructorBarrier(Thread* self,
180                                     const DexFile* dex_file,
181                                     uint16_t class_def_index,
182                                     bool requires)
183      REQUIRES(!requires_constructor_barrier_lock_);
184  bool RequiresConstructorBarrier(Thread* self,
185                                  const DexFile* dex_file,
186                                  uint16_t class_def_index)
187      REQUIRES(!requires_constructor_barrier_lock_);
188
189  // Are runtime access checks necessary in the compiled code?
190  bool CanAccessTypeWithoutChecks(uint32_t referrer_idx,
191                                  Handle<mirror::DexCache> dex_cache,
192                                  dex::TypeIndex type_idx)
193      REQUIRES_SHARED(Locks::mutator_lock_);
194
195  // Are runtime access and instantiable checks necessary in the code?
196  // out_is_finalizable is set to whether the type is finalizable.
197  bool CanAccessInstantiableTypeWithoutChecks(uint32_t referrer_idx,
198                                              Handle<mirror::DexCache> dex_cache,
199                                              dex::TypeIndex type_idx,
200                                              bool* out_is_finalizable)
201      REQUIRES_SHARED(Locks::mutator_lock_);
202
203  // Resolve compiling method's class. Returns null on failure.
204  mirror::Class* ResolveCompilingMethodsClass(
205      const ScopedObjectAccess& soa, Handle<mirror::DexCache> dex_cache,
206      Handle<mirror::ClassLoader> class_loader, const DexCompilationUnit* mUnit)
207      REQUIRES_SHARED(Locks::mutator_lock_);
208
209  mirror::Class* ResolveClass(
210      const ScopedObjectAccess& soa, Handle<mirror::DexCache> dex_cache,
211      Handle<mirror::ClassLoader> class_loader, dex::TypeIndex type_index,
212      const DexCompilationUnit* mUnit)
213      REQUIRES_SHARED(Locks::mutator_lock_);
214
215  // Resolve a field. Returns null on failure, including incompatible class change.
216  // NOTE: Unlike ClassLinker's ResolveField(), this method enforces is_static.
217  ArtField* ResolveField(
218      const ScopedObjectAccess& soa, Handle<mirror::DexCache> dex_cache,
219      Handle<mirror::ClassLoader> class_loader, const DexCompilationUnit* mUnit,
220      uint32_t field_idx, bool is_static)
221      REQUIRES_SHARED(Locks::mutator_lock_);
222
223  // Resolve a field with a given dex file.
224  ArtField* ResolveFieldWithDexFile(
225      const ScopedObjectAccess& soa, Handle<mirror::DexCache> dex_cache,
226      Handle<mirror::ClassLoader> class_loader, const DexFile* dex_file,
227      uint32_t field_idx, bool is_static)
228      REQUIRES_SHARED(Locks::mutator_lock_);
229
230  // Can we fast-path an IGET/IPUT access to an instance field? If yes, compute the field offset.
231  std::pair<bool, bool> IsFastInstanceField(
232      mirror::DexCache* dex_cache, mirror::Class* referrer_class,
233      ArtField* resolved_field, uint16_t field_idx)
234      REQUIRES_SHARED(Locks::mutator_lock_);
235
236  // Can we fast-path an SGET/SPUT access to a static field? If yes, compute the type index
237  // of the declaring class in the referrer's dex file.
238  std::pair<bool, bool> IsFastStaticField(mirror::DexCache* dex_cache,
239                                          mirror::Class* referrer_class,
240                                          ArtField* resolved_field,
241                                          uint16_t field_idx,
242                                          dex::TypeIndex* storage_index)
243      REQUIRES_SHARED(Locks::mutator_lock_);
244
245  // Return whether the declaring class of `resolved_method` is
246  // available to `referrer_class`. If this is true, compute the type
247  // index of the declaring class in the referrer's dex file and
248  // return it through the out argument `storage_index`; otherwise
249  // return DexFile::kDexNoIndex through `storage_index`.
250  bool IsClassOfStaticMethodAvailableToReferrer(mirror::DexCache* dex_cache,
251                                                mirror::Class* referrer_class,
252                                                ArtMethod* resolved_method,
253                                                uint16_t method_idx,
254                                                dex::TypeIndex* storage_index)
255      REQUIRES_SHARED(Locks::mutator_lock_);
256
257  // Resolve a method. Returns null on failure, including incompatible class change.
258  ArtMethod* ResolveMethod(
259      ScopedObjectAccess& soa, Handle<mirror::DexCache> dex_cache,
260      Handle<mirror::ClassLoader> class_loader, const DexCompilationUnit* mUnit,
261      uint32_t method_idx, InvokeType invoke_type, bool check_incompatible_class_change = true)
262      REQUIRES_SHARED(Locks::mutator_lock_);
263
264  void ProcessedInstanceField(bool resolved);
265  void ProcessedStaticField(bool resolved, bool local);
266
267  // Can we fast path instance field access? Computes field's offset and volatility.
268  bool ComputeInstanceFieldInfo(uint32_t field_idx, const DexCompilationUnit* mUnit, bool is_put,
269                                MemberOffset* field_offset, bool* is_volatile)
270      REQUIRES(!Locks::mutator_lock_);
271
272  ArtField* ComputeInstanceFieldInfo(uint32_t field_idx,
273                                             const DexCompilationUnit* mUnit,
274                                             bool is_put,
275                                             const ScopedObjectAccess& soa)
276      REQUIRES_SHARED(Locks::mutator_lock_);
277
278
279  const VerifiedMethod* GetVerifiedMethod(const DexFile* dex_file, uint32_t method_idx) const;
280  bool IsSafeCast(const DexCompilationUnit* mUnit, uint32_t dex_pc);
281
282  bool GetSupportBootImageFixup() const {
283    return support_boot_image_fixup_;
284  }
285
286  void SetSupportBootImageFixup(bool support_boot_image_fixup) {
287    support_boot_image_fixup_ = support_boot_image_fixup;
288  }
289
290  void SetCompilerContext(void* compiler_context) {
291    compiler_context_ = compiler_context;
292  }
293
294  void* GetCompilerContext() const {
295    return compiler_context_;
296  }
297
298  size_t GetThreadCount() const {
299    return parallel_thread_count_;
300  }
301
302  bool GetDumpStats() const {
303    return dump_stats_;
304  }
305
306  bool GetDumpPasses() const {
307    return dump_passes_;
308  }
309
310  CumulativeLogger* GetTimingsLogger() const {
311    return timings_logger_;
312  }
313
314  void SetDedupeEnabled(bool dedupe_enabled) {
315    compiled_method_storage_.SetDedupeEnabled(dedupe_enabled);
316  }
317
318  bool DedupeEnabled() const {
319    return compiled_method_storage_.DedupeEnabled();
320  }
321
322  // Checks if class specified by type_idx is one of the image_classes_
323  bool IsImageClass(const char* descriptor) const;
324
325  // Checks whether the provided class should be compiled, i.e., is in classes_to_compile_.
326  bool IsClassToCompile(const char* descriptor) const;
327
328  // Checks whether the provided method should be compiled, i.e., is in method_to_compile_.
329  bool IsMethodToCompile(const MethodReference& method_ref) const;
330
331  // Checks whether profile guided compilation is enabled and if the method should be compiled
332  // according to the profile file.
333  bool ShouldCompileBasedOnProfile(const MethodReference& method_ref) const;
334
335  // Checks whether profile guided verification is enabled and if the method should be verified
336  // according to the profile file.
337  bool ShouldVerifyClassBasedOnProfile(const DexFile& dex_file, uint16_t class_idx) const;
338
339  void RecordClassStatus(ClassReference ref, mirror::Class::Status status)
340      REQUIRES(!compiled_classes_lock_);
341
342  // Checks if the specified method has been verified without failures. Returns
343  // false if the method is not in the verification results (GetVerificationResults).
344  bool IsMethodVerifiedWithoutFailures(uint32_t method_idx,
345                                       uint16_t class_def_idx,
346                                       const DexFile& dex_file) const;
347
348  // Get memory usage during compilation.
349  std::string GetMemoryUsageString(bool extended) const;
350
351  void SetHadHardVerifierFailure() {
352    had_hard_verifier_failure_ = true;
353  }
354
355  Compiler::Kind GetCompilerKind() {
356    return compiler_kind_;
357  }
358
359  CompiledMethodStorage* GetCompiledMethodStorage() {
360    return &compiled_method_storage_;
361  }
362
363  // Can we assume that the klass is loaded?
364  bool CanAssumeClassIsLoaded(mirror::Class* klass)
365      REQUIRES_SHARED(Locks::mutator_lock_);
366
367  bool MayInline(const DexFile* inlined_from, const DexFile* inlined_into) const {
368    if (!kIsTargetBuild) {
369      return MayInlineInternal(inlined_from, inlined_into);
370    }
371    return true;
372  }
373
374  void MarkForDexToDexCompilation(Thread* self, const MethodReference& method_ref)
375      REQUIRES(!dex_to_dex_references_lock_);
376
377  const BitVector* GetCurrentDexToDexMethods() const {
378    return current_dex_to_dex_methods_;
379  }
380
381 private:
382  // Return whether the declaring class of `resolved_member` is
383  // available to `referrer_class` for read or write access using two
384  // Boolean values returned as a pair. If is true at least for read
385  // access, compute the type index of the declaring class in the
386  // referrer's dex file and return it through the out argument
387  // `storage_index`; otherwise return DexFile::kDexNoIndex through
388  // `storage_index`.
389  template <typename ArtMember>
390  std::pair<bool, bool> IsClassOfStaticMemberAvailableToReferrer(mirror::DexCache* dex_cache,
391                                                                 mirror::Class* referrer_class,
392                                                                 ArtMember* resolved_member,
393                                                                 uint16_t member_idx,
394                                                                 dex::TypeIndex* storage_index)
395      REQUIRES_SHARED(Locks::mutator_lock_);
396
397  // Can `referrer_class` access the resolved `member`?
398  // Dispatch call to mirror::Class::CanAccessResolvedField or
399  // mirror::Class::CanAccessResolvedMember depending on the value of
400  // ArtMember.
401  template <typename ArtMember>
402  static bool CanAccessResolvedMember(mirror::Class* referrer_class,
403                                      mirror::Class* access_to,
404                                      ArtMember* member,
405                                      mirror::DexCache* dex_cache,
406                                      uint32_t field_idx)
407      REQUIRES_SHARED(Locks::mutator_lock_);
408
409  mirror::ClassLoader* GetClassLoader(const ScopedObjectAccess& soa,
410                                      const DexCompilationUnit* mUnit)
411    REQUIRES_SHARED(Locks::mutator_lock_);
412
413 private:
414  void PreCompile(jobject class_loader,
415                  const std::vector<const DexFile*>& dex_files,
416                  TimingLogger* timings)
417      REQUIRES(!Locks::mutator_lock_, !compiled_classes_lock_);
418
419  void LoadImageClasses(TimingLogger* timings) REQUIRES(!Locks::mutator_lock_);
420
421  // Attempt to resolve all type, methods, fields, and strings
422  // referenced from code in the dex file following PathClassLoader
423  // ordering semantics.
424  void Resolve(jobject class_loader,
425               const std::vector<const DexFile*>& dex_files,
426               TimingLogger* timings)
427      REQUIRES(!Locks::mutator_lock_);
428  void ResolveDexFile(jobject class_loader,
429                      const DexFile& dex_file,
430                      const std::vector<const DexFile*>& dex_files,
431                      ThreadPool* thread_pool,
432                      size_t thread_count,
433                      TimingLogger* timings)
434      REQUIRES(!Locks::mutator_lock_);
435
436  // Do fast verification through VerifierDeps if possible. Return whether
437  // verification was successful.
438  // NO_THREAD_SAFETY_ANALYSIS as the method accesses a guarded value in a
439  // single-threaded way.
440  bool FastVerify(jobject class_loader,
441                  const std::vector<const DexFile*>& dex_files,
442                  TimingLogger* timings)
443      NO_THREAD_SAFETY_ANALYSIS;
444
445  void Verify(jobject class_loader,
446              const std::vector<const DexFile*>& dex_files,
447              TimingLogger* timings);
448
449  void VerifyDexFile(jobject class_loader,
450                     const DexFile& dex_file,
451                     const std::vector<const DexFile*>& dex_files,
452                     ThreadPool* thread_pool,
453                     size_t thread_count,
454                     TimingLogger* timings)
455      REQUIRES(!Locks::mutator_lock_);
456
457  void SetVerified(jobject class_loader,
458                   const std::vector<const DexFile*>& dex_files,
459                   TimingLogger* timings);
460  void SetVerifiedDexFile(jobject class_loader,
461                          const DexFile& dex_file,
462                          const std::vector<const DexFile*>& dex_files,
463                          ThreadPool* thread_pool,
464                          size_t thread_count,
465                          TimingLogger* timings)
466      REQUIRES(!Locks::mutator_lock_);
467
468  void InitializeClasses(jobject class_loader,
469                         const std::vector<const DexFile*>& dex_files,
470                         TimingLogger* timings)
471      REQUIRES(!Locks::mutator_lock_, !compiled_classes_lock_);
472  void InitializeClasses(jobject class_loader,
473                         const DexFile& dex_file,
474                         const std::vector<const DexFile*>& dex_files,
475                         TimingLogger* timings)
476      REQUIRES(!Locks::mutator_lock_, !compiled_classes_lock_);
477
478  void UpdateImageClasses(TimingLogger* timings) REQUIRES(!Locks::mutator_lock_);
479
480  void Compile(jobject class_loader,
481               const std::vector<const DexFile*>& dex_files,
482               TimingLogger* timings) REQUIRES(!dex_to_dex_references_lock_);
483  void CompileDexFile(jobject class_loader,
484                      const DexFile& dex_file,
485                      const std::vector<const DexFile*>& dex_files,
486                      ThreadPool* thread_pool,
487                      size_t thread_count,
488                      TimingLogger* timings)
489      REQUIRES(!Locks::mutator_lock_);
490
491  bool MayInlineInternal(const DexFile* inlined_from, const DexFile* inlined_into) const;
492
493  void InitializeThreadPools();
494  void FreeThreadPools();
495  void CheckThreadPools();
496
497  bool RequiresConstructorBarrier(const DexFile& dex_file, uint16_t class_def_idx) const;
498
499  const CompilerOptions* const compiler_options_;
500  VerificationResults* const verification_results_;
501
502  std::unique_ptr<Compiler> compiler_;
503  Compiler::Kind compiler_kind_;
504
505  const InstructionSet instruction_set_;
506  const InstructionSetFeatures* const instruction_set_features_;
507
508  // All class references that require constructor barriers. If the class reference is not in the
509  // set then the result has not yet been computed.
510  mutable ReaderWriterMutex requires_constructor_barrier_lock_ DEFAULT_MUTEX_ACQUIRED_AFTER;
511  std::map<ClassReference, bool> requires_constructor_barrier_
512      GUARDED_BY(requires_constructor_barrier_lock_);
513
514  typedef SafeMap<const ClassReference, CompiledClass*> ClassTable;
515  // All class references that this compiler has compiled.
516  mutable Mutex compiled_classes_lock_ DEFAULT_MUTEX_ACQUIRED_AFTER;
517  ClassTable compiled_classes_ GUARDED_BY(compiled_classes_lock_);
518
519  typedef AtomicMethodRefMap<CompiledMethod*> MethodTable;
520
521 private:
522  // All method references that this compiler has compiled.
523  MethodTable compiled_methods_;
524
525  // Number of non-relative patches in all compiled methods. These patches need space
526  // in the .oat_patches ELF section if requested in the compiler options.
527  Atomic<size_t> non_relative_linker_patch_count_;
528
529  // If image_ is true, specifies the classes that will be included in the image.
530  // Note if image_classes_ is null, all classes are included in the image.
531  std::unique_ptr<std::unordered_set<std::string>> image_classes_;
532
533  // Specifies the classes that will be compiled. Note that if classes_to_compile_ is null,
534  // all classes are eligible for compilation (duplication filters etc. will still apply).
535  // This option may be restricted to the boot image, depending on a flag in the implementation.
536  std::unique_ptr<std::unordered_set<std::string>> classes_to_compile_;
537
538  // Specifies the methods that will be compiled. Note that if methods_to_compile_ is null,
539  // all methods are eligible for compilation (compilation filters etc. will still apply).
540  // This option may be restricted to the boot image, depending on a flag in the implementation.
541  std::unique_ptr<std::unordered_set<std::string>> methods_to_compile_;
542
543  bool had_hard_verifier_failure_;
544
545  // A thread pool that can (potentially) run tasks in parallel.
546  std::unique_ptr<ThreadPool> parallel_thread_pool_;
547  size_t parallel_thread_count_;
548
549  // A thread pool that guarantees running single-threaded on the main thread.
550  std::unique_ptr<ThreadPool> single_thread_pool_;
551
552  class AOTCompilationStats;
553  std::unique_ptr<AOTCompilationStats> stats_;
554
555  bool dump_stats_;
556  const bool dump_passes_;
557
558  CumulativeLogger* const timings_logger_;
559
560  typedef void (*CompilerCallbackFn)(CompilerDriver& driver);
561  typedef MutexLock* (*CompilerMutexLockFn)(CompilerDriver& driver);
562
563  void* compiler_context_;
564
565  bool support_boot_image_fixup_;
566
567  // List of dex files that will be stored in the oat file.
568  const std::vector<const DexFile*>* dex_files_for_oat_file_;
569
570  CompiledMethodStorage compiled_method_storage_;
571
572  // Info for profile guided compilation.
573  const ProfileCompilationInfo* const profile_compilation_info_;
574
575  size_t max_arena_alloc_;
576
577  // Data for delaying dex-to-dex compilation.
578  Mutex dex_to_dex_references_lock_;
579  // In the first phase, dex_to_dex_references_ collects methods for dex-to-dex compilation.
580  class DexFileMethodSet;
581  std::vector<DexFileMethodSet> dex_to_dex_references_ GUARDED_BY(dex_to_dex_references_lock_);
582  // In the second phase, current_dex_to_dex_methods_ points to the BitVector with method
583  // indexes for dex-to-dex compilation in the current dex file.
584  const BitVector* current_dex_to_dex_methods_;
585
586  friend class CompileClassVisitor;
587  friend class DexToDexDecompilerTest;
588  friend class verifier::VerifierDepsTest;
589  DISALLOW_COPY_AND_ASSIGN(CompilerDriver);
590};
591
592}  // namespace art
593
594#endif  // ART_COMPILER_DRIVER_COMPILER_DRIVER_H_
595