< prev index next >

src/hotspot/cpu/aarch64/abstractInterpreter_aarch64.cpp

Print this page

 31 #include "runtime/frame.inline.hpp"
 32 #include "utilities/align.hpp"
 33 #include "utilities/debug.hpp"
 34 #include "utilities/macros.hpp"
 35 
 36 
 37 int AbstractInterpreter::BasicType_as_index(BasicType type) {
 38   int i = 0;
 39   switch (type) {
 40     case T_BOOLEAN: i = 0; break;
 41     case T_CHAR   : i = 1; break;
 42     case T_BYTE   : i = 2; break;
 43     case T_SHORT  : i = 3; break;
 44     case T_INT    : i = 4; break;
 45     case T_LONG   : i = 5; break;
 46     case T_VOID   : i = 6; break;
 47     case T_FLOAT  : i = 7; break;
 48     case T_DOUBLE : i = 8; break;
 49     case T_OBJECT : i = 9; break;
 50     case T_ARRAY  : i = 9; break;

 51     default       : ShouldNotReachHere();
 52   }
 53   assert(0 <= i && i < AbstractInterpreter::number_of_result_handlers,
 54          "index out of bounds");
 55   return i;
 56 }
 57 
 58 // How much stack a method activation needs in words.
 59 int AbstractInterpreter::size_top_interpreter_activation(Method* method) {
 60   const int entry_size = frame::interpreter_frame_monitor_size();
 61 
 62   // total overhead size: entry_size + (saved rfp thru expr stack
 63   // bottom).  be sure to change this if you add/subtract anything
 64   // to/from the overhead area
 65   const int overhead_size =
 66     -(frame::interpreter_frame_initial_sp_offset) + entry_size;
 67 
 68   const int stub_code = frame::entry_frame_after_call_words;
 69   const int method_stack = (method->max_locals() + method->max_stack()) *
 70                            Interpreter::stackElementWords;

 31 #include "runtime/frame.inline.hpp"
 32 #include "utilities/align.hpp"
 33 #include "utilities/debug.hpp"
 34 #include "utilities/macros.hpp"
 35 
 36 
 37 int AbstractInterpreter::BasicType_as_index(BasicType type) {
 38   int i = 0;
 39   switch (type) {
 40     case T_BOOLEAN: i = 0; break;
 41     case T_CHAR   : i = 1; break;
 42     case T_BYTE   : i = 2; break;
 43     case T_SHORT  : i = 3; break;
 44     case T_INT    : i = 4; break;
 45     case T_LONG   : i = 5; break;
 46     case T_VOID   : i = 6; break;
 47     case T_FLOAT  : i = 7; break;
 48     case T_DOUBLE : i = 8; break;
 49     case T_OBJECT : i = 9; break;
 50     case T_ARRAY  : i = 9; break;
 51     case T_INLINE_TYPE : i = 10; break;
 52     default       : ShouldNotReachHere();
 53   }
 54   assert(0 <= i && i < AbstractInterpreter::number_of_result_handlers,
 55          "index out of bounds");
 56   return i;
 57 }
 58 
 59 // How much stack a method activation needs in words.
 60 int AbstractInterpreter::size_top_interpreter_activation(Method* method) {
 61   const int entry_size = frame::interpreter_frame_monitor_size();
 62 
 63   // total overhead size: entry_size + (saved rfp thru expr stack
 64   // bottom).  be sure to change this if you add/subtract anything
 65   // to/from the overhead area
 66   const int overhead_size =
 67     -(frame::interpreter_frame_initial_sp_offset) + entry_size;
 68 
 69   const int stub_code = frame::entry_frame_after_call_words;
 70   const int method_stack = (method->max_locals() + method->max_stack()) *
 71                            Interpreter::stackElementWords;
< prev index next >