Updates:
        Status: Invalid

Comment #1 on issue 3402 by [email protected]: Boolean symbols
http://code.google.com/p/v8/issues/detail?id=3402

We already constant-fold (and similar for !0):

--- Raw source ---
!1



--- Code ---
source_position = 0
kind = FUNCTION
Instructions (size = 104)
0x27a4c860     0  8b4c2404       mov ecx,[esp+0x4]
0x27a4c864 4 81f991808054 cmp ecx,0x54808091 ;; object: 0x54808091 <undefined>
0x27a4c86a    10  750a           jnz 22  (0x27a4c876)
0x27a4c86c    12  8b4e13         mov ecx,[esi+0x13]
0x27a4c86f    15  8b4917         mov ecx,[ecx+0x17]
0x27a4c872    18  894c2404       mov [esp+0x4],ecx
0x27a4c876    22  55             push ebp
0x27a4c877    23  89e5           mov ebp,esp
0x27a4c879    25  56             push esi
0x27a4c87a    26  57             push edi
0x27a4c87b 27 6891808054 push 0x54808091 ;; object: 0x54808091 <undefined>
0x27a4c880    32  3b2594cb6a0a   cmp esp,[0xa6acb94]
0x27a4c886    38  7305           jnc 45  (0x27a4c88d)
0x27a4c888 40 e8d3fafdff call StackCheck (0x27a2c360) ;; debug: statement 0 ;; code: BUILTIN 0x27a4c88d 45 b8c1808054 mov eax,0x548080c1 ;; object: 0x548080c1 <false>
0x27a4c892    50  8945f4         mov [ebp-0xc],eax
0x27a4c895    53  8b45f4         mov eax,[ebp-0xc]
0x27a4c898 56 bb5185d039 mov ebx,0x39d08551 ;; object: 0x39d08551 Cell for 6144
0x27a4c89d    61  836b035e       sub [ebx+0x3],0x5e
0x27a4c8a1    65  7913           jns 86  (0x27a4c8b6)
0x27a4c8a3    67  50             push eax
0x27a4c8a4 68 e837fcfdff call InterruptCheck (0x27a2c4e0) ;; debug: statement 4 ;; code: BUILTIN
0x27a4c8a9    73  58             pop eax
0x27a4c8aa 74 bb5185d039 mov ebx,0x39d08551 ;; object: 0x39d08551 Cell for 6144
0x27a4c8af    79  c7430300300000 mov [ebx+0x3],0x3000
0x27a4c8b6 86 89ec mov esp,ebp ;; debug: position 3
                                                             ;; js return
0x27a4c8b8    88  5d             pop ebp
0x27a4c8b9    89  c20400         ret 0x4
0x27a4c8bc 92 b891808054 mov eax,0x54808091 ;; object: 0x54808091 <undefined>
0x27a4c8c1    97  ebd5           jmp 56  (0x27a4c898)
0x27a4c8c3    99  90             nop


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to