src/share/vm/ci/ciClassList.hpp

Wed, 09 Jun 2010 18:50:45 -0700

author
jrose
date
Wed, 09 Jun 2010 18:50:45 -0700
changeset 1957
136b78722a08
parent 1907
c18cbe5936b8
child 2314
f95d63e2154a
permissions
-rw-r--r--

6939203: JSR 292 needs method handle constants
Summary: Add new CP types CONSTANT_MethodHandle, CONSTANT_MethodType; extend 'ldc' bytecode.
Reviewed-by: twisti, never

     1 /*
     2  * Copyright (c) 1999, 2007, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     8  *
     9  * This code is distributed in the hope that it will be useful, but WITHOUT
    10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    12  * version 2 for more details (a copy is included in the LICENSE file that
    13  * accompanied this code).
    14  *
    15  * You should have received a copy of the GNU General Public License version
    16  * 2 along with this work; if not, write to the Free Software Foundation,
    17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    18  *
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    20  * or visit www.oracle.com if you need additional information or have any
    21  * questions.
    22  *
    23  */
    25 class ciEnv;
    26 class ciObjectFactory;
    27 class ciConstantPoolCache;
    28 class ciCPCache;
    30 class ciField;
    31 class ciConstant;
    32 class ciFlags;
    33 class ciExceptionHandler;
    34 class ciCallProfile;
    35 class ciSignature;
    37 class ciBytecodeStream;
    38 class ciSignatureStream;
    39 class ciExceptionHandlerStream;
    41 class ciTypeFlow;
    43 class ciObject;
    44 class   ciNullObject;
    45 class   ciInstance;
    46 class     ciCallSite;
    47 class     ciMethodHandle;
    48 class   ciMethod;
    49 class   ciMethodData;
    50 class     ciReceiverTypeData;  // part of ciMethodData
    51 class   ciSymbol;
    52 class   ciArray;
    53 class     ciObjArray;
    54 class     ciTypeArray;
    55 class   ciType;
    56 class    ciReturnAddress;
    57 class    ciKlass;
    58 class     ciInstanceKlass;
    59 class     ciMethodKlass;
    60 class     ciSymbolKlass;
    61 class     ciArrayKlass;
    62 class       ciObjArrayKlass;
    63 class       ciTypeArrayKlass;
    64 class     ciKlassKlass;
    65 class       ciInstanceKlassKlass;
    66 class       ciArrayKlassKlass;
    67 class         ciObjArrayKlassKlass;
    68 class         ciTypeArrayKlassKlass;
    70 // Simulate Java Language style package-private access with
    71 // friend declarations.
    72 // This is a great idea but gcc and other C++ compilers give an
    73 // error for being friends with yourself, so this macro does not
    74 // compile on some platforms.
    76 // Everyone gives access to ciObjectFactory
    77 #define CI_PACKAGE_ACCESS \
    78 friend class ciObjectFactory;
    80 // These are the packages that have access to ciEnv
    81 // Any more access must be given explicitly.
    82 #define CI_PACKAGE_ACCESS_TO           \
    83 friend class ciObjectFactory;          \
    84 friend class ciCallSite;               \
    85 friend class ciConstantPoolCache;      \
    86 friend class ciField;                  \
    87 friend class ciConstant;               \
    88 friend class ciCPCache;                \
    89 friend class ciFlags;                  \
    90 friend class ciExceptionHandler;       \
    91 friend class ciCallProfile;            \
    92 friend class ciSignature;              \
    93 friend class ciBytecodeStream;         \
    94 friend class ciSignatureStream;        \
    95 friend class ciExceptionHandlerStream; \
    96 friend class ciObject;                 \
    97 friend class ciNullObject;             \
    98 friend class ciInstance;               \
    99 friend class ciMethod;                 \
   100 friend class ciMethodData;             \
   101 friend class ciMethodHandle;           \
   102 friend class ciReceiverTypeData;       \
   103 friend class ciSymbol;                 \
   104 friend class ciArray;                  \
   105 friend class ciObjArray;               \
   106 friend class ciTypeArray;              \
   107 friend class ciType;                   \
   108 friend class ciReturnAddress;          \
   109 friend class ciKlass;                  \
   110 friend class ciInstanceKlass;          \
   111 friend class ciMethodKlass;            \
   112 friend class ciSymbolKlass;            \
   113 friend class ciArrayKlass;             \
   114 friend class ciObjArrayKlass;          \
   115 friend class ciTypeArrayKlass;         \
   116 friend class ciKlassKlass;             \
   117 friend class ciInstanceKlassKlass;     \
   118 friend class ciArrayKlassKlass;        \
   119 friend class ciObjArrayKlassKlass;     \
   120 friend class ciTypeArrayKlassKlass;

mercurial