< prev index next >

src/cpu/sparc/vm/c1_Runtime1_sparc.cpp

Print this page




  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  */
  24 
  25 #include "precompiled.hpp"
  26 #include "c1/c1_Defs.hpp"
  27 #include "c1/c1_MacroAssembler.hpp"
  28 #include "c1/c1_Runtime1.hpp"
  29 #include "interpreter/interpreter.hpp"
  30 #include "nativeInst_sparc.hpp"
  31 #include "oops/compiledICHolder.hpp"
  32 #include "oops/oop.inline.hpp"
  33 #include "prims/jvmtiExport.hpp"
  34 #include "runtime/sharedRuntime.hpp"
  35 #include "runtime/signature.hpp"
  36 #include "runtime/vframeArray.hpp"
  37 #include "utilities/macros.hpp"

  38 #include "vmreg_sparc.inline.hpp"
  39 #if INCLUDE_ALL_GCS
  40 #include "gc/g1/g1SATBCardTableModRefBS.hpp"
  41 #endif
  42 
  43 // Implementation of StubAssembler
  44 
  45 int StubAssembler::call_RT(Register oop_result1, Register metadata_result, address entry_point, int number_of_arguments) {
  46   // for sparc changing the number of arguments doesn't change
  47   // anything about the frame size so we'll always lie and claim that
  48   // we are only passing 1 argument.
  49   set_num_rt_args(1);
  50 
  51   assert_not_delayed();
  52   // bang stack before going to runtime
  53   set(-os::vm_page_size() + STACK_BIAS, G3_scratch);
  54   st(G0, SP, G3_scratch);
  55 
  56   // debugging support
  57   assert(number_of_arguments >= 0   , "cannot have negative number of arguments");




  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  */
  24 
  25 #include "precompiled.hpp"
  26 #include "c1/c1_Defs.hpp"
  27 #include "c1/c1_MacroAssembler.hpp"
  28 #include "c1/c1_Runtime1.hpp"
  29 #include "interpreter/interpreter.hpp"
  30 #include "nativeInst_sparc.hpp"
  31 #include "oops/compiledICHolder.hpp"
  32 #include "oops/oop.inline.hpp"
  33 #include "prims/jvmtiExport.hpp"
  34 #include "runtime/sharedRuntime.hpp"
  35 #include "runtime/signature.hpp"
  36 #include "runtime/vframeArray.hpp"
  37 #include "utilities/macros.hpp"
  38 #include "utilities/align.hpp"
  39 #include "vmreg_sparc.inline.hpp"
  40 #if INCLUDE_ALL_GCS
  41 #include "gc/g1/g1SATBCardTableModRefBS.hpp"
  42 #endif
  43 
  44 // Implementation of StubAssembler
  45 
  46 int StubAssembler::call_RT(Register oop_result1, Register metadata_result, address entry_point, int number_of_arguments) {
  47   // for sparc changing the number of arguments doesn't change
  48   // anything about the frame size so we'll always lie and claim that
  49   // we are only passing 1 argument.
  50   set_num_rt_args(1);
  51 
  52   assert_not_delayed();
  53   // bang stack before going to runtime
  54   set(-os::vm_page_size() + STACK_BIAS, G3_scratch);
  55   st(G0, SP, G3_scratch);
  56 
  57   // debugging support
  58   assert(number_of_arguments >= 0   , "cannot have negative number of arguments");


< prev index next >