OSDN Git Service

Move mirror::ArtMethod to native
authorMathieu Chartier <mathieuc@google.com>
Wed, 22 Apr 2015 20:56:20 +0000 (13:56 -0700)
committerMathieu Chartier <mathieuc@google.com>
Sat, 30 May 2015 01:45:49 +0000 (18:45 -0700)
commite401d146407d61eeb99f8d6176b2ac13c4df1e33
tree17927f9bfe7d2041b5942c89832d55f9dedb24c5
parent2006b7b9b8e32722bd0d640c62549d8a0ac624b6
Move mirror::ArtMethod to native

Optimizing + quick tests are passing, devices boot.

TODO: Test and fix bugs in mips64.

Saves 16 bytes per most ArtMethod, 7.5MB reduction in system PSS.
Some of the savings are from removal of virtual methods and direct
methods object arrays.

Bug: 19264997
Change-Id: I622469a0cfa0e7082a2119f3d6a9491eb61e3f3d
298 files changed:
compiler/common_compiler_test.cc
compiler/common_compiler_test.h
compiler/compiler.h
compiler/dex/dex_to_dex_compiler.cc
compiler/dex/mir_method_info.cc
compiler/dex/mir_optimization.cc
compiler/dex/quick/arm/call_arm.cc
compiler/dex/quick/arm/codegen_arm.h
compiler/dex/quick/arm/int_arm.cc
compiler/dex/quick/arm64/arm64_lir.h
compiler/dex/quick/arm64/call_arm64.cc
compiler/dex/quick/arm64/codegen_arm64.h
compiler/dex/quick/arm64/int_arm64.cc
compiler/dex/quick/arm64/target_arm64.cc
compiler/dex/quick/codegen_util.cc
compiler/dex/quick/gen_common.cc
compiler/dex/quick/gen_invoke.cc
compiler/dex/quick/gen_loadstore.cc
compiler/dex/quick/mips/call_mips.cc
compiler/dex/quick/mir_to_lir.cc
compiler/dex/quick/mir_to_lir.h
compiler/dex/quick/quick_cfi_test.cc
compiler/dex/quick/quick_cfi_test_expected.inc
compiler/dex/quick/quick_compiler.cc
compiler/dex/quick/quick_compiler.h
compiler/dex/quick/x86/call_x86.cc
compiler/dex/quick/x86/codegen_x86.h
compiler/dex/quick/x86/int_x86.cc
compiler/dex/quick/x86/target_x86.cc
compiler/dex/quick/x86/x86_lir.h
compiler/dex/type_inference.cc
compiler/dex/type_inference.h
compiler/dex/verified_method.cc
compiler/driver/compiler_driver-inl.h
compiler/driver/compiler_driver.cc
compiler/driver/compiler_driver.h
compiler/driver/compiler_driver_test.cc
compiler/elf_writer.cc
compiler/image_test.cc
compiler/image_writer.cc
compiler/image_writer.h
compiler/jit/jit_compiler.cc
compiler/jit/jit_compiler.h
compiler/jni/jni_cfi_test_expected.inc
compiler/jni/jni_compiler_test.cc
compiler/jni/quick/arm/calling_convention_arm.cc
compiler/jni/quick/arm64/calling_convention_arm64.cc
compiler/jni/quick/calling_convention.cc
compiler/jni/quick/calling_convention.h
compiler/jni/quick/jni_compiler.cc
compiler/jni/quick/mips/calling_convention_mips.cc
compiler/jni/quick/mips64/calling_convention_mips64.cc
compiler/jni/quick/x86/calling_convention_x86.cc
compiler/jni/quick/x86_64/calling_convention_x86_64.cc
compiler/linker/arm/relative_patcher_thumb2.cc
compiler/linker/arm64/relative_patcher_arm64.cc
compiler/oat_test.cc
compiler/oat_writer.cc
compiler/optimizing/builder.cc
compiler/optimizing/code_generator.cc
compiler/optimizing/code_generator.h
compiler/optimizing/code_generator_arm.cc
compiler/optimizing/code_generator_arm.h
compiler/optimizing/code_generator_arm64.cc
compiler/optimizing/code_generator_arm64.h
compiler/optimizing/code_generator_x86.cc
compiler/optimizing/code_generator_x86.h
compiler/optimizing/code_generator_x86_64.cc
compiler/optimizing/code_generator_x86_64.h
compiler/optimizing/inliner.cc
compiler/optimizing/inliner.h
compiler/optimizing/intrinsics_arm.cc
compiler/optimizing/intrinsics_arm64.cc
compiler/optimizing/intrinsics_x86.cc
compiler/optimizing/intrinsics_x86_64.cc
compiler/optimizing/nodes.cc
compiler/optimizing/nodes.h
compiler/optimizing/optimizing_cfi_test.cc
compiler/optimizing/optimizing_cfi_test_expected.inc
compiler/optimizing/optimizing_compiler.cc
compiler/optimizing/optimizing_unit_test.h
compiler/optimizing/reference_type_propagation.cc
compiler/optimizing/register_allocator.cc
compiler/utils/arm/assembler_arm.cc
compiler/utils/arm/assembler_arm.h
compiler/utils/arm64/assembler_arm64.cc
compiler/utils/arm64/assembler_arm64.h
compiler/utils/assembler.h
compiler/utils/dex_cache_arrays_layout-inl.h
compiler/utils/mips/assembler_mips.cc
compiler/utils/mips/assembler_mips.h
compiler/utils/mips64/assembler_mips64.cc
compiler/utils/mips64/assembler_mips64.h
compiler/utils/x86/assembler_x86.cc
compiler/utils/x86/assembler_x86.h
compiler/utils/x86_64/assembler_x86_64.cc
compiler/utils/x86_64/assembler_x86_64.h
compiler/utils/x86_64/assembler_x86_64_test.cc
dex2oat/dex2oat.cc
imgdiag/imgdiag.cc
oatdump/oatdump.cc
patchoat/patchoat.cc
patchoat/patchoat.h
runtime/Android.mk
runtime/arch/arch_test.cc
runtime/arch/arm/context_arm.cc
runtime/arch/arm/fault_handler_arm.cc
runtime/arch/arm/quick_entrypoints_arm.S
runtime/arch/arm/quick_entrypoints_cc_arm.cc
runtime/arch/arm64/context_arm64.cc
runtime/arch/arm64/fault_handler_arm64.cc
runtime/arch/arm64/quick_entrypoints_arm64.S
runtime/arch/mips/context_mips.cc
runtime/arch/mips/fault_handler_mips.cc
runtime/arch/mips/quick_entrypoints_mips.S
runtime/arch/mips64/context_mips64.cc
runtime/arch/mips64/fault_handler_mips64.cc
runtime/arch/mips64/quick_entrypoints_mips64.S
runtime/arch/stub_test.cc
runtime/arch/x86/context_x86.cc
runtime/arch/x86/fault_handler_x86.cc
runtime/arch/x86/quick_entrypoints_x86.S
runtime/arch/x86_64/context_x86_64.cc
runtime/arch/x86_64/quick_entrypoints_x86_64.S
runtime/art_field-inl.h
runtime/art_field.cc
runtime/art_field.h
runtime/art_method-inl.h [moved from runtime/mirror/art_method-inl.h with 64% similarity]
runtime/art_method.cc [moved from runtime/mirror/art_method.cc with 88% similarity]
runtime/art_method.h [moved from runtime/mirror/art_method.h with 75% similarity]
runtime/asm_support.h
runtime/base/arena_allocator.cc
runtime/base/arena_allocator.h
runtime/base/iteration_range.h
runtime/base/macros.h
runtime/base/scoped_arena_containers.h
runtime/check_jni.cc
runtime/check_reference_map_visitor.h
runtime/class_linker-inl.h
runtime/class_linker.cc
runtime/class_linker.h
runtime/class_linker_test.cc
runtime/common_runtime_test.cc
runtime/common_throws.cc
runtime/common_throws.h
runtime/debugger.cc
runtime/debugger.h
runtime/dex_file.cc
runtime/dex_file.h
runtime/entrypoints/entrypoint_utils-inl.h
runtime/entrypoints/entrypoint_utils.cc
runtime/entrypoints/entrypoint_utils.h
runtime/entrypoints/interpreter/interpreter_entrypoints.cc
runtime/entrypoints/jni/jni_entrypoints.cc
runtime/entrypoints/quick/callee_save_frame.h
runtime/entrypoints/quick/quick_alloc_entrypoints.cc
runtime/entrypoints/quick/quick_default_externs.h
runtime/entrypoints/quick/quick_deoptimization_entrypoints.cc
runtime/entrypoints/quick/quick_dexcache_entrypoints.cc
runtime/entrypoints/quick/quick_entrypoints.h
runtime/entrypoints/quick/quick_entrypoints_list.h
runtime/entrypoints/quick/quick_field_entrypoints.cc
runtime/entrypoints/quick/quick_fillarray_entrypoints.cc
runtime/entrypoints/quick/quick_instrumentation_entrypoints.cc
runtime/entrypoints/quick/quick_jni_entrypoints.cc
runtime/entrypoints/quick/quick_trampoline_entrypoints.cc
runtime/entrypoints/quick/quick_trampoline_entrypoints_test.cc
runtime/entrypoints/runtime_asm_entrypoints.h
runtime/exception_test.cc
runtime/fault_handler.cc
runtime/fault_handler.h
runtime/gc/accounting/mod_union_table_test.cc
runtime/gc/accounting/space_bitmap.cc
runtime/gc/collector/concurrent_copying.cc
runtime/gc/collector/mark_sweep.cc
runtime/gc/heap-inl.h
runtime/gc/reference_processor.cc
runtime/gc/space/image_space.cc
runtime/gc/space/space_test.h
runtime/globals.h
runtime/handle_scope.h
runtime/image.cc
runtime/image.h
runtime/indirect_reference_table-inl.h
runtime/instrumentation.cc
runtime/instrumentation.h
runtime/instrumentation_test.cc
runtime/intern_table.cc
runtime/interpreter/interpreter.h
runtime/interpreter/interpreter_common.cc
runtime/interpreter/interpreter_common.h
runtime/interpreter/interpreter_goto_table_impl.cc
runtime/interpreter/interpreter_switch_impl.cc
runtime/interpreter/unstarted_runtime.cc
runtime/interpreter/unstarted_runtime.h
runtime/interpreter/unstarted_runtime_list.h
runtime/interpreter/unstarted_runtime_test.cc
runtime/java_vm_ext.cc
runtime/java_vm_ext.h
runtime/jdwp/jdwp.h
runtime/jdwp/jdwp_event.cc
runtime/jit/jit.cc
runtime/jit/jit.h
runtime/jit/jit_code_cache.cc
runtime/jit/jit_code_cache.h
runtime/jit/jit_code_cache_test.cc
runtime/jit/jit_instrumentation.cc
runtime/jit/jit_instrumentation.h
runtime/jni_internal.cc
runtime/jni_internal_test.cc
runtime/linear_alloc.cc
runtime/linear_alloc.h
runtime/mirror/abstract_method.cc
runtime/mirror/abstract_method.h
runtime/mirror/array-inl.h
runtime/mirror/array.cc
runtime/mirror/array.h
runtime/mirror/class-inl.h
runtime/mirror/class.cc
runtime/mirror/class.h
runtime/mirror/dex_cache-inl.h
runtime/mirror/dex_cache.cc
runtime/mirror/dex_cache.h
runtime/mirror/field-inl.h
runtime/mirror/field.cc
runtime/mirror/iftable.h
runtime/mirror/method.cc
runtime/mirror/method.h
runtime/mirror/object-inl.h
runtime/mirror/object.cc
runtime/mirror/object.h
runtime/mirror/object_array.h
runtime/mirror/object_test.cc
runtime/mirror/reference-inl.h
runtime/mirror/reference.cc
runtime/mirror/reference.h
runtime/mirror/string-inl.h
runtime/mirror/string.h
runtime/mirror/throwable.cc
runtime/monitor.cc
runtime/monitor.h
runtime/monitor_android.cc
runtime/native/dalvik_system_VMRuntime.cc
runtime/native/dalvik_system_VMStack.cc
runtime/native/java_lang_Class.cc
runtime/native/java_lang_DexCache.cc
runtime/native/java_lang_reflect_Constructor.cc
runtime/native/java_lang_reflect_Field.cc
runtime/native/java_lang_reflect_Method.cc
runtime/native/scoped_fast_native_object_access.h
runtime/native/sun_misc_Unsafe.cc
runtime/native_bridge_art_interface.cc
runtime/nth_caller_visitor.h
runtime/oat_file-inl.h
runtime/oat_file.cc
runtime/oat_file.h
runtime/object_lock.cc
runtime/primitive.h
runtime/profiler.cc
runtime/profiler.h
runtime/proxy_test.cc
runtime/quick/inline_method_analyser.cc
runtime/quick_exception_handler.cc
runtime/quick_exception_handler.h
runtime/read_barrier.h
runtime/reference_table_test.cc
runtime/reflection.cc
runtime/reflection.h
runtime/reflection_test.cc
runtime/runtime-inl.h
runtime/runtime.cc
runtime/runtime.h
runtime/scoped_thread_state_change.h
runtime/stack.cc
runtime/stack.h
runtime/stride_iterator.h [new file with mode: 0644]
runtime/thread.cc
runtime/thread.h
runtime/trace.cc
runtime/trace.h
runtime/transaction.cc
runtime/transaction_test.cc
runtime/utils.cc
runtime/utils.h
runtime/utils_test.cc
runtime/verifier/method_verifier.cc
runtime/verifier/method_verifier.h
runtime/verify_object-inl.h
runtime/well_known_classes.cc
runtime/well_known_classes.h
test/004-ReferenceMap/stack_walk_refmap_jni.cc
test/004-StackWalk/stack_walk_jni.cc
test/004-UnsafeTest/unsafe_test.cc
test/454-get-vreg/get_vreg_jni.cc
test/455-set-vreg/set_vreg_jni.cc
test/457-regs/regs_jni.cc
test/461-get-reference-vreg/get_reference_vreg_jni.cc
test/466-get-live-vreg/get_live_vreg_jni.cc