OSDN Git Service

Remove mirror:: and ArtMethod deps in utils.{h,cc}
authorDavid Sehr <sehr@google.com>
Thu, 13 Oct 2016 16:12:37 +0000 (09:12 -0700)
committerDavid Sehr <sehr@google.com>
Tue, 18 Oct 2016 21:10:04 +0000 (14:10 -0700)
commit709b070044354d9f47641f273edacaeeb0240ab7
tree3a8ac051d7c35076303984d0d892cdd396b60427
parent1a4de6a2453a3ad0310aca1a44e7e2d3b6f53bc1
Remove mirror:: and ArtMethod deps in utils.{h,cc}

The latest chapter in the ongoing saga of attempting to dump a DEX
file without having to start a whole runtime instance.  This episode
finds us removing references to ArtMethod/ArtField/mirror.

One aspect of this change that I would like to call out specfically
is that the utils versions of the "Pretty*" functions all were written
to accept nullptr as an argument.  I have split these functions up as
follows:
1) an instance method, such as PrettyClass that obviously requires
this != nullptr.
2) a static method, that behaves the same way as the util method, but
calls the instance method if p != nullptr.
This requires using a full class qualifier for the static methods,
which isn't exactly beautiful.  I have tried to remove as many cases
as possible where it was clear p != nullptr.

Bug: 22322814
Test: test-art-host
Change-Id: I21adee3614aa697aa580cd1b86b72d9206e1cb24
118 files changed:
compiler/common_compiler_test.cc
compiler/compiler.cc
compiler/debug/elf_symtab_writer.h
compiler/dex/dex_to_dex_compiler.cc
compiler/dex/verification_results.cc
compiler/driver/compiler_driver.cc
compiler/driver/compiler_driver_test.cc
compiler/driver/compiler_options.h
compiler/driver/dex_compilation_unit.cc
compiler/image_writer.cc
compiler/jit/jit_compiler.cc
compiler/jni/quick/jni_compiler.cc
compiler/oat_test.cc
compiler/oat_writer.cc
compiler/optimizing/builder.cc
compiler/optimizing/graph_visualizer.cc
compiler/optimizing/inliner.cc
compiler/optimizing/instruction_builder.cc
compiler/optimizing/intrinsics.cc
compiler/optimizing/nodes.cc
compiler/optimizing/optimizing_compiler.cc
compiler/optimizing/prepare_for_register_allocation.cc
compiler/optimizing/reference_type_propagation.cc
compiler/utils/test_dex_file_builder_test.cc
imgdiag/imgdiag.cc
oatdump/oatdump.cc
runtime/arch/stub_test.cc
runtime/art_field-inl.h
runtime/art_field.cc
runtime/art_field.h
runtime/art_method-inl.h
runtime/art_method.cc
runtime/art_method.h
runtime/check_jni.cc
runtime/check_reference_map_visitor.h
runtime/class_linker-inl.h
runtime/class_linker.cc
runtime/class_linker_test.cc
runtime/common_throws.cc
runtime/debugger.cc
runtime/dex_file.cc
runtime/dex_file.h
runtime/dex_file_annotations.cc
runtime/dex_instruction.cc
runtime/dex_method_iterator_test.cc
runtime/entrypoints/entrypoint_utils-inl.h
runtime/entrypoints/entrypoint_utils.cc
runtime/entrypoints/quick/quick_instrumentation_entrypoints.cc
runtime/entrypoints/quick/quick_jni_entrypoints.cc
runtime/entrypoints/quick/quick_trampoline_entrypoints.cc
runtime/gc/accounting/mod_union_table.cc
runtime/gc/allocator/rosalloc.cc
runtime/gc/collector/concurrent_copying.cc
runtime/gc/collector/mark_sweep.cc
runtime/gc/heap.cc
runtime/gc/reference_processor.cc
runtime/gc/space/image_space.cc
runtime/hprof/hprof.cc
runtime/instrumentation.cc
runtime/interpreter/interpreter.cc
runtime/interpreter/interpreter_common.cc
runtime/interpreter/interpreter_common.h
runtime/interpreter/interpreter_switch_impl.cc
runtime/interpreter/unstarted_runtime.cc
runtime/java_vm_ext.cc
runtime/jdwp/jdwp_event.cc
runtime/jit/jit.cc
runtime/jit/jit.h
runtime/jit/jit_code_cache.cc
runtime/jit/offline_profiling_info.cc
runtime/jit/profiling_info.cc
runtime/jni_env_ext-inl.h
runtime/jni_env_ext.cc
runtime/jni_internal.cc
runtime/jni_internal_test.cc
runtime/method_reference.h
runtime/mirror/array-inl.h
runtime/mirror/class-inl.h
runtime/mirror/class.cc
runtime/mirror/class.h
runtime/mirror/method.cc
runtime/mirror/object-inl.h
runtime/mirror/object.cc
runtime/mirror/object.h
runtime/mirror/object_array-inl.h
runtime/mirror/object_test.cc
runtime/mirror/string-inl.h
runtime/mirror/string.cc
runtime/mirror/string.h
runtime/mirror/throwable.cc
runtime/monitor.cc
runtime/native/dalvik_system_VMRuntime.cc
runtime/native/java_lang_Class.cc
runtime/native/java_lang_System.cc
runtime/native/java_lang_VMClassLoader.cc
runtime/native/java_lang_reflect_Constructor.cc
runtime/native/java_lang_reflect_Executable.cc
runtime/native/java_lang_reflect_Field.cc
runtime/native/java_lang_reflect_Parameter.cc
runtime/native_bridge_art_interface.cc
runtime/native_stack_dump.cc
runtime/oat_file_manager.cc
runtime/oat_quick_method_header.cc
runtime/quick_exception_handler.cc
runtime/read_barrier-inl.h
runtime/reference_table.cc
runtime/reflection.cc
runtime/stack.cc
runtime/thread.cc
runtime/trace.cc
runtime/utils.cc
runtime/utils.h
runtime/utils_test.cc
runtime/verifier/method_verifier.cc
runtime/verifier/reg_type.cc
runtime/verifier/register_line-inl.h
runtime/verifier/register_line.cc
runtime/verifier/verifier_deps.cc