useobject.bc

来自「PracticalJAVACode 的源码」· BC 代码 · 共 17 行

BC
17
字号
Method int useObject(java.lang.Integer)
   0 iconst_5      //Push 5 on the stack.
   1 istore_2      //Pop 5 and store it at index 2 of the local
                   //variable table(i).
   2 iload_2       //Push the value from index 2 of the local
                   //variable table(i).
   3 aload_1       //Push the object reference from index 1 of the
                   //local variable table(increment).
   4 invokevirtual #16 <Method int intValue()>
                   //Pop the object reference and invoke its
                   //intValue method. Push the result.
   7 iadd          //Pop the two top values, push their sum.
   8 istore_2      //Pop the sum and store it at index 2 of the
                   //local variable table(i).
   9 iload_2       //Push the value from index 2(i).
  10 ireturn       //Pop the top value and push it on the operand
                   //stack of the invoking method.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?