Comment #12 on issue 3926 by [email protected]: Let/const in CaseBlock
https://code.google.com/p/v8/issues/detail?id=3926

The logic in fullcodegen to perform hole check elimination is pretty simple. It checks if the scope for reading is the same as the scope for definition, and if the use comes after the definition. Clearly, this is wrong for switch! Here's the code from full-codegen-ia32.cc:

          skip_init_check = var->mode() != CONST_LEGACY &&
              var->initializer_position() < proxy->position();

It should be possible to just check that the current scope isn't a switch and disable this optimization, right?

--
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