JVM method dispatch:修订间差异
建立內容為「= Method invocation = == invokestatic == == invokevirtual == == invokespecial == == invokeinterface == == invokedynamic == Category: Bytecode Category: JVM」的新頁面 |
|||
第1行: | 第1行: | ||
= Method invocation = | = Method invocation = | ||
== invokestatic == | == invokestatic == | ||
invoke a static method: | |||
<syntaxhighlight lang="java"> | |||
invokestatic | |||
indexbyte1 | |||
indexbyte2 | |||
</syntaxhighlight> | |||
invoke a static method, the method is from the constant pool by <syntaxhighlight lang="java">index= (indexbyte1 << 8) | indexbyte2</syntaxhighlight> | |||
== invokevirtual == | == invokevirtual == | ||
== invokespecial == | == invokespecial == |
2021年4月7日 (三) 14:01的版本
Method invocation
invokestatic
invoke a static method:
invokestatic
indexbyte1
indexbyte2
invoke a static method, the method is from the constant pool by
index= (indexbyte1 << 8) | indexbyte2