Commit 359bcf7
committed
[MERGE chakra-core#647] Fixing a subtle Switch Opt Assert
Merge pull request chakra-core#647 from satheeshravi:bugFix1
Issue:
The interpreter profiles the switch expression as a string. But the
globopt sees the value of the expression as an Integer, due to effects
of constant folding and BailOnNoProfile.
Fix:
When such incompatibility is seen, we do a compile time rejit.
This is already done when we have a sym. But we were just asserting for
this in constant folding path.1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8988 | 8988 | | |
8989 | 8989 | | |
8990 | 8990 | | |
8991 | | - | |
| 8991 | + | |
| 8992 | + | |
| 8993 | + | |
| 8994 | + | |
| 8995 | + | |
8992 | 8996 | | |
8993 | 8997 | | |
8994 | 8998 | | |
| |||
0 commit comments