Local Variables<br />public java.lang.Object execute();<br />  0: aload_0 <br />  1: invokespecial #2;<br />  4: astore_1 ...
Local Variables<br />public java.lang.Object execute();<br />  0: aload_0 <br />  1: invokespecial #2;<br />  4: astore_1 ...
Local Variables<br />public java.lang.Object execute();<br />  0: aload_0 <br />1: invokespecial #2;<br />  4: astore_1 <b...
Local Variables<br />public java.lang.Object execute();<br />  0: aload_0 <br />  1: invokespecial #2;<br />  4: astore_1 ...
Local Variables<br />public java.lang.Object execute();<br />  0: aload_0 <br />  1: invokespecial #2;<br />  4: astore_1 ...
Local Variables<br />public java.lang.Object execute();<br />  0: aload_0 <br />  1: invokespecial #2;<br />  4: astore_1 ...
Local Variables<br />public java.lang.Object execute();<br />  0: aload_0 <br />  1: invokespecial #2;<br />  4: astore_1 ...
Local Variables<br />public java.lang.Object execute();<br />  0: aload_0 <br />  1: invokespecial #2;<br />  4: astore_1 ...
Local Variables<br />public java.lang.Object execute();<br />  0: aload_0 <br />  1: invokespecial #2;<br />  4: astore_1 ...
Local Variables<br />public java.lang.Object execute();<br />  0: aload_0 <br />  1: invokespecial #2;<br />  4: astore_1 ...
Local Variables<br />public java.lang.Object execute();<br />  0: aload_0 <br />  1: invokespecial #2;<br />  4: astore_1 ...
Local Variables<br />public java.lang.Object execute();<br />  0: aload_0 <br />  1: invokespecial #2;<br />  4: astore_1 ...
Local Variables<br />public java.lang.Object execute();<br />  0: aload_0 <br />  1: invokespecial #2;<br />  4: astore_1 ...
Local Variables<br />public java.lang.Object execute();<br />  0: aload_0 <br />  1: invokespecial #2;<br />  4: astore_1 ...
Local Variables<br />public java.lang.Object execute();<br />  0: aload_0 <br />  1: invokespecial #2;<br />  4: astore_1 ...
Upcoming SlideShare
Loading in...5
×

Java Bytecode: Passing Parameters

14,638

Published on

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
14,638
On Slideshare
0
From Embeds
0
Number of Embeds
30
Actions
Shares
0
Downloads
87
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Java Bytecode: Passing Parameters

  1. 1. Local Variables<br />public java.lang.Object execute();<br /> 0: aload_0 <br /> 1: invokespecial #2;<br /> 4: astore_1 <br /> 5: aload_0 <br /> 6: aload_1 <br /> 7: invokespecial #3;<br />10: areturn<br />Stack<br />var<br />value<br />1<br />value<br />depth<br />2<br />1<br />3<br />2<br />3<br />private java.lang.Integer incValue(java.lang.Integer);<br />4<br />var<br />value<br />0: aload_1 <br />1: invokevirtual #8; <br />4: iconst_1 <br />5: iadd <br />6: invokestatic #7; <br />9: areturn<br />5<br />1<br />6<br />2<br />3<br />
  2. 2. Local Variables<br />public java.lang.Object execute();<br /> 0: aload_0 <br /> 1: invokespecial #2;<br /> 4: astore_1 <br /> 5: aload_0 <br /> 6: aload_1 <br /> 7: invokespecial #3; <br />10: areturn<br />Stack<br />var<br />value<br />1<br />value<br />depth<br />2<br />1<br />this<br />3<br />2<br />3<br />private java.lang.Integer incValue(java.lang.Integer);<br />4<br />var<br />value<br />0: aload_1 <br />1: invokevirtual #8; <br />4: iconst_1 <br />5: iadd <br />6: invokestatic #7; <br />9: areturn<br />5<br />1<br />6<br />2<br />3<br />
  3. 3. Local Variables<br />public java.lang.Object execute();<br /> 0: aload_0 <br />1: invokespecial #2;<br /> 4: astore_1 <br /> 5: aload_0 <br /> 6: aload_1 <br /> 7: invokespecial #3; <br />10: areturn<br />Stack<br />var<br />value<br />1<br />value<br />depth<br />2<br />1<br />objectref<br />3<br />2<br />3<br />private java.lang.Integer incValue(java.lang.Integer);<br />4<br />var<br />value<br />0: aload_1 <br />1: invokevirtual #8; <br />4: iconst_1 <br />5: iadd <br />6: invokestatic #7; <br />9: areturn<br />5<br />1<br />6<br />2<br />3<br />
  4. 4. Local Variables<br />public java.lang.Object execute();<br /> 0: aload_0 <br /> 1: invokespecial #2;<br /> 4: astore_1 <br /> 5: aload_0 <br /> 6: aload_1 <br /> 7: invokespecial #3; <br />10: areturn<br />Stack<br />var<br />value<br />objectref<br />1<br />value<br />depth<br />2<br />1<br />3<br />2<br />3<br />private java.lang.Integer incValue(java.lang.Integer);<br />4<br />var<br />value<br />0: aload_1 <br />1: invokevirtual #8; <br />4: iconst_1 <br />5: iadd <br />6: invokestatic #7; <br />9: areturn<br />5<br />1<br />6<br />2<br />3<br />
  5. 5. Local Variables<br />public java.lang.Object execute();<br /> 0: aload_0 <br /> 1: invokespecial #2;<br /> 4: astore_1 <br /> 5: aload_0 <br /> 6: aload_1 <br /> 7: invokespecial #3; <br />10: areturn<br />Stack<br />var<br />value<br />objectref<br />1<br />value<br />depth<br />2<br />1<br />this<br />3<br />2<br />3<br />private java.lang.Integer incValue(java.lang.Integer);<br />4<br />var<br />value<br />0: aload_1 <br />1: invokevirtual #8; <br />4: iconst_1 <br />5: iadd <br />6: invokestatic #7; <br />9: areturn<br />5<br />1<br />6<br />2<br />3<br />
  6. 6. Local Variables<br />public java.lang.Object execute();<br /> 0: aload_0 <br /> 1: invokespecial #2;<br /> 4: astore_1 <br /> 5: aload_0 <br /> 6: aload_1 <br /> 7: invokespecial #3; <br />10: areturn<br />Stack<br />var<br />value<br />objectref<br />1<br />value<br />depth<br />2<br />1<br />objectref<br />3<br />2<br />this<br />3<br />private java.lang.Integer incValue(java.lang.Integer);<br />4<br />var<br />value<br />0: aload_1 <br />1: invokevirtual #8; <br />4: iconst_1 <br />5: iadd <br />6: invokestatic #7; <br />9: areturn<br />5<br />1<br />6<br />2<br />3<br />
  7. 7. Local Variables<br />public java.lang.Object execute();<br /> 0: aload_0 <br /> 1: invokespecial #2;<br /> 4: astore_1 <br /> 5: aload_0 <br /> 6: aload_1 <br />7: invokespecial #3;//incValue<br />10: areturn<br />Stack<br />var<br />value<br />objectref<br />1<br />value<br />depth<br />2<br />1<br />3<br />2<br />3<br />private java.lang.Integer incValue(java.lang.Integer);<br />4<br />var<br />value<br />0: aload_1 <br />1: invokevirtual #8; <br />4: iconst_1 <br />5: iadd <br />6: invokestatic #7; <br />9: areturn<br />5<br />objectref<br />1<br />6<br />2<br />3<br />
  8. 8. Local Variables<br />public java.lang.Object execute();<br /> 0: aload_0 <br /> 1: invokespecial #2;<br /> 4: astore_1 <br /> 5: aload_0 <br /> 6: aload_1 <br />7: invokespecial #3; //incValue<br />10: areturn<br />Stack<br />var<br />value<br />objectref<br />1<br />value<br />depth<br />2<br />1<br />objectref<br />3<br />2<br />3<br />private java.lang.Integer incValue(java.lang.Integer);<br />4<br />var<br />value<br />0: aload_1 <br />1: invokevirtual #8;<br />4: iconst_1 <br />5: iadd <br />6: invokestatic #7; <br />9: areturn<br />5<br />objectref<br />1<br />6<br />2<br />3<br />
  9. 9. Local Variables<br />public java.lang.Object execute();<br /> 0: aload_0 <br /> 1: invokespecial #2;<br /> 4: astore_1 <br /> 5: aload_0 <br /> 6: aload_1 <br />7: invokespecial #3; //incValue<br />10: areturn<br />Stack<br />var<br />value<br />objectref<br />1<br />value<br />depth<br />2<br />1<br />X<br />3<br />2<br />3<br />private java.lang.Integer incValue(java.lang.Integer);<br />4<br />var<br />value<br />0: aload_1 <br />1: invokevirtual #8;// Integer.intValue:()<br />4: iconst_1 <br />5: iadd <br />6: invokestatic #7; <br />9: areturn<br />5<br />objectref<br />1<br />6<br />2<br />3<br />
  10. 10. Local Variables<br />public java.lang.Object execute();<br /> 0: aload_0 <br /> 1: invokespecial #2;<br /> 4: astore_1 <br /> 5: aload_0 <br /> 6: aload_1 <br />7: invokespecial #3; //incValue<br />10: areturn<br />Stack<br />var<br />value<br />objectref<br />1<br />value<br />depth<br />2<br />1<br />1<br />3<br />2<br />X<br />3<br />private java.lang.Integer incValue(java.lang.Integer);<br />4<br />var<br />value<br />0: aload_1 <br />1: invokevirtual #8; <br />4: iconst_1 <br />5: iadd <br />6: invokestatic #7; <br />9: areturn<br />5<br />objectref<br />1<br />6<br />2<br />3<br />
  11. 11. Local Variables<br />public java.lang.Object execute();<br /> 0: aload_0 <br /> 1: invokespecial #2;<br /> 4: astore_1 <br /> 5: aload_0 <br /> 6: aload_1 <br />7: invokespecial #3; //incValue<br />10: areturn<br />Stack<br />var<br />value<br />objectref<br />1<br />value<br />depth<br />2<br />1<br />X + 1<br />3<br />2<br />3<br />private java.lang.Integer incValue(java.lang.Integer);<br />4<br />var<br />value<br />0: aload_1 <br />1: invokevirtual #8; <br />4: iconst_1 <br />5: iadd<br />6: invokestatic #7; <br />9: areturn<br />5<br />objectref<br />1<br />6<br />2<br />3<br />
  12. 12. Local Variables<br />public java.lang.Object execute();<br /> 0: aload_0 <br /> 1: invokespecial #2;<br /> 4: astore_1 <br /> 5: aload_0 <br /> 6: aload_1 <br />7: invokespecial #3; //incValue<br />10: areturn<br />Stack<br />var<br />value<br />objectref<br />1<br />value<br />depth<br />2<br />1<br />objectref<br />3<br />2<br />3<br />private java.lang.Integer incValue(java.lang.Integer);<br />4<br />var<br />value<br />0: aload_1 <br />1: invokevirtual #8; <br />4: iconst_1 <br />5: iadd <br />6: invokestatic #7;//Integer.valueOf<br />9: areturn<br />5<br />objectref<br />1<br />6<br />2<br />3<br />
  13. 13. Local Variables<br />public java.lang.Object execute();<br /> 0: aload_0 <br /> 1: invokespecial #2;<br /> 4: astore_1 <br /> 5: aload_0 <br /> 6: aload_1 <br />7: invokespecial #3; //incValue<br />10: areturn<br />Stack<br />var<br />value<br />objectref<br />1<br />value<br />depth<br />2<br />1<br />objectref<br />3<br />2<br />3<br />private java.lang.Integer incValue(java.lang.Integer);<br />4<br />var<br />value<br />0: aload_1 <br />1: invokevirtual #8; <br />4: iconst_1 <br />5: iadd <br />6: invokestatic #7;<br />9: areturn<br />5<br />objectref<br />1<br />6<br />2<br />3<br />
  14. 14. Local Variables<br />public java.lang.Object execute();<br /> 0: aload_0 <br /> 1: invokespecial #2;<br /> 4: astore_1 <br /> 5: aload_0 <br /> 6: aload_1 <br /> 7: invokespecial #3; <br />10: areturn<br />Stack<br />var<br />value<br />objectref<br />1<br />value<br />depth<br />2<br />1<br />objectref<br />3<br />2<br />3<br />private java.lang.Integer incValue(java.lang.Integer);<br />4<br />var<br />value<br />0: aload_1 <br />1: invokevirtual #8; <br />4: iconst_1 <br />5: iadd <br />6: invokestatic #7;<br />9: areturn<br />5<br />1<br />6<br />2<br />3<br />
  15. 15. Local Variables<br />public java.lang.Object execute();<br /> 0: aload_0 <br /> 1: invokespecial #2;<br /> 4: astore_1 <br /> 5: aload_0 <br /> 6: aload_1 <br /> 7: invokespecial #3; <br />10: areturn<br />Stack<br />var<br />value<br />1<br />value<br />depth<br />2<br />1<br />objectref<br />3<br />2<br />3<br />private java.lang.Integer incValue(java.lang.Integer);<br />4<br />var<br />value<br />0: aload_1 <br />1: invokevirtual #8; <br />4: iconst_1 <br />5: iadd <br />6: invokestatic #7;<br />9: areturn<br />5<br />1<br />6<br />2<br />3<br />
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×