hotspot/src/cpu/ppc/vm/templateInterpreter_ppc.cpp
changeset 35232 76aed99c0ddd
parent 35214 d86005e0b4c2
parent 35135 dd2ce9021031
child 35594 cc13089c6327
equal deleted inserted replaced
35231:e89989198037 35232:76aed99c0ddd
   137   const int abi_scratch = is_top_frame ? (frame::abi_reg_args_size / Interpreter::stackElementSize) :
   137   const int abi_scratch = is_top_frame ? (frame::abi_reg_args_size / Interpreter::stackElementSize) :
   138                                          (frame::abi_minframe_size / Interpreter::stackElementSize);
   138                                          (frame::abi_minframe_size / Interpreter::stackElementSize);
   139 
   139 
   140   intptr_t* locals_base  = (caller->is_interpreted_frame()) ?
   140   intptr_t* locals_base  = (caller->is_interpreted_frame()) ?
   141     caller->interpreter_frame_esp() + caller_actual_parameters :
   141     caller->interpreter_frame_esp() + caller_actual_parameters :
   142     caller->sp() + method->max_locals() - 1 + (frame::abi_minframe_size / Interpreter::stackElementSize) ;
   142     caller->sp() + method->max_locals() - 1 + (frame::abi_minframe_size / Interpreter::stackElementSize);
   143 
   143 
   144   intptr_t* monitor_base = caller->sp() - frame::ijava_state_size / Interpreter::stackElementSize ;
   144   intptr_t* monitor_base = caller->sp() - frame::ijava_state_size / Interpreter::stackElementSize;
   145   intptr_t* monitor      = monitor_base - (moncount * frame::interpreter_frame_monitor_size());
   145   intptr_t* monitor      = monitor_base - (moncount * frame::interpreter_frame_monitor_size());
   146   intptr_t* esp_base     = monitor - 1;
   146   intptr_t* esp_base     = monitor - 1;
   147   intptr_t* esp          = esp_base - tempcount - popframe_extra_args;
   147   intptr_t* esp          = esp_base - tempcount - popframe_extra_args;
   148   intptr_t* sp           = (intptr_t *) (((intptr_t) (esp_base - callee_locals_count + callee_param_count - method->max_stack()- abi_scratch)) & -StackAlignmentInBytes);
   148   intptr_t* sp           = (intptr_t *) (((intptr_t) (esp_base - callee_locals_count + callee_param_count - method->max_stack()- abi_scratch)) & -StackAlignmentInBytes);
   149   intptr_t* sender_sp    = caller->sp() + (frame::abi_minframe_size - frame::abi_reg_args_size) / Interpreter::stackElementSize;
   149   intptr_t* sender_sp    = caller->sp() + (frame::abi_minframe_size - frame::abi_reg_args_size) / Interpreter::stackElementSize;