Commit dc8d8c9e authored by John van Groningen's avatar John van Groningen
Browse files

skip some code when not using BOXED_RECORDS

parent dd9061d3
......@@ -3499,7 +3499,7 @@ int is_unique_record_update (NodeIdP record_node_id,NodeP record_node)
#endif
if ((record_node_id->nid_state.state_mark & STATE_UNIQUE_MASK)!=0 &&
#if 1
#if BOXED_RECORDS
(
((record_node_id->nid_mark2 & (NID_RECORD_USED_BY_UPDATE | NID_RECORD_USED_BY_NON_SELECTOR_OR_UPDATES))==NID_RECORD_USED_BY_UPDATE
&& record_node_id->nid_refcount==-2)
......@@ -3516,7 +3516,7 @@ int is_unique_record_update (NodeIdP record_node_id,NodeP record_node)
return 1;
}
# if 1
#if BOXED_RECORDS
# if 0
printf ("%d %d %d %d\n",record_node_id->nid_state.state_type==SimpleState,record_node_id->nid_mark2,record_node_id->nid_mark,record_node_id->nid_refcount);
# endif
......
......@@ -2638,9 +2638,9 @@ static void optimise_node_in_then_or_else (NodeP node,FreeUniqueNodeIdsS **f_nod
node_id=arg->arg_node->node_node_id;
if ((node_id->nid_mark2 & NID_HAS_REFCOUNT_WITHOUT_UPDATES)!=0 && node_id->nid_refcount==-2)
++node_id->nid_number;
# if BOXED_RECORDS
node_id->nid_mark2 |= NID_RECORD_USED_BY_UPDATE;
# endif
arg=arg->arg_next;
}
# if BOXED_RECORDS
......@@ -2915,9 +2915,9 @@ static void optimise_node (NodeP node,FreeUniqueNodeIdsS **f_node_ids_l)
node_id=arg->arg_node->node_node_id;
if ((node_id->nid_mark2 & NID_HAS_REFCOUNT_WITHOUT_UPDATES)!=0 && node_id->nid_refcount==-2)
++node_id->nid_number;
# if BOXED_RECORDS
node_id->nid_mark2 |= NID_RECORD_USED_BY_UPDATE;
# endif
arg=arg->arg_next;
}
# if BOXED_RECORDS
......
......@@ -340,8 +340,10 @@ STRUCT (node_id,NodeId){
/* Masks for nid_mark2 */
#define NID_SELECTION_NODE_ID 1
#define NID_RECORD_USED_BY_UPDATE 2
#define NID_RECORD_USED_BY_NON_SELECTOR_OR_UPDATES 4
#if BOXED_RECORDS
# define NID_RECORD_USED_BY_UPDATE 2
# define NID_RECORD_USED_BY_NON_SELECTOR_OR_UPDATES 4
#endif
#define NID_FIELD_NAME_MASK 32 /* typechecker */
#define NID_COMPONENT_DETERMINED_MASK 256 /* optimise_lambda */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment