📄 instructions2.doc171.html
字号:
<html><head><title>VM Spec </title></head><body BGCOLOR=#eeeeff text=#000000 LINK=#0000ff VLINK=#000077 ALINK=#ff0000> <a href="VMSpecTOC.doc.html">Contents</a> | <a href="Instructions2.doc170.html">Prev</a> | <a href="Instructions2.doc172.html">Next</a> | <a href="Mnemonics.doc.html">Index</a><hr><br> <a name="putstatic"></a><h2>putstatic</h2><a name="putstatic.Operation"></a><b>Operation</b><br><a name="69961"></a>Set <code>static</code> field in class<p><Table Border="3"><tr><td><a name="69956"></a> <i>putstatic</i><td><a name="87568"></a> <tr><td><a name="69958"></a> <i>indexbyte1</i><td><a name="87568"></a> <tr><td><a name="69960"></a> <i>indexbyte2</i><td><a name="87568"></a> </Table><Table><tr><td></Table><p><a name="putstatic.Forms"></a><b>Forms</b><br><a name="69962"></a><i>putstatic</i> = 179 (0xb3)<p><a name="putstatic.Stack"></a><b>Stack</b><br><a name="69963"></a>..., <i>value</i> <img src="chars/arrwdbrt.gif"> ...<p><a name="69964"></a>OR<p><a name="putstatic.Stack"></a><b>Stack</b><br><a name="69965"></a>..., <i>value.word1</i>, <i>value.word2</i> <img src="chars/arrwdbrt.gif"> ...<p><a name="putstatic.Description"></a><b>Description</b><br><a name="69966"></a>The unsigned <i>indexbyte1</i> and <i>indexbyte2</i> are used to construct an index into the constant pool of the current class <a href="Overview.doc.html#17257">(§3.6)</a>, where the value of the index is (<i>indexbyte1</i> << 8) | <i>indexbyte2</i>. The constant pool item at the index must be a <code>CONSTANT_Fieldref</code> <a href="ClassFile.doc.html#4723">(§4.4.2)</a>, a reference to a class name and a field name. If the field is <code>protected</code> <a href="ClassFile.doc.html#1513">(§4.6)</a>, then it must be either a member of the current class or a member of a superclass of the current class. <p><hr><!-- This inserts footnotes--><p><a href="VMSpecTOC.doc.html">Contents</a> | <a href="Instructions2.doc170.html">Prev</a> | <a href="Instructions2.doc172.html">Next</a> | <a href="Mnemonics.doc.html">Index</a><p><font size=-1>Java Virtual Machine Specification (HTML generated by dkramer on February 25, 1997)<br><i><a href="Copyright.doc.html">Copyright © 1996 Sun Microsystems, Inc.</a>All rights reserved</i><br>Please send any comments or corrections to <a href="mailto:doug.kramer@sun.com">doug.kramer@sun.com</a></font></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -