Give perspicuous names to the object allocators used in Genesis.
commit66fc1e03cb3508f4b099e63eff76ccf1d5a3943e
authorDouglas Katzman <dougk@google.com>
Sun, 14 Dec 2014 08:42:43 +0000 (14 03:42 -0500)
committerDouglas Katzman <dougk@google.com>
Sun, 14 Dec 2014 08:42:43 +0000 (14 03:42 -0500)
treef18430385d7f22b85d4de44a94a369d0192c4df4
parent076c688433f58792d464a2740a3b4467f3e64e00
Give perspicuous names to the object allocators used in Genesis.

The revised names ALLOCATE-HEADER+OBJECT and ALLOCATE-OBJECT
do exactly what they say, irrespective of whether an object
is thought of as boxed or unboxed.

COLD-FDEFINITION-OBJECT was working correctly only by dumb luck;
subtracting 1 when calling ALLOCATE-BOXED-OBJECT was wrong, because
the boxed allocator did not add a header, but round-to-even made it
accidentally come out right, and would not have if fdefns had an odd
physical length because 1- would have not been rounded up.
ALLOCATE-SYMBOL used the unboxed allocator which was just strange,
but correct in that it did add a header to 1- the specified length.
src/compiler/generic/genesis.lisp