globalDefinitions.cpp revision 113
3887N/A * Copyright 1997-2006 Sun Microsystems, Inc. All Rights Reserved. 3887N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3887N/A * This code is free software; you can redistribute it and/or modify it 3887N/A * under the terms of the GNU General Public License version 2 only, as 3887N/A * published by the Free Software Foundation. 3887N/A * This code is distributed in the hope that it will be useful, but WITHOUT 3887N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3887N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3887N/A * version 2 for more details (a copy is included in the LICENSE file that 3887N/A * You should have received a copy of the GNU General Public License version 3887N/A * 2 along with this work; if not, write to the Free Software Foundation, 3887N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3887N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 3887N/A * CA 95054 USA or visit www.sun.com if you need additional information or 3887N/A#
include "incls/_precompiled.incl" 3887N/A// Info for oops within a java object. Defaults are zero so 3887N/A// things will break badly if incorrectly initialized. 3887N/A// Something to help porters sleep at night 3887N/A for (
int i = 0; i <
99; i++) {
3887N/A // the following types might plausibly show up in memory layouts: 3887N/A // layout type must map to itself 4134N/A // non-layout type must map to a (different) layout type 3887N/A // every type must map to same-sized layout type: 3887N/A // These are assumed, e.g., when filling HeapWords with juints. 3887N/A "HeapWord should be at least as large as juint");
3887N/A // Set the size of basic types here (after argument parsing but before 3887N/A // Size info for oops within java objects is fixed 3887N/A// Map BasicType to signature character 3887N/Achar type2char_tab[
T_CONFLICT+
1]={ 0, 0, 0, 0,
'Z',
'C',
'F',
'D',
'B',
'S',
'I',
'J',
'L',
'[',
'V', 0, 0, 0};
4134N/A// Map BasicType to Java type name 3887N/A// Map BasicType to size in words 3887N/Aint type2size[
T_CONFLICT+
1]={ -
1, 0, 0, 0,
1,
1,
1,
2,
1,
1,
1,
2,
1,
1, 0,
1,
1, -
1};
3887N/A// Support for 64-bit integer arithmetic