1 /* Copyright (C) 1999-2005 Henry Cejtin, Matthew Fluet, Suresh
2 * Jagannathan, and Stephen Weeks.
3 * Copyright (C) 1997-2000 NEC Research Institute.
5 * MLton is released under a BSD-style license.
6 * See the file MLton-LICENSE for details.
9 #if (defined (MLTON_GC_INTERNAL_TYPES))
11 struct GC_callStackState
{
12 uint32_t numStackFrames
;
16 #endif /* (defined (MLTON_GC_INTERNAL_TYPES)) */
18 #if (defined (MLTON_GC_INTERNAL_FUNCS))
20 static inline void numStackFramesAux (GC_state s
, GC_frameIndex i
);
21 static inline void callStackAux (GC_state s
, GC_frameIndex i
);
23 #endif /* (defined (MLTON_GC_INTERNAL_FUNCS)) */
26 #if (defined (MLTON_GC_INTERNAL_BASIS))
28 PRIVATE
uint32_t GC_numStackFrames (GC_state s
);
29 PRIVATE
void GC_callStack (GC_state s
, pointer p
);
30 PRIVATE
uint32_t* GC_frameIndexSourceSeq (GC_state s
, GC_frameIndex frameIndex
);
32 #endif /* (defined (MLTON_GC_INTERNAL_BASIS)) */