< prev index next >

src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotObjectConstant.java

Print this page




   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 package jdk.vm.ci.hotspot;
  24 
  25 import java.lang.invoke.*;
  26 import java.util.*;
  27 
  28 import jdk.vm.ci.meta.*;



  29 
  30 /**
  31  * Represents a constant non-{@code null} object reference, within the compiler and across the
  32  * compiler/runtime interface.
  33  */
  34 public interface HotSpotObjectConstant extends JavaConstant, HotSpotConstant, VMConstant {
  35 
  36     JavaConstant compress();
  37 
  38     JavaConstant uncompress();
  39 
  40     /**
  41      * Gets the resolved Java type of the object represented by this constant.
  42      */
  43     HotSpotResolvedObjectType getType();
  44 
  45     /**
  46      * Gets the result of {@link Class#getClassLoader()} for the {@link Class} object represented by
  47      * this constant.
  48      *




   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 package jdk.vm.ci.hotspot;
  24 
  25 import java.lang.invoke.CallSite;
  26 import java.util.Objects;
  27 
  28 import jdk.vm.ci.meta.Assumptions;
  29 import jdk.vm.ci.meta.JavaConstant;
  30 import jdk.vm.ci.meta.ResolvedJavaType;
  31 import jdk.vm.ci.meta.VMConstant;
  32 
  33 /**
  34  * Represents a constant non-{@code null} object reference, within the compiler and across the
  35  * compiler/runtime interface.
  36  */
  37 public interface HotSpotObjectConstant extends JavaConstant, HotSpotConstant, VMConstant {
  38 
  39     JavaConstant compress();
  40 
  41     JavaConstant uncompress();
  42 
  43     /**
  44      * Gets the resolved Java type of the object represented by this constant.
  45      */
  46     HotSpotResolvedObjectType getType();
  47 
  48     /**
  49      * Gets the result of {@link Class#getClassLoader()} for the {@link Class} object represented by
  50      * this constant.
  51      *


< prev index next >