2012-09-01 21 views
7

當Just in Time編譯器在版本2.2中添加到Android時,它也會發布很多關於它如何工作的詳細信息。 official description of Android 3.0也提到「對JIT基礎架構的各種改進」,但是我一直無法找到關於這些改進的任何信息,也沒有找到關於Android 4.0中JIT的任何細節。 JIT在最新版本中保持相對不變,還是有任何關於這些改進的信息?JIT編譯器Android 3.0和4.0中的改進

編輯:正如我在下面的回答中所描述的,我找到了一些描述改進的更新日誌條目。任何其他信息仍然將不勝感激。

回答

7

its public GIT repository檢查出的Dalvik虛擬機源代碼和搜索更新日誌中描述here後,我看到的是,除了bug修正,唯一近期,各大JIT相關的變化似乎是:

Date: Tue Jul 3 13:13:07 2012 -0700 
[X86] X86 trace JIT compiler support 

This patch provides a fully functional x86 trace JIT compiler for Dalvik 
VM. It is built on top of the existing x86 fast interpreter 
with bug fixes and needed extension to support trace JIT interface. The 
x86 trace JIT code generator was developed independent of the existing 
template-based code generator and thus does not share exactly the same 
infrastructure. Included in this patch are: 

* Deprecated and removed the x86-atom fast interpreter that is no 
    longer functional since ICS. 
* Augmented x86 fast interpreter to provide interfaces for x86 trace JIT 
    compiler. 
* Added x86 trace JIT code generator with full JDWP debugging support. 
* Method JIT and self-verification mode are not supported. 

The x86 code generator uses the x86 instruction encoder/decoder library 
from the Apache Harmony project. Additional wrapper extension and bug 
fixes were added to support the x86 trace JIT code generator. The x86 
instruction encoder/decoder is embedded inside the x86 code generator 
under the libenc subdirectory. 

Date: Wed May 2 14:27:16 2012 -0700 
[MIPS] Dalvik fast interpreter support and JIT implementation