Status: Accepted
Owner: [email protected]
Labels: Type-Bug Priority-Medium

New issue 238 by [email protected]: Fast-case switches with no default  
case can fail
http://code.google.com/p/v8/issues/detail?id=238

This affects only the experimental code generator branch.  It affects both
platforms, ia32 and arm.

When we emit jump tables for fast-case switches, and if the switch cases
have holes in them, and if there is no default case, then we use the label
of the switch statement's break target to put in the holes.

This break target could be reached on multiple paths (ie, from the case
clauses) and thus have an entry frame state for the break target that is
different from the state at the start of the switch statement.

We do not ever generate code to match the entry frame state chosen for the
break target.  This causes a failure if the frame state at the start of the
switch statement (coming in from the holes in the jump table) is
incompatible and we hit the hole at runtime.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to