src/share/vm/c1/c1_FrameMap.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File 6930772 Sdiff src/share/vm/c1

src/share/vm/c1/c1_FrameMap.hpp

Print this page


   1 /*
   2  * Copyright 2000-2006 Sun Microsystems, Inc.  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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  20  * CA 95054 USA or visit www.sun.com if you need additional information or
  21  * have any questions.
  22  *


 133 
 134   ByteSize sp_offset_for_slot(const int idx) const;
 135   ByteSize sp_offset_for_double_slot(const int idx) const;
 136   ByteSize sp_offset_for_spill(const int idx) const;
 137   ByteSize sp_offset_for_monitor_lock(int monitor_index) const;
 138   ByteSize sp_offset_for_monitor_object(int monitor_index) const;
 139 
 140   VMReg sp_offset2vmreg(ByteSize offset) const;
 141 
 142   // platform dependent hook used to check that frame is properly
 143   // addressable on the platform.  Used by sparc to verify that all
 144   // stack addresses are expressable in a simm13.
 145   bool validate_frame();
 146 
 147   static LIR_Opr map_to_opr(BasicType type, VMRegPair* reg, bool incoming);
 148 
 149  public:
 150   // Opr representing the stack_pointer on this platform
 151   static LIR_Opr stack_pointer();
 152 



 153   static BasicTypeArray*     signature_type_array_for(const ciMethod* method);
 154   static BasicTypeArray*     signature_type_array_for(const char * signature);
 155 
 156   // for outgoing calls, these also update the reserved area to
 157   // include space for arguments and any ABI area.
 158   CallingConvention* c_calling_convention (const BasicTypeArray* signature);
 159   CallingConvention* java_calling_convention (const BasicTypeArray* signature, bool outgoing);
 160 
 161   // deopt support
 162   ByteSize sp_offset_for_orig_pc() { return sp_offset_for_monitor_base(_num_monitors); }
 163 
 164   static LIR_Opr as_opr(Register r) {
 165     return LIR_OprFact::single_cpu(cpu_reg2rnr(r));
 166   }
 167   static LIR_Opr as_oop_opr(Register r) {
 168     return LIR_OprFact::single_cpu_oop(cpu_reg2rnr(r));
 169   }
 170 
 171   FrameMap(ciMethod* method, int monitors, int reserved_argument_area_size);
 172   bool finalize_frame(int nof_slots);


   1 /*
   2  * Copyright 2000-2010 Sun Microsystems, Inc.  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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  20  * CA 95054 USA or visit www.sun.com if you need additional information or
  21  * have any questions.
  22  *


 133 
 134   ByteSize sp_offset_for_slot(const int idx) const;
 135   ByteSize sp_offset_for_double_slot(const int idx) const;
 136   ByteSize sp_offset_for_spill(const int idx) const;
 137   ByteSize sp_offset_for_monitor_lock(int monitor_index) const;
 138   ByteSize sp_offset_for_monitor_object(int monitor_index) const;
 139 
 140   VMReg sp_offset2vmreg(ByteSize offset) const;
 141 
 142   // platform dependent hook used to check that frame is properly
 143   // addressable on the platform.  Used by sparc to verify that all
 144   // stack addresses are expressable in a simm13.
 145   bool validate_frame();
 146 
 147   static LIR_Opr map_to_opr(BasicType type, VMRegPair* reg, bool incoming);
 148 
 149  public:
 150   // Opr representing the stack_pointer on this platform
 151   static LIR_Opr stack_pointer();
 152 
 153   // JSR 292
 154   static LIR_Opr method_handle_invoke_SP_save_opr();
 155 
 156   static BasicTypeArray*     signature_type_array_for(const ciMethod* method);
 157   static BasicTypeArray*     signature_type_array_for(const char * signature);
 158 
 159   // for outgoing calls, these also update the reserved area to
 160   // include space for arguments and any ABI area.
 161   CallingConvention* c_calling_convention (const BasicTypeArray* signature);
 162   CallingConvention* java_calling_convention (const BasicTypeArray* signature, bool outgoing);
 163 
 164   // deopt support
 165   ByteSize sp_offset_for_orig_pc() { return sp_offset_for_monitor_base(_num_monitors); }
 166 
 167   static LIR_Opr as_opr(Register r) {
 168     return LIR_OprFact::single_cpu(cpu_reg2rnr(r));
 169   }
 170   static LIR_Opr as_oop_opr(Register r) {
 171     return LIR_OprFact::single_cpu_oop(cpu_reg2rnr(r));
 172   }
 173 
 174   FrameMap(ciMethod* method, int monitors, int reserved_argument_area_size);
 175   bool finalize_frame(int nof_slots);


src/share/vm/c1/c1_FrameMap.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File