Guest User

Untitled

a guest
Jul 18th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. section .text
  2.  
  3.     global A_test1_int__implementation
  4. A_test1_int__implementation:
  5. ; put implementation here
  6. push ebp
  7. mov ebp, esp
  8. push eax
  9. push ebx
  10. push ecx
  11. push edx
  12. push esi
  13. push edi
  14. pop edi
  15. pop esi
  16. pop edx
  17. pop ecx
  18. pop ebx
  19. pop eax
  20. mov esp, ebp
  21. pop ebp
  22. ret
  23.  
  24.     global A_test1_String__implementation
  25. A_test1_String__implementation:
  26. ; put implementation here
  27. push ebp
  28. mov ebp, esp
  29. push eax
  30. push ebx
  31. push ecx
  32. push edx
  33. push esi
  34. push edi
  35. pop edi
  36. pop esi
  37. pop edx
  38. pop ecx
  39. pop ebx
  40. pop eax
  41. mov esp, ebp
  42. pop ebp
  43. ret
  44.  
  45.     global A_test2_int__implementation
  46. A_test2_int__implementation:
  47. ; put implementation here
  48. push ebp
  49. mov ebp, esp
  50. push eax
  51. push ebx
  52. push ecx
  53. push edx
  54. push esi
  55. push edi
  56. pop edi
  57. pop esi
  58. pop edx
  59. pop ecx
  60. pop ebx
  61. pop eax
  62. mov esp, ebp
  63. pop ebp
  64. ret
  65.  
  66.     global A_test3_int__implementation
  67. A_test3_int__implementation:
  68. ; put implementation here
  69. push ebp
  70. mov ebp, esp
  71. push eax
  72. push ebx
  73. push ecx
  74. push edx
  75. push esi
  76. push edi
  77. pop edi
  78. pop esi
  79. pop edx
  80. pop ecx
  81. pop ebx
  82. pop eax
  83. mov esp, ebp
  84. pop ebp
  85. ret
  86.  
  87.     global A_A___implementation
  88. A_A___implementation:
  89. ; put implementation here
  90. push ebp
  91. mov ebp, esp
  92. push eax
  93. push ebx
  94. push ecx
  95. push edx
  96. push esi
  97. push edi
  98. pop edi
  99. pop esi
  100. pop edx
  101. pop ecx
  102. pop ebx
  103. pop eax
  104. mov esp, ebp
  105. pop ebp
  106. ret
  107.  
  108.  
  109. section .data
  110.     global A
  111. A:
  112.  
  113. ; method declarations
  114. java.lang.Object_equals_Object_:     dd java.lang.Object_equals_Object__implementation
  115. java.lang.Object_toString__:     dd java.lang.Object_toString___implementation
  116. java.lang.Object_hashCode__:     dd java.lang.Object_hashCode___implementation
  117. java.lang.Object_clone__:     dd java.lang.Object_clone___implementation
  118. java.lang.Object_getClass__:     dd java.lang.Object_getClass___implementation
  119. java.lang.Object_Object__:     dd java.lang.Object_Object___implementation
  120. A_test2_int_:     dd A_test2_int__implementation
  121. A_test3_int_:     dd A_test3_int__implementation
  122. A_test1_String_:     dd A_test1_String__implementation
  123. A_test1_int_:     dd A_test1_int__implementation
  124. A_A__:     dd A_A___implementation
  125.  
  126. ; static variables
  127. A.n:     dd 0
  128. A.j:     dd 0
  129. A.t:     dd 0
  130.  
  131.  
  132.  
  133.  
  134. ;--------DEBUG INFO---------
  135. ;
  136. ;OBJECT SIZE: 12
  137. ;
  138. ;NONSTATIC Fields offset:
  139. ;  a: 0
  140. ;  b: 4
  141. ;
  142. ;LOCAL VARIABLE Fields offset(test1(int)):
  143. ; a1:0
  144. ; a2:4
  145. ; a3:8
  146. ; a4:12
  147. ; a5:16
  148. ; a6:20
  149. ; a7:24
  150. ; a8:28
  151. ; a9:32
  152. ; a10:36
  153. ; a11:40
  154. ; a12:44
  155. ; SIZE:48
  156. ;
  157. ;LOCAL VARIABLE Fields offset(test1(String)):
  158. ; a2:0
  159. ; a1:4
  160. ; a3:8
  161. ; a4:12
  162. ; a5:16
  163. ; a6:20
  164. ; a7:24
  165. ; a8:28
  166. ; a9:32
  167. ; a10:36
  168. ; a11:40
  169. ; a12:44
  170. ; SIZE:48
  171. ;
  172. ;LOCAL VARIABLE Fields offset(test2(int)):
  173. ; SIZE:0
  174. ;
  175. ;LOCAL VARIABLE Fields offset(test3(int)):
  176. ; SIZE:0
  177. ;
  178. ;LOCAL VARIABLE Fields offset(A()):
  179. ; SIZE:0
  180. ;
  181. ;Method offset:
  182. ; java.lang.Object_equals_Object_: 0
  183. ; java.lang.Object_toString__: 4
  184. ; java.lang.Object_hashCode__: 8
  185. ; java.lang.Object_clone__: 12
  186. ; java.lang.Object_getClass__: 16
  187. ; java.lang.Object_Object__: 20
  188. ; A_test2_int_: 24
  189. ; A_test3_int_: 28
  190. ; A_test1_String_: 32
  191. ; A_test1_int_: 36
  192. ; A_A__: 40
  193. ;
  194.  
  195. ;Static Variable offset:
  196. ; A.n: 44
  197. ; A.j: 48
  198. ; A.t: 52
Add Comment
Please, Sign In to add comment