I just realized that it's not possible to pointer-compare symbols! This means that all symbol comparisons require dependent loads to get the Symbol's underlying uid. This is probably worth fixing. We would like symbol comparisons to not require loads. To do that, we need to make Symbol hash-consed on a per-VM basis.
It sounds nice when using symbols as enum values (And using symbols in switch / if-else chain).
Created attachment 284766 [details] Patch
Created attachment 284767 [details] Patch
Created attachment 284770 [details] Patch
Comment on attachment 284770 [details] Patch Nice!!
Committed r203895: <http://trac.webkit.org/changeset/203895>
Committed r203897: <http://trac.webkit.org/changeset/203897>