OSDN Git Service

Add intrinsic for Reference.get()
authorFred Shih <ffred@google.com>
Wed, 18 Jun 2014 18:26:11 +0000 (11:26 -0700)
committerFred Shih <ffred@google.com>
Thu, 10 Jul 2014 17:41:34 +0000 (10:41 -0700)
commit460503b13bc894828a2d2d47d09e5534b3e91aa1
tree97c42c08fd04034cf6cecadb39644bf9531be0f1
parentadce33da293b0eeaaf52673338770f22be71ca5d
Add intrinsic for Reference.get()

Added an intrinsic function for Reference.get(). Return immediately
without going through JNI if the slow path is not currently in use.
Otherwise, branch off to the the existing JNI function.

Approximately 47x speedup for cases where slow path is not enabled.

Change-Id: I13ad65a356fe4e104d8d83980694dc2740d7d039
14 files changed:
compiler/dex/quick/dex_file_method_inliner.cc
compiler/dex/quick/dex_file_method_inliner.h
compiler/dex/quick/gen_invoke.cc
compiler/dex/quick/mir_to_lir.h
runtime/Android.mk
runtime/class_linker.cc
runtime/class_linker_test.cc
runtime/gc/reference_processor-inl.h [new file with mode: 0644]
runtime/gc/reference_processor.cc
runtime/gc/reference_processor.h
runtime/mirror/reference.cc [new file with mode: 0644]
runtime/mirror/reference.h
runtime/quick/inline_method_analyser.h
runtime/runtime.cc