hotspot/src/share/vm/ci/ciClassList.hpp
author twisti
Tue, 24 Jul 2012 10:51:00 -0700
changeset 13391 30245956af37
parent 10547 ea4a2ec31ae2
child 13728 882756847a04
permissions -rw-r--r--
7023639: JSR 292 method handle invocation needs a fast path for compiled code 6984705: JSR 292 method handle creation should not go through JNI Summary: remove assembly code for JDK 7 chained method handles Reviewed-by: jrose, twisti, kvn, mhaupt Contributed-by: John Rose <john.r.rose@oracle.com>, Christian Thalinger <christian.thalinger@oracle.com>, Michael Haupt <michael.haupt@oracle.com>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
8921
14bfe81f2a9d 7010070: Update all 2010 Oracle-changed OpenJDK files to have the proper copyright dates - second pass
trims
parents: 8076
diff changeset
     2
 * Copyright (c) 1999, 2011, 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
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
    25
#ifndef SHARE_VM_CI_CICLASSLIST_HPP
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
    26
#define SHARE_VM_CI_CICLASSLIST_HPP
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
    27
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    28
class ciEnv;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    29
class ciObjectFactory;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    30
class ciConstantPoolCache;
4566
b363f6ef4068 6829187: compiler optimizations required for JSR 292
twisti
parents: 1
diff changeset
    31
class ciCPCache;
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
class ciField;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
class ciConstant;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
class ciFlags;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
class ciExceptionHandler;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
class ciCallProfile;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
class ciSignature;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
class ciBytecodeStream;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
class ciSignatureStream;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
class ciExceptionHandlerStream;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
class ciTypeFlow;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
class ciObject;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
class   ciNullObject;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
class   ciInstance;
4567
7fc02fbe5c7a 6893268: additional dynamic language related optimizations in C2
twisti
parents: 4566
diff changeset
    49
class     ciCallSite;
13391
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 10547
diff changeset
    50
class     ciMemberName;
4567
7fc02fbe5c7a 6893268: additional dynamic language related optimizations in C2
twisti
parents: 4566
diff changeset
    51
class     ciMethodHandle;
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
class   ciMethod;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
class   ciMethodData;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
class     ciReceiverTypeData;  // part of ciMethodData
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
class   ciSymbol;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
class   ciArray;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
class     ciObjArray;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
class     ciTypeArray;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
class   ciType;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
class    ciReturnAddress;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
class    ciKlass;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
class     ciInstanceKlass;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
class     ciMethodKlass;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
class     ciArrayKlass;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
class       ciObjArrayKlass;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
class       ciTypeArrayKlass;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
class     ciKlassKlass;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
class       ciInstanceKlassKlass;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
class       ciArrayKlassKlass;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
class         ciObjArrayKlassKlass;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
class         ciTypeArrayKlassKlass;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
// Simulate Java Language style package-private access with
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
// friend declarations.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
// This is a great idea but gcc and other C++ compilers give an
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
// error for being friends with yourself, so this macro does not
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
// compile on some platforms.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
// Everyone gives access to ciObjectFactory
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
#define CI_PACKAGE_ACCESS \
10547
ea4a2ec31ae2 7088955: add C2 IR support to the SA
never
parents: 8921
diff changeset
    81
friend class ciObjectFactory; \
ea4a2ec31ae2 7088955: add C2 IR support to the SA
never
parents: 8921
diff changeset
    82
friend class VMStructs;
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
// These are the packages that have access to ciEnv
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
// Any more access must be given explicitly.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
#define CI_PACKAGE_ACCESS_TO           \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
friend class ciObjectFactory;          \
10547
ea4a2ec31ae2 7088955: add C2 IR support to the SA
never
parents: 8921
diff changeset
    88
friend class VMStructs;                \
4567
7fc02fbe5c7a 6893268: additional dynamic language related optimizations in C2
twisti
parents: 4566
diff changeset
    89
friend class ciCallSite;               \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
friend class ciConstantPoolCache;      \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
friend class ciField;                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
friend class ciConstant;               \
5882
6b2aecc4f7d8 6939203: JSR 292 needs method handle constants
jrose
parents: 5547
diff changeset
    93
friend class ciCPCache;                \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
friend class ciFlags;                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
friend class ciExceptionHandler;       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
friend class ciCallProfile;            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
friend class ciSignature;              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
friend class ciBytecodeStream;         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
friend class ciSignatureStream;        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
friend class ciExceptionHandlerStream; \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
friend class ciObject;                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
friend class ciNullObject;             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
friend class ciInstance;               \
13391
30245956af37 7023639: JSR 292 method handle invocation needs a fast path for compiled code
twisti
parents: 10547
diff changeset
   104
friend class ciMemberName;             \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
friend class ciMethod;                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
friend class ciMethodData;             \
4567
7fc02fbe5c7a 6893268: additional dynamic language related optimizations in C2
twisti
parents: 4566
diff changeset
   107
friend class ciMethodHandle;           \
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
friend class ciReceiverTypeData;       \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
friend class ciSymbol;                 \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
friend class ciArray;                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
friend class ciObjArray;               \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
friend class ciTypeArray;              \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
friend class ciType;                   \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
friend class ciReturnAddress;          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
friend class ciKlass;                  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
friend class ciInstanceKlass;          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
friend class ciMethodKlass;            \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
friend class ciArrayKlass;             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
friend class ciObjArrayKlass;          \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
friend class ciTypeArrayKlass;         \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
friend class ciKlassKlass;             \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
friend class ciInstanceKlassKlass;     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
friend class ciArrayKlassKlass;        \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
friend class ciObjArrayKlassKlass;     \
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
friend class ciTypeArrayKlassKlass;
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
   126
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5882
diff changeset
   127
#endif // SHARE_VM_CI_CICLASSLIST_HPP