hotspot/src/share/vm/ci/ciClassList.hpp
author jrose
Fri, 16 Jul 2010 18:14:19 -0700
changeset 6064 71e316283a85
parent 5882 6b2aecc4f7d8
child 7397 5b173b4ca846
permissions -rw-r--r--
6969574: invokedynamic call sites deoptimize instead of executing Reviewed-by: kvn
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 4567
diff changeset
     2
 * Copyright (c) 1999, 2007, Oracle and/or its affiliates. All rights reserved.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
 *
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 4567
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 4567
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 4567
diff changeset
    21
 * questions.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
 */
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
489c9b5090e2 Initial load
duke
parents:
diff changeset
    25
class ciEnv;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    26
class ciObjectFactory;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    27
class ciConstantPoolCache;
4566
b363f6ef4068 6829187: compiler optimizations required for JSR 292
twisti
parents: 1
diff changeset
    28
class ciCPCache;
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    29
489c9b5090e2 Initial load
duke
parents:
diff changeset
    30
class ciField;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    31
class ciConstant;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
class ciFlags;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
class ciExceptionHandler;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
class ciCallProfile;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
class ciSignature;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
class ciBytecodeStream;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
class ciSignatureStream;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
class ciExceptionHandlerStream;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
class ciTypeFlow;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
class ciObject;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
class   ciNullObject;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
class   ciInstance;
4567
7fc02fbe5c7a 6893268: additional dynamic language related optimizations in C2
twisti
parents: 4566
diff changeset
    46
class     ciCallSite;
7fc02fbe5c7a 6893268: additional dynamic language related optimizations in C2
twisti
parents: 4566
diff changeset
    47
class     ciMethodHandle;
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
class   ciMethod;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
class   ciMethodData;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
class     ciReceiverTypeData;  // part of ciMethodData
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
class   ciSymbol;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
class   ciArray;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
class     ciObjArray;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
class     ciTypeArray;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
class   ciType;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
class    ciReturnAddress;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
class    ciKlass;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
class     ciInstanceKlass;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
class     ciMethodKlass;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
class     ciSymbolKlass;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
class     ciArrayKlass;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
class       ciObjArrayKlass;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
class       ciTypeArrayKlass;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
class     ciKlassKlass;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
class       ciInstanceKlassKlass;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
class       ciArrayKlassKlass;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
class         ciObjArrayKlassKlass;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
class         ciTypeArrayKlassKlass;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
// Simulate Java Language style package-private access with
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
// friend declarations.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
// This is a great idea but gcc and other C++ compilers give an
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
// error for being friends with yourself, so this macro does not
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
// compile on some platforms.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
// Everyone gives access to ciObjectFactory
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
#define CI_PACKAGE_ACCESS \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
friend class ciObjectFactory;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
// These are the packages that have access to ciEnv
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
// Any more access must be given explicitly.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
#define CI_PACKAGE_ACCESS_TO           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
friend class ciObjectFactory;          \
4567
7fc02fbe5c7a 6893268: additional dynamic language related optimizations in C2
twisti
parents: 4566
diff changeset
    84
friend class ciCallSite;               \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
friend class ciConstantPoolCache;      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
friend class ciField;                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
friend class ciConstant;               \
5882
6b2aecc4f7d8 6939203: JSR 292 needs method handle constants
jrose
parents: 5547
diff changeset
    88
friend class ciCPCache;                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
friend class ciFlags;                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
friend class ciExceptionHandler;       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
friend class ciCallProfile;            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
friend class ciSignature;              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
friend class ciBytecodeStream;         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
friend class ciSignatureStream;        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
friend class ciExceptionHandlerStream; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
friend class ciObject;                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
friend class ciNullObject;             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
friend class ciInstance;               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
friend class ciMethod;                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
friend class ciMethodData;             \
4567
7fc02fbe5c7a 6893268: additional dynamic language related optimizations in C2
twisti
parents: 4566
diff changeset
   101
friend class ciMethodHandle;           \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
friend class ciReceiverTypeData;       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
friend class ciSymbol;                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
friend class ciArray;                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
friend class ciObjArray;               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
friend class ciTypeArray;              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
friend class ciType;                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
friend class ciReturnAddress;          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
friend class ciKlass;                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
friend class ciInstanceKlass;          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
friend class ciMethodKlass;            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
friend class ciSymbolKlass;            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
friend class ciArrayKlass;             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
friend class ciObjArrayKlass;          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
friend class ciTypeArrayKlass;         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
friend class ciKlassKlass;             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
friend class ciInstanceKlassKlass;     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
friend class ciArrayKlassKlass;        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
friend class ciObjArrayKlassKlass;     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
friend class ciTypeArrayKlassKlass;