src/cpu/sparc/vm/interp_masm_sparc.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File 6919934 Sdiff src/cpu/sparc/vm

src/cpu/sparc/vm/interp_masm_sparc.hpp

Print this page


   1 /*
   2  * Copyright 1997-2007 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  *


 104   // want to skip throwing an exception and installing an exception.
 105   void remove_activation(TosState state,
 106                          bool throw_monitor_exception = true,
 107                          bool install_monitor_exception = true);
 108 
 109  protected:
 110   void dispatch_Lbyte_code(TosState state, address* table, int bcp_incr = 0, bool verify = true);
 111 #endif /* CC_INTERP */
 112 
 113  public:
 114   // Super call_VM calls - correspond to MacroAssembler::call_VM(_leaf) calls
 115   void super_call_VM(Register thread_cache,
 116                      Register oop_result,
 117                      Register last_java_sp,
 118                      address entry_point,
 119                      Register arg_1,
 120                      Register arg_2,
 121                      bool check_exception = true);
 122 
 123 #ifndef CC_INTERP
 124   void super_call_VM_leaf(Register thread_cache, address entry_point, Register arg_1);
 125 
 126   // Generate a subtype check: branch to ok_is_subtype if sub_klass is
 127   // a subtype of super_klass.  Blows registers tmp1, tmp2 and tmp3.
 128   void gen_subtype_check( Register sub_klass, Register super_klass, Register tmp1, Register tmp2, Register tmp3, Label &ok_is_subtype );
 129 
 130   // helpers for tossing exceptions
 131   void throw_if_not_1_icc( Condition ok_condition, Label& ok );
 132   void throw_if_not_1_xcc( Condition ok_condition, Label& ok );
 133   void throw_if_not_1_x  ( Condition ok_condition, Label& ok ); // chooses icc or xcc based on _LP64
 134 
 135   void throw_if_not_2( address throw_entry_point, Register Rscratch, Label& ok);
 136 
 137   void throw_if_not_icc( Condition ok_condition, address throw_entry_point, Register Rscratch );
 138   void throw_if_not_xcc( Condition ok_condition, address throw_entry_point, Register Rscratch );
 139   void throw_if_not_x  ( Condition ok_condition, address throw_entry_point, Register Rscratch );
 140 
 141   // helpers for expression stack
 142 
 143   void pop_i(     Register r = Otos_i);
 144   void pop_ptr(   Register r = Otos_i, Register scratch = O4);


   1 /*
   2  * Copyright 1997-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  *


 104   // want to skip throwing an exception and installing an exception.
 105   void remove_activation(TosState state,
 106                          bool throw_monitor_exception = true,
 107                          bool install_monitor_exception = true);
 108 
 109  protected:
 110   void dispatch_Lbyte_code(TosState state, address* table, int bcp_incr = 0, bool verify = true);
 111 #endif /* CC_INTERP */
 112 
 113  public:
 114   // Super call_VM calls - correspond to MacroAssembler::call_VM(_leaf) calls
 115   void super_call_VM(Register thread_cache,
 116                      Register oop_result,
 117                      Register last_java_sp,
 118                      address entry_point,
 119                      Register arg_1,
 120                      Register arg_2,
 121                      bool check_exception = true);
 122 
 123 #ifndef CC_INTERP
 124   void super_call_VM_leaf(Register thread_cache, address entry_point, Register arg_1, Register arg_2);
 125 
 126   // Generate a subtype check: branch to ok_is_subtype if sub_klass is
 127   // a subtype of super_klass.  Blows registers tmp1, tmp2 and tmp3.
 128   void gen_subtype_check( Register sub_klass, Register super_klass, Register tmp1, Register tmp2, Register tmp3, Label &ok_is_subtype );
 129 
 130   // helpers for tossing exceptions
 131   void throw_if_not_1_icc( Condition ok_condition, Label& ok );
 132   void throw_if_not_1_xcc( Condition ok_condition, Label& ok );
 133   void throw_if_not_1_x  ( Condition ok_condition, Label& ok ); // chooses icc or xcc based on _LP64
 134 
 135   void throw_if_not_2( address throw_entry_point, Register Rscratch, Label& ok);
 136 
 137   void throw_if_not_icc( Condition ok_condition, address throw_entry_point, Register Rscratch );
 138   void throw_if_not_xcc( Condition ok_condition, address throw_entry_point, Register Rscratch );
 139   void throw_if_not_x  ( Condition ok_condition, address throw_entry_point, Register Rscratch );
 140 
 141   // helpers for expression stack
 142 
 143   void pop_i(     Register r = Otos_i);
 144   void pop_ptr(   Register r = Otos_i, Register scratch = O4);


src/cpu/sparc/vm/interp_masm_sparc.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File