Skip to content

Commit

Permalink
Reorder ATTRs in CallContext to enable typed allocations in Boehm GC.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.parrot.org/parrot/branches/boehm_gc_2@44459 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information
bacek committed Feb 24, 2010
1 parent f7f43cb commit f277c5a
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions src/pmc/callcontext.pmc
Original file line number Diff line number Diff line change
Expand Up @@ -410,18 +410,6 @@ pmclass CallContext provides array provides hash auto_attrs {
/* deref the constants - we need it all the time */
ATTR struct PackFile_Constant **constants;

ATTR INTVAL current_HLL; /* see also src/hll.c */

ATTR UINTVAL warns; /* Keeps track of what warnings
* have been activated */
ATTR UINTVAL errors; /* fatals that can be turned off */
ATTR UINTVAL trace_flags;
ATTR UINTVAL recursion_depth; /* Sub call recursion depth */

/* code->prederefed.code - code->base.data in opcodes
* to simplify conversion between code ptrs in e.g. invoke */
ATTR size_t pred_offset;

/* Storage for arguments */
ATTR struct Pcc_cell *positionals; /* linked list of positionals */
ATTR PMC *type_tuple; /* Cached argument types for MDD */
Expand All @@ -435,6 +423,19 @@ pmclass CallContext provides array provides hash auto_attrs {
ATTR void **returns_values; /* stored pointers */
ATTR INTVAL returns_size; /* number of stored elements */
ATTR INTVAL returns_resize_threshold; /* max size before resizing array */

/* code->prederefed.code - code->base.data in opcodes
* to simplify conversion between code ptrs in e.g. invoke */
ATTR size_t pred_offset;

ATTR INTVAL current_HLL; /* see also src/hll.c */

ATTR UINTVAL warns; /* Keeps track of what warnings
* have been activated */
ATTR UINTVAL errors; /* fatals that can be turned off */
ATTR UINTVAL trace_flags;
ATTR UINTVAL recursion_depth; /* Sub call recursion depth */

/*

=item C<void init()>
Expand Down

0 comments on commit f277c5a

Please sign in to comment.