< prev index next >

src/share/vm/c1/c1_FrameMap.cpp

Print this page




  24 
  25 #include "precompiled.hpp"
  26 #include "c1/c1_FrameMap.hpp"
  27 #include "c1/c1_LIR.hpp"
  28 #include "runtime/sharedRuntime.hpp"
  29 #ifdef TARGET_ARCH_x86
  30 # include "vmreg_x86.inline.hpp"
  31 #endif
  32 #ifdef TARGET_ARCH_sparc
  33 # include "vmreg_sparc.inline.hpp"
  34 #endif
  35 #ifdef TARGET_ARCH_zero
  36 # include "vmreg_zero.inline.hpp"
  37 #endif
  38 #ifdef TARGET_ARCH_arm
  39 # include "vmreg_arm.inline.hpp"
  40 #endif
  41 #ifdef TARGET_ARCH_ppc
  42 # include "vmreg_ppc.inline.hpp"
  43 #endif



  44 
  45 
  46 
  47 //-----------------------------------------------------
  48 
  49 // Convert method signature into an array of BasicTypes for the arguments
  50 BasicTypeArray* FrameMap::signature_type_array_for(const ciMethod* method) {
  51   ciSignature* sig = method->signature();
  52   BasicTypeList* sta = new BasicTypeList(method->arg_size());
  53   // add receiver, if any
  54   if (!method->is_static()) sta->append(T_OBJECT);
  55   // add remaining arguments
  56   for (int i = 0; i < sig->count(); i++) {
  57     ciType* type = sig->type_at(i);
  58     BasicType t = type->basic_type();
  59     if (t == T_ARRAY) {
  60       t = T_OBJECT;
  61     }
  62     sta->append(t);
  63   }




  24 
  25 #include "precompiled.hpp"
  26 #include "c1/c1_FrameMap.hpp"
  27 #include "c1/c1_LIR.hpp"
  28 #include "runtime/sharedRuntime.hpp"
  29 #ifdef TARGET_ARCH_x86
  30 # include "vmreg_x86.inline.hpp"
  31 #endif
  32 #ifdef TARGET_ARCH_sparc
  33 # include "vmreg_sparc.inline.hpp"
  34 #endif
  35 #ifdef TARGET_ARCH_zero
  36 # include "vmreg_zero.inline.hpp"
  37 #endif
  38 #ifdef TARGET_ARCH_arm
  39 # include "vmreg_arm.inline.hpp"
  40 #endif
  41 #ifdef TARGET_ARCH_ppc
  42 # include "vmreg_ppc.inline.hpp"
  43 #endif
  44 #ifdef TARGET_ARCH_aarch32
  45 # include "vmreg_aarch32.inline.hpp"
  46 #endif
  47 
  48 
  49 
  50 //-----------------------------------------------------
  51 
  52 // Convert method signature into an array of BasicTypes for the arguments
  53 BasicTypeArray* FrameMap::signature_type_array_for(const ciMethod* method) {
  54   ciSignature* sig = method->signature();
  55   BasicTypeList* sta = new BasicTypeList(method->arg_size());
  56   // add receiver, if any
  57   if (!method->is_static()) sta->append(T_OBJECT);
  58   // add remaining arguments
  59   for (int i = 0; i < sig->count(); i++) {
  60     ciType* type = sig->type_at(i);
  61     BasicType t = type->basic_type();
  62     if (t == T_ARRAY) {
  63       t = T_OBJECT;
  64     }
  65     sta->append(t);
  66   }


< prev index next >