Debian Codegraph @

terps/tads/tads3/vminitim.cpp

raw symbols SCIP
1 #ifdef RCSID
2 static char RCSid[] =
3 "$Header$";
4 #endif
5
6 /*
7 * Copyright (c) 1999, 2002 Michael J. Roberts. All Rights Reserved.
8 *
9 * Please see the accompanying license file, LICENSE.TXT, for information
10 * on using and copying this software.
11 */
12 /*
13 Name
14 vminitim.cpp - VM initialization - in-memory pool implementation
15 Function
16
17 Notes
18
19 Modified
20 07/21/99 MJRoberts - Creation
21 */
22
23 #include "t3std.h"
24 #include "vminit.h"
25 #include "vmpool.h"
26
27 /* ------------------------------------------------------------------------ */
28 /*
29 * Initialize the VM with in-memory page pools
30 */
31 void vm_init_in_mem(vm_globals **vmg, const vm_init_options *opts)
32 {
33 /* initialize the base VM structures */
34 vm_init_base(vmg, opts);
35
36 /*
37 * assign the global pointer to the special vmg__ local for
38 * globals-on-stack configuration
39 */
40 vm_globals *vmg__ = *vmg;
41
42 /*
43 * explicitly mark vmg__ as reference, in case we don't happen to use
44 * it in this build configuration
45 */
46 (void)vmg__;
47
48 /* create the in-memory pools */
49 VM_IF_ALLOC_PRE_GLOBAL(G_code_pool = new CVmPoolInMem());
50 VM_IF_ALLOC_PRE_GLOBAL(G_const_pool = new CVmPoolInMem());
51 }