Jellybean 上缺少扩展宽度的 dalvik 字节码

2024-02-14

当 ICS 出现时,引入了几种新的扩展宽度字节码。其中大部分是支持巨型 ID 的说明。以下是一些新指令,取自我的 ics/dalvik/opcode-gen/bytecode.txt:

#
# Extended-width opcodes
#

op 00ff const-class/jumbo           41c  y type-ref      continue|throw
op 01ff check-cast/jumbo            41c  n type-ref      continue|throw
op 02ff instance-of/jumbo           52c  y type-ref      continue|throw
op 03ff new-instance/jumbo          41c  y type-ref      continue|throw
op 04ff new-array/jumbo             52c  y type-ref      continue|throw
op 05ff filled-new-array/jumbo      5rc  n type-ref      continue|throw
op 06ff iget/jumbo                  52c  y field-ref     continue|throw
...

然而,在JB代码上,我找不到任何对这些新字节码的引用。在我的 jellybean 版本的 bytecodes.txt 中,最后一个操作码以 0xfe 结尾:

op   fc +iput-object-volatile       22c  n field-ref     optimized|continue|throw
op   fd +sget-object-volatile       21c  y field-ref     optimized|continue|throw
op   fe +sput-object-volatile       21c  n field-ref     optimized|continue|throw

# unused: op ff

JellyBean 不支持这些新指令吗?

另外,我什至似乎无法在 jellybean 中找到原始的 dalvik 字节码文档。这是我的 dalvik/docs 文件夹的目录列表:

$ ls -a dalvik/docs | cat
.
..
dalvik-constraints.css
dalvik-constraints.html
debugger.html
debugmon.html
dexopt.html
embedded-vm-control.html
heap-profiling.html
hello-world.html
java-bytecode.css
java-bytecode.html
java-constraints.css
java-constraints.html
porting-guide.html
porting-proto.c.txt
prettify.css
prettify.js
verifier.html

或者,也许我只是从错误的分支下载?我正在使用 jb-4.1.1_r4 分支。


我实施了dx在离开谷歌之前,我们已经完成了这些新指令的部分工作,但它们的运行时部分尚未完成。我猜没有人完成了这项工作,却留下了规范文档。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Jellybean 上缺少扩展宽度的 dalvik 字节码 的相关文章

随机推荐