Damien George
a210c774f9
py, compiler: Remove emit_pass1 code, using emit_bc to do its job.
...
First pass for the compiler is computing the scope (eg if an identifier
is local or not) and originally had an entire table of methods dedicated
to this, most of which did nothing. With changes from previous commit,
this set of methods can be removed and the methods from the bytecode
emitter used instead, with very little modification -- this is what is
done in this commit.
This factoring has little to no impact on the speed of the compiler
(tested by compiling 3763 Python scripts and timing it).
This factoring reduces code size by about 270-300 bytes on Thumb2 archs,
and 400 bytes on x86.
2015-03-26 16:52:45 +00:00
..
2015-01-20 11:55:10 +00:00
2015-01-14 00:38:33 +00:00
2015-01-01 18:07:43 +00:00
2015-03-02 17:51:32 +00:00
2015-03-02 14:29:52 +00:00
2015-02-14 02:20:35 +08:00
2015-01-22 14:08:58 +00:00
2015-02-14 02:20:35 +08:00
2015-01-01 18:07:43 +00:00
2015-02-08 01:57:40 +00:00
2015-03-20 23:13:32 +00:00
2015-02-15 19:24:15 +03:00
2015-03-05 22:58:31 +02:00
2015-01-01 20:32:09 +00:00
2015-02-14 23:35:00 +00:00
2015-02-15 00:02:27 +00:00
2015-02-16 12:11:34 +02:00
2015-03-26 16:52:45 +00:00
2015-02-07 18:33:58 +00:00
2015-03-26 16:52:45 +00:00
2015-03-26 16:52:45 +00:00
2015-03-26 16:52:45 +00:00
2015-03-26 16:52:45 +00:00
2015-01-24 23:14:12 +00:00
2015-01-24 23:14:12 +00:00
2015-03-03 17:34:49 +00:00
2015-03-26 16:52:45 +00:00
2015-01-01 20:32:09 +00:00
2015-01-01 20:32:09 +00:00
2015-01-20 11:52:12 +02:00
2015-01-20 11:52:12 +02:00
2015-02-07 17:24:10 +00:00
2015-01-07 20:33:00 +00:00
2015-02-08 01:57:40 +00:00
2015-03-19 00:25:33 +00:00
2015-03-19 00:25:33 +00:00
2015-02-27 09:34:51 +00:00
2015-01-01 20:32:09 +00:00
2015-01-11 22:40:38 +00:00
2015-03-03 21:23:13 +00:00
2015-03-20 17:41:37 +00:00
2015-03-03 21:23:13 +00:00
2014-06-07 13:14:45 +01:00
2014-11-06 18:48:38 +00:00
2015-01-01 20:32:09 +00:00
2015-03-19 00:25:33 +00:00
2015-02-02 12:52:14 +00:00
2015-03-20 17:26:10 +00:00
2015-02-07 17:24:10 +00:00
2015-02-15 13:17:11 +00:00
2015-02-22 14:48:18 +00:00
2015-02-15 13:17:11 +00:00
2015-02-08 01:57:40 +00:00
2015-02-07 17:24:10 +00:00
2015-03-20 23:13:32 +00:00
2015-01-07 20:33:00 +00:00
2015-02-07 17:24:10 +00:00
2015-03-12 22:48:45 +00:00
2015-03-12 22:48:45 +00:00
2015-02-08 01:57:40 +00:00
2015-03-03 14:34:40 +00:00
2015-01-07 20:33:00 +00:00
2015-01-07 20:33:00 +00:00
2015-01-08 16:24:44 +00:00
2015-01-07 20:33:00 +00:00
2015-01-07 20:33:00 +00:00
2015-02-17 00:32:18 +02:00
2015-03-25 09:25:41 +02:00
2015-03-19 00:25:33 +00:00
2015-01-20 12:47:20 +00:00
2015-03-20 23:13:32 +00:00
2015-01-20 12:47:20 +00:00
2015-01-20 12:47:20 +00:00
2015-02-08 01:57:40 +00:00
2015-03-26 12:28:56 +02:00
2015-01-20 12:47:20 +00:00
2015-02-27 09:34:51 +00:00
2015-02-27 00:36:39 +00:00
2015-01-20 14:11:27 +00:00
2015-03-14 23:11:25 +00:00
2015-03-20 23:13:32 +00:00
2015-01-01 20:32:09 +00:00
2015-03-20 23:13:32 +00:00
2015-01-01 20:32:09 +00:00
2015-01-01 20:32:09 +00:00
2015-03-14 22:07:30 +00:00
2015-03-14 22:07:30 +00:00
2015-03-14 22:07:30 +00:00
2015-03-14 22:07:30 +00:00
2015-03-25 09:25:41 +02:00
2015-02-27 00:36:39 +00:00
2015-01-20 14:11:27 +00:00
2015-03-20 17:26:10 +00:00
2015-01-01 20:32:09 +00:00
2015-03-23 22:45:14 +02:00
2015-01-20 12:47:20 +00:00
2015-01-20 14:11:27 +00:00
2015-01-20 12:47:20 +00:00
2015-03-11 20:02:06 +00:00
2015-01-21 00:19:42 +00:00
2015-03-20 17:41:37 +00:00
2015-01-20 12:47:20 +00:00
2015-03-23 22:43:37 +02:00
2015-03-23 22:43:37 +02:00
2015-01-20 23:50:43 +00:00
2015-03-19 00:25:33 +00:00
2015-02-27 09:34:51 +00:00
2015-01-01 20:32:09 +00:00
2015-03-21 14:21:54 +00:00
2015-01-07 21:07:23 +00:00
2015-01-20 12:47:20 +00:00
2015-01-01 20:32:09 +00:00
2015-02-23 21:36:05 +00:00
2015-02-13 02:29:46 +00:00
2015-03-16 10:42:50 +00:00
2015-02-08 01:57:40 +00:00
2015-02-08 01:57:40 +00:00
2015-01-01 20:32:09 +00:00
2015-03-14 23:09:57 +00:00
2015-03-14 22:32:40 +00:00
2015-03-14 22:32:40 +00:00
2014-06-07 09:16:42 +02:00
2015-03-26 16:52:45 +00:00
2015-02-10 11:02:28 +00:00
2015-02-10 11:02:28 +00:00
2015-03-20 17:26:10 +00:00
2015-01-01 20:32:09 +00:00
2015-01-01 20:32:09 +00:00
2015-02-08 01:57:40 +00:00
2015-03-21 14:21:54 +00:00
2015-03-21 14:21:54 +00:00
2015-01-01 20:32:09 +00:00
2015-01-01 20:32:09 +00:00
2015-01-20 12:47:20 +00:00
2015-03-20 17:12:09 +00:00
2015-01-01 20:32:09 +00:00
2015-01-01 20:32:09 +00:00
2015-02-15 22:41:14 +03:00
2015-01-01 20:32:09 +00:00
2015-01-28 23:43:01 +00:00
2015-01-01 20:32:09 +00:00
2015-01-01 20:32:09 +00:00
2015-01-01 20:32:09 +00:00
2015-03-25 22:20:37 +00:00
2015-02-08 01:57:40 +00:00
2015-01-29 13:57:23 +00:00
2015-01-12 22:30:49 +00:00