< prev index next >

hotspot/src/share/vm/c1/c1_LIR.hpp

Print this page
rev 10453 : imported patch update dates
   1 /*
   2  * Copyright (c) 2000, 2015, 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  *


  42 class LIR_OpVisitState;
  43 class FpuStackSim;
  44 
  45 //---------------------------------------------------------------------
  46 //                 LIR Operands
  47 //  LIR_OprDesc
  48 //    LIR_OprPtr
  49 //      LIR_Const
  50 //      LIR_Address
  51 //---------------------------------------------------------------------
  52 class LIR_OprDesc;
  53 class LIR_OprPtr;
  54 class LIR_Const;
  55 class LIR_Address;
  56 class LIR_OprVisitor;
  57 
  58 
  59 typedef LIR_OprDesc* LIR_Opr;
  60 typedef int          RegNr;
  61 
  62 define_array(LIR_OprArray, LIR_Opr)
  63 define_stack(LIR_OprList, LIR_OprArray)
  64 
  65 define_array(LIR_OprRefArray, LIR_Opr*)
  66 define_stack(LIR_OprRefList, LIR_OprRefArray)
  67 
  68 define_array(CodeEmitInfoArray, CodeEmitInfo*)
  69 define_stack(CodeEmitInfoList, CodeEmitInfoArray)
  70 
  71 define_array(LIR_OpArray, LIR_Op*)
  72 define_stack(LIR_OpList, LIR_OpArray)
  73 
  74 // define LIR_OprPtr early so LIR_OprDesc can refer to it
  75 class LIR_OprPtr: public CompilationResourceObj {
  76  public:
  77   bool is_oop_pointer() const                    { return (type() == T_OBJECT); }
  78   bool is_float_kind() const                     { BasicType t = type(); return (t == T_FLOAT) || (t == T_DOUBLE); }
  79 
  80   virtual LIR_Const*  as_constant()              { return NULL; }
  81   virtual LIR_Address* as_address()              { return NULL; }
  82   virtual BasicType type() const                 = 0;
  83   virtual void print_value_on(outputStream* out) const = 0;
  84 };
  85 
  86 
  87 
  88 // LIR constants
  89 class LIR_Const: public LIR_OprPtr {
  90  private:
  91   JavaValue _value;
  92 


   1 /*
   2  * Copyright (c) 2000, 2016, 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  *


  42 class LIR_OpVisitState;
  43 class FpuStackSim;
  44 
  45 //---------------------------------------------------------------------
  46 //                 LIR Operands
  47 //  LIR_OprDesc
  48 //    LIR_OprPtr
  49 //      LIR_Const
  50 //      LIR_Address
  51 //---------------------------------------------------------------------
  52 class LIR_OprDesc;
  53 class LIR_OprPtr;
  54 class LIR_Const;
  55 class LIR_Address;
  56 class LIR_OprVisitor;
  57 
  58 
  59 typedef LIR_OprDesc* LIR_Opr;
  60 typedef int          RegNr;
  61 
  62 typedef GrowableArray<LIR_Opr> LIR_OprList;
  63 typedef GrowableArray<LIR_Op*> LIR_OpArray;
  64 typedef GrowableArray<LIR_Op*> LIR_OpList;








  65 
  66 // define LIR_OprPtr early so LIR_OprDesc can refer to it
  67 class LIR_OprPtr: public CompilationResourceObj {
  68  public:
  69   bool is_oop_pointer() const                    { return (type() == T_OBJECT); }
  70   bool is_float_kind() const                     { BasicType t = type(); return (t == T_FLOAT) || (t == T_DOUBLE); }
  71 
  72   virtual LIR_Const*  as_constant()              { return NULL; }
  73   virtual LIR_Address* as_address()              { return NULL; }
  74   virtual BasicType type() const                 = 0;
  75   virtual void print_value_on(outputStream* out) const = 0;
  76 };
  77 
  78 
  79 
  80 // LIR constants
  81 class LIR_Const: public LIR_OprPtr {
  82  private:
  83   JavaValue _value;
  84 


< prev index next >