< prev index next >

src/share/vm/interpreter/abstractInterpreter.hpp

Print this page
rev 12048 : 8166560: [s390] Basic enablement of s390 port.


 202 
 203   // Support for native calls
 204   static address    slow_signature_handler()                    { return _slow_signature_handler; }
 205   static address    result_handler(BasicType type)              { return _native_abi_to_tosca[BasicType_as_index(type)]; }
 206   static int        BasicType_as_index(BasicType type);         // computes index into result_handler_by_index table
 207   static bool       in_native_entry(address pc)                 { return _native_entry_begin <= pc && pc < _native_entry_end; }
 208   // Debugging/printing
 209   static void       print();                                    // prints the interpreter code
 210 
 211  public:
 212   // Interpreter helpers
 213   const static int stackElementWords   = 1;
 214   const static int stackElementSize    = stackElementWords * wordSize;
 215   const static int logStackElementSize = LogBytesPerWord;
 216 
 217   static int expr_index_at(int i) {
 218     return stackElementWords * i;
 219   }
 220 
 221   static int expr_offset_in_bytes(int i) {
 222 #if !defined(ZERO) && (defined(PPC) || defined(SPARC))
 223     return stackElementSize * i + wordSize;  // both point to one word past TOS
 224 #else
 225     return stackElementSize * i;
 226 #endif
 227   }
 228 
 229   static int local_index_at(int i) {
 230     assert(i <= 0, "local direction already negated");
 231     return stackElementWords * i;
 232   }
 233 
 234 #if !defined(ZERO) && (defined(IA32) || defined(AMD64))
 235   static Address::ScaleFactor stackElementScale() {
 236     return NOT_LP64(Address::times_4) LP64_ONLY(Address::times_8);
 237   }
 238 #endif
 239 
 240   // Local values relative to locals[n]
 241   static int  local_offset_in_bytes(int n) {
 242     return ((frame::interpreter_frame_expression_stack_direction() * n) * stackElementSize);




 202 
 203   // Support for native calls
 204   static address    slow_signature_handler()                    { return _slow_signature_handler; }
 205   static address    result_handler(BasicType type)              { return _native_abi_to_tosca[BasicType_as_index(type)]; }
 206   static int        BasicType_as_index(BasicType type);         // computes index into result_handler_by_index table
 207   static bool       in_native_entry(address pc)                 { return _native_entry_begin <= pc && pc < _native_entry_end; }
 208   // Debugging/printing
 209   static void       print();                                    // prints the interpreter code
 210 
 211  public:
 212   // Interpreter helpers
 213   const static int stackElementWords   = 1;
 214   const static int stackElementSize    = stackElementWords * wordSize;
 215   const static int logStackElementSize = LogBytesPerWord;
 216 
 217   static int expr_index_at(int i) {
 218     return stackElementWords * i;
 219   }
 220 
 221   static int expr_offset_in_bytes(int i) {
 222 #if !defined(ZERO) && (defined(PPC) || defined(S390) || defined(SPARC))
 223     return stackElementSize * i + wordSize;  // both point to one word past TOS
 224 #else
 225     return stackElementSize * i;
 226 #endif
 227   }
 228 
 229   static int local_index_at(int i) {
 230     assert(i <= 0, "local direction already negated");
 231     return stackElementWords * i;
 232   }
 233 
 234 #if !defined(ZERO) && (defined(IA32) || defined(AMD64))
 235   static Address::ScaleFactor stackElementScale() {
 236     return NOT_LP64(Address::times_4) LP64_ONLY(Address::times_8);
 237   }
 238 #endif
 239 
 240   // Local values relative to locals[n]
 241   static int  local_offset_in_bytes(int n) {
 242     return ((frame::interpreter_frame_expression_stack_direction() * n) * stackElementSize);


< prev index next >