Advertisement
Guest User

Untitled

a guest
Sep 24th, 2013
639
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- Raw source ---
  2. () {
  3.  
  4.     return [1,2,3];
  5.  
  6. }
  7.  
  8.  
  9. --- Optimized code ---
  10. kind = OPTIMIZED_FUNCTION
  11. name = arr
  12. stack_slots = 2
  13. Instructions (size = 196)
  14. 36032F00     0  55             push ebp
  15. 36032F01     1  89e5           mov ebp,esp
  16. 36032F03     3  56             push esi
  17. 36032F04     4  57             push edi
  18. 36032F05     5  83ec08         sub esp,0x8
  19.                   ;;; Store dynamic frame alignment tag for spilled doubles
  20. 36032F08     8  c745f400000000 mov [ebp-12],0x0
  21.                   ;;; <@0,#0> -------------------- B0 --------------------
  22.                   ;;; <@2,#1> context
  23. 36032F0F    15  8b45fc         mov eax,[ebp-4]
  24.                   ;;; <@3,#1> gap
  25. 36032F12    18  8945f0         mov [ebp-16],eax
  26.                   ;;; <@8,#7> -------------------- B1 --------------------
  27.                   ;;; <@9,#7> gap
  28. 36032F15    21  89c6           mov esi,eax
  29.                   ;;; <@10,#9> stack-check
  30. 36032F17    23  3b2518494500   cmp esp,[0x00454918]
  31. 36032F1D    29  7305           jnc 36  (36032F24)
  32. 36032F1F    31  e85c8afeff     call StackCheck  (3601B980)    ;; code: BUILTIN
  33.                   ;;; <@12,#11> allocate
  34. 36032F24    36  8b0d78354500   mov ecx,[0x00453578]
  35. 36032F2A    42  89c8           mov eax,ecx
  36. 36032F2C    44  83c018         add eax,0x18
  37. 36032F2F    47  0f824a000000   jc 127  (36032F7F)
  38. 36032F35    53  3b057c354500   cmp eax,[0x0045357c]
  39. 36032F3B    59  0f873e000000   ja 127  (36032F7F)
  40. 36032F41    65  890578354500   mov [0x00453578],eax
  41. 36032F47    71  41             inc ecx
  42.                   ;;; <@14,#13> store-named-field
  43. 36032F48    72  c741ff49b8e00f mov [ecx-1],0xfe0b849         ;; object: <Map(elements=FAST_SMI_ELEMENTS, constructor=Array@1780DE35, properties=[length])>
  44.                   ;;; <@16,#15> store-named-field
  45. 36032F4F    79  c74103a1802026 mov [ecx+3],0x262080a1        ;; object: 262080A1 <FixedArray[0]>
  46.                   ;;; <@18,#17> store-named-field
  47. 36032F56    86  c7410b06000000 mov [ecx+11],0x6
  48.                   ;;; <@20,#19> sub-allocated-object
  49. 36032F5D    93  8d4110         lea eax,[ecx+16]
  50.                   ;;; <@22,#21> store-named-field
  51. 36032F60    96  c740ff098ae00f mov [eax-1],0xfe08a09         ;; object: <Map(elements=FAST_HOLEY_ELEMENTS, constructor=(unknown)@34008081, properties=[])>
  52.                   ;;; <@24,#22> store-named-field
  53. 36032F67   103  c74003cd7e8117 mov [eax+3],0x17817ecd        ;; object: 17817ECD <AllocationSite>
  54.                   ;;; <@26,#23> constant-t
  55. 36032F6E   110  8b050c86901d   mov eax,[0x1d90860c]          ;; property cell
  56.                   ;;; <@28,#24> store-named-field
  57. 36032F74   116  894107         mov [ecx+7],eax
  58.                   ;;; <@29,#24> gap
  59. 36032F77   119  89c8           mov eax,ecx
  60.                   ;;; <@30,#27> return
  61. 36032F79   121  89ec           mov esp,ebp
  62. 36032F7B   123  5d             pop ebp
  63. 36032F7C   124  c20400         ret 0x4
  64.                   ;;; <@12,#11> -------------------- Deferred allocate --------------------
  65. 36032F7F   127  b900000000     mov ecx,0x00000000
  66. 36032F84   132  60             pushad
  67. 36032F85   133  6a30           push 0x30
  68. 36032F87   135  8b75f0         mov esi,[ebp-16]
  69. 36032F8A   138  b801000000     mov eax,0x00000001
  70. 36032F8F   143  bb70a75101     mov ebx,0x0151a770
  71. 36032F94   148  e88798ffff     call 0x3602c820               ;; code: STUB, CEntryStub, minor: 1
  72. 36032F99   153  89442418       mov [esp+24],eax
  73. 36032F9D   157  61             popad
  74. 36032F9E   158  eba8           jmp 72  (36032F48)
  75. 36032FA0   160  90             nop
  76. 36032FA1   161  90             nop
  77. 36032FA2   162  90             nop
  78. 36032FA3   163  90             nop
  79. 36032FA4   164  90             nop
  80. 36032FA5   165  0f1f00         nop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement