OSDN Git Service

Simplify our intrinsic recognizer.
authorNicolas Geoffray <ngeoffray@google.com>
Fri, 15 Jul 2016 14:28:35 +0000 (15:28 +0100)
committerNicolas Geoffray <ngeoffray@google.com>
Fri, 30 Sep 2016 09:44:31 +0000 (10:44 +0100)
commit762869dee6e0eadab5be1c606792d6693bbabf4e
tree8c986c621e8a5f3cf4e4e3b2cc13b400401ad89b
parentb4cf427734c6839b46d0d6037e3189a5e8aa1bdb
Simplify our intrinsic recognizer.

- Use the modifiers for storing the intrinsic kind.
- Delete dex_file_method_inliner and its associated map.

This work was also motivated by the fact that the inline
method analyzer leaks intrinsic tables, and even worse, might re-use
a table from one dex file to another unrelated dex file in the presence
of class unloading and the unlikely event of the dex files getting
the same address.

test: m test-art-host m test-art-target

Change-Id: Ia653d2c72df13889dc85dd8c84997582c034ea4b
35 files changed:
compiler/Android.bp
compiler/common_compiler_test.cc
compiler/common_compiler_test.h
compiler/dex/quick/dex_file_method_inliner.cc [deleted file]
compiler/dex/quick/dex_file_method_inliner.h [deleted file]
compiler/dex/quick/dex_file_to_method_inliner_map.cc [deleted file]
compiler/dex/quick/dex_file_to_method_inliner_map.h [deleted file]
compiler/dex/quick_compiler_callbacks.cc
compiler/dex/quick_compiler_callbacks.h
compiler/driver/compiled_method_storage_test.cc
compiler/driver/compiler_driver.cc
compiler/driver/compiler_driver.h
compiler/intrinsics_enum.h [new file with mode: 0644]
compiler/intrinsics_list.h [new file with mode: 0644]
compiler/jit/jit_compiler.cc
compiler/jit/jit_compiler.h
compiler/linker/relative_patcher_test.h
compiler/oat_test.cc
compiler/optimizing/inliner.cc
compiler/optimizing/intrinsics.cc
compiler/optimizing/intrinsics.h
compiler/optimizing/intrinsics_arm.h
compiler/optimizing/intrinsics_arm64.h
compiler/optimizing/intrinsics_list.h [deleted file]
compiler/optimizing/intrinsics_mips.h
compiler/optimizing/intrinsics_mips64.h
compiler/optimizing/intrinsics_x86.h
compiler/optimizing/intrinsics_x86_64.h
compiler/optimizing/nodes.h
compiler/optimizing/optimizing_compiler.cc
dex2oat/dex2oat.cc
runtime/art_method.h
runtime/base/mutex.h
runtime/image.cc
runtime/modifiers.h