Akos Kiss
4779451284
Cleanup code around JERRY_UNREACHABLEs ( #2342 )
...
`JERRY_UNREACHABLE`s often signal code structure that could be
improved: they can usually either be rewritten to `JERRY_ASSERT`s
or eliminated by restructuring loops, `if`s or `#if`s. Roughly,
the only valid occurences are in default cases of `switch`es. And
even they can often be merged into non-default cases.
Moreover, it is dangerous to write meaningful code after
`JERRY_UNREACHABLE` because it pretends as if there was a way to
recover from an impossible situation.
This patch rewrites/eliminates `JERRY_UNREACHABLE`s where possible
and removes misleading code from after them.
JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
2018-05-25 07:27:30 +02:00
..
2018-05-25 07:27:30 +02:00
2018-05-18 09:39:42 +09:00
2017-04-21 11:42:36 +02:00
2017-12-06 18:06:07 +01:00
2017-04-21 11:42:36 +02:00
2018-02-01 19:30:03 +09:00
2017-04-21 11:42:36 +02:00
2017-03-30 21:22:22 +08:00
2017-04-21 11:42:36 +02:00
2018-03-01 13:31:15 +01:00
2017-04-21 11:42:36 +02:00
2017-12-06 18:06:07 +01:00
2017-04-21 11:42:36 +02:00
2018-05-25 07:27:30 +02:00
2017-04-21 11:42:36 +02:00
2018-04-09 13:27:16 +02:00
2017-04-21 11:42:36 +02:00
2018-05-14 09:41:26 +09:00
2017-03-23 09:36:29 +01:00
2016-12-08 06:39:11 +01:00
2017-03-23 09:36:29 +01:00
2016-12-08 06:39:11 +01:00
2017-04-21 11:42:36 +02:00
2016-12-08 06:39:11 +01:00
2017-04-21 11:42:36 +02:00
2018-05-15 09:03:40 +09:00
2017-03-23 09:36:29 +01:00
2018-04-19 09:12:54 +09:00
2017-03-23 09:36:29 +01:00
2018-05-25 07:27:30 +02:00
2017-12-06 18:06:07 +01:00
2018-05-25 07:27:30 +02:00
2017-12-06 18:06:07 +01:00
2018-05-14 09:41:26 +09:00
2017-03-23 09:36:29 +01:00
2017-03-23 09:36:29 +01:00
2018-05-18 19:42:14 +09:00
2018-04-05 09:58:07 +02:00
2017-12-06 18:06:07 +01:00
2018-05-25 07:27:30 +02:00
2017-04-21 11:42:36 +02:00
2018-05-14 09:41:26 +09:00
2017-04-21 11:42:36 +02:00
2018-05-18 15:43:17 +09:00
2017-04-21 11:42:36 +02:00
2017-12-06 18:06:07 +01:00
2017-04-21 11:42:36 +02:00
2017-12-06 18:06:07 +01:00
2017-03-23 09:36:29 +01:00
2018-05-18 15:43:17 +09:00
2017-03-23 09:36:29 +01:00
2017-12-06 18:06:07 +01:00
2017-04-26 19:47:51 +08:00
2018-03-01 13:31:15 +01:00
2017-04-26 19:47:51 +08:00
2016-12-08 06:39:11 +01:00
2017-04-21 11:42:36 +02:00
2016-12-08 06:39:11 +01:00
2017-04-21 11:42:36 +02:00
2016-12-08 06:39:11 +01:00
2017-04-21 11:42:36 +02:00
2016-12-08 06:39:11 +01:00
2017-04-21 11:42:36 +02:00
2018-04-20 15:27:33 +02:00
2017-12-06 18:06:07 +01:00
2018-04-20 15:27:33 +02:00
2017-04-21 11:42:36 +02:00
2018-05-18 15:43:17 +09:00
2017-07-10 10:49:16 +02:00
2018-03-01 13:31:15 +01:00
2017-04-21 11:42:36 +02:00
2016-12-08 06:39:11 +01:00
2017-04-21 11:42:36 +02:00
2016-12-08 06:39:11 +01:00
2017-04-21 11:42:36 +02:00
2016-12-08 06:39:11 +01:00
2017-03-23 09:36:29 +01:00
2016-12-08 06:39:11 +01:00
2017-04-21 11:42:36 +02:00
2016-12-08 06:39:11 +01:00
2017-04-21 11:42:36 +02:00
2016-12-08 06:39:11 +01:00
2017-04-21 11:42:36 +02:00
2016-12-08 06:39:11 +01:00
2017-04-21 11:42:36 +02:00
2018-03-02 14:37:03 +01:00
2018-05-25 07:27:30 +02:00
2018-03-02 14:37:03 +01:00
2018-03-02 14:37:03 +01:00