Damien George
df8127a17e
py: Remove unique_codes from emitglue.c. Replace with pointers.
...
Attempt to address issue #386 . unique_code_id's have been removed and
replaced with a pointer to the "raw code" information. This pointer is
stored in the actual byte code (aligned, so the GC can trace it), so
that raw code (ie byte code, native code and inline assembler) is kept
only for as long as it is needed. In memory it's now like a tree: the
outer module's byte code points directly to its children's raw code. So
when the outer code gets freed, if there are no remaining functions that
need the raw code, then the children's code gets freed as well.
This is pretty much like CPython does it, except that CPython stores
indexes in the byte code rather than machine pointers. These indices
index the per-function constant table in order to find the relevant
code.
2014-04-13 11:04:33 +01:00
..
2014-04-13 00:30:32 +01:00
2014-04-13 00:30:32 +01:00
2014-02-12 18:31:30 +02:00
2014-01-06 13:51:53 -08:00
2014-04-12 18:20:40 +01:00
2014-03-30 23:30:16 +03:00
2014-04-11 03:59:16 +03:00
2014-04-11 03:59:16 +03:00
2014-04-06 02:15:23 +03:00
2014-04-13 11:54:53 +03:00
2014-04-06 11:48:15 +01:00
2014-04-12 18:25:17 +03:00
2014-04-13 10:24:00 +03:00
2014-04-05 22:36:42 +01:00
2014-04-13 11:04:33 +01:00
2014-04-09 12:27:39 +01:00
2014-04-12 17:54:52 +01:00
2014-04-13 11:04:33 +01:00
2014-04-13 11:04:33 +01:00
2014-04-13 11:04:33 +01:00
2014-04-13 11:04:33 +01:00
2014-04-13 11:04:33 +01:00
2014-04-13 11:04:33 +01:00
2014-04-13 11:04:33 +01:00
2014-04-13 11:04:33 +01:00
2014-04-01 01:17:33 -07:00
2014-03-10 13:27:02 +00:00
2014-04-09 04:13:21 +03:00
2014-04-08 11:31:21 +00:00
2014-02-10 02:04:26 +02:00
2014-04-10 12:19:33 +01:00
2014-02-05 23:57:48 +00:00
2014-03-17 02:43:40 -07:00
2014-04-10 15:00:58 +01:00
2014-01-08 15:28:26 +00:00
2014-04-13 06:45:02 +03:00
2014-04-10 14:27:31 +00:00
2014-04-07 01:16:17 +01:00
2014-04-10 14:27:31 +00:00
2014-04-07 01:35:45 +01:00
2014-04-11 00:41:59 +01:00
2014-04-05 21:53:54 +01:00
2014-04-13 10:24:00 +03:00
2014-04-05 21:53:54 +01:00
2014-04-05 21:53:54 +01:00
2014-04-05 21:53:54 +01:00
2014-04-11 03:59:16 +03:00
2014-04-11 03:58:49 +03:00
2014-04-08 23:11:00 +01:00
2014-04-07 11:38:45 -07:00
2014-04-08 14:08:14 +00:00
2014-04-08 14:08:14 +00:00
2014-04-08 14:08:14 +00:00
2014-04-08 14:08:14 +00:00
2014-04-13 06:45:12 +03:00
2014-04-12 17:53:05 +01:00
2014-04-11 03:58:49 +03:00
2014-04-08 22:11:40 +03:00
2014-04-05 18:32:08 +01:00
2014-03-30 13:35:08 +01:00
2014-04-05 21:53:54 +01:00
2014-03-30 13:35:08 +01:00
2014-04-11 10:10:37 +01:00
2014-04-13 11:54:53 +03:00
2014-03-30 13:35:08 +01:00
2014-04-10 14:27:31 +00:00
2014-04-05 18:32:08 +01:00
2014-04-11 10:10:37 +01:00
2014-04-13 11:30:16 +03:00
2014-04-09 19:53:31 +01:00
2014-03-26 19:33:23 +00:00
2014-04-05 18:32:08 +01:00
2014-04-12 00:20:39 +01:00
2014-04-12 00:20:39 +01:00
2014-04-08 23:30:46 +01:00
2014-04-08 23:30:46 +01:00
2014-04-12 00:20:39 +01:00
2014-04-05 18:32:08 +01:00
2014-04-08 21:11:49 +01:00
2014-03-25 14:18:18 +00:00
2014-04-05 18:32:08 +01:00
2014-03-30 13:35:08 +01:00
2014-04-05 22:45:23 +01:00
2014-03-30 23:37:24 +03:00
2014-04-13 11:54:53 +03:00
2014-03-29 13:43:38 +00:00
2014-04-13 06:45:12 +03:00
2014-04-12 00:20:39 +01:00
2014-03-03 11:42:53 +08:00
2014-04-08 21:32:29 +01:00
2014-03-30 23:30:15 +03:00
2014-04-13 11:54:53 +03:00
2014-04-10 14:27:31 +00:00
2014-04-10 14:27:31 +00:00
2014-04-10 14:27:31 +00:00
2014-02-15 16:10:44 +00:00
2014-04-09 19:56:38 +01:00
2014-03-21 11:45:46 +00:00
2014-03-01 19:50:50 +00:00
2014-03-01 19:50:50 +00:00
2014-04-08 22:10:37 +01:00
2014-04-08 22:10:37 +01:00
2014-04-03 16:55:15 -07:00
2014-04-13 11:54:53 +03:00
2014-03-25 15:27:15 +00:00
2014-04-12 17:53:05 +01:00
2014-04-13 11:34:40 +03:00
2014-04-08 11:33:28 +00:00
2014-04-08 11:04:29 +00:00
2014-04-13 11:04:33 +01:00
2014-04-13 11:04:33 +01:00
2014-04-13 11:04:33 +01:00
2014-04-13 11:04:33 +01:00
2014-04-13 11:04:33 +01:00
2014-04-05 18:32:08 +01:00
2014-04-12 18:20:40 +01:00
2014-04-04 11:13:51 +00:00
2014-04-04 11:13:51 +00:00
2014-04-05 23:02:23 +01:00
2014-01-20 18:42:08 +02:00
2014-04-10 11:39:36 +01:00
2014-04-13 11:04:33 +01:00
2014-03-31 17:10:59 +01:00