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