< prev index next >

src/share/vm/interpreter/abstractInterpreter.hpp

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


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




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


< prev index next >