< prev index next >

src/cpu/zero/vm/cppInterpreter_zero.cpp

Print this page
@  rev 7195 : 8076460: Zero fastdebug build does not compile.
|


 713   istate->set_locals(locals);
 714   istate->set_method(method);
 715   istate->set_self_link(istate);
 716   istate->set_prev_link(NULL);
 717   istate->set_thread(thread);
 718   istate->set_bcp(method->is_native() ? NULL : method->code_base());
 719   istate->set_constants(method->constants()->cache());
 720   istate->set_msg(BytecodeInterpreter::method_entry);
 721   istate->set_oop_temp(NULL);
 722   istate->set_mdx(NULL);
 723   istate->set_callee(NULL);
 724 
 725   istate->set_monitor_base((BasicObjectLock *) stack->sp());
 726   if (method->is_synchronized()) {
 727     BasicObjectLock *monitor =
 728       (BasicObjectLock *) stack->alloc(monitor_words * wordSize);
 729     oop object;
 730     if (method->is_static())
 731       object = method->constants()->pool_holder()->java_mirror();
 732     else
 733       object = (oop) locals[0];
 734     monitor->set_obj(object);
 735   }
 736 
 737   istate->set_stack_base(stack->sp());
 738   istate->set_stack(stack->sp() - 1);
 739   if (stack_words)
 740     stack->alloc(stack_words * wordSize);
 741   istate->set_stack_limit(stack->sp() - 1);
 742 
 743   return (InterpreterFrame *) fp;
 744 }
 745 
 746 int AbstractInterpreter::BasicType_as_index(BasicType type) {
 747   int i = 0;
 748   switch (type) {
 749     case T_BOOLEAN: i = 0; break;
 750     case T_CHAR   : i = 1; break;
 751     case T_BYTE   : i = 2; break;
 752     case T_SHORT  : i = 3; break;
 753     case T_INT    : i = 4; break;




 713   istate->set_locals(locals);
 714   istate->set_method(method);
 715   istate->set_self_link(istate);
 716   istate->set_prev_link(NULL);
 717   istate->set_thread(thread);
 718   istate->set_bcp(method->is_native() ? NULL : method->code_base());
 719   istate->set_constants(method->constants()->cache());
 720   istate->set_msg(BytecodeInterpreter::method_entry);
 721   istate->set_oop_temp(NULL);
 722   istate->set_mdx(NULL);
 723   istate->set_callee(NULL);
 724 
 725   istate->set_monitor_base((BasicObjectLock *) stack->sp());
 726   if (method->is_synchronized()) {
 727     BasicObjectLock *monitor =
 728       (BasicObjectLock *) stack->alloc(monitor_words * wordSize);
 729     oop object;
 730     if (method->is_static())
 731       object = method->constants()->pool_holder()->java_mirror();
 732     else
 733       object = (oop) (void*)locals[0];
 734     monitor->set_obj(object);
 735   }
 736 
 737   istate->set_stack_base(stack->sp());
 738   istate->set_stack(stack->sp() - 1);
 739   if (stack_words)
 740     stack->alloc(stack_words * wordSize);
 741   istate->set_stack_limit(stack->sp() - 1);
 742 
 743   return (InterpreterFrame *) fp;
 744 }
 745 
 746 int AbstractInterpreter::BasicType_as_index(BasicType type) {
 747   int i = 0;
 748   switch (type) {
 749     case T_BOOLEAN: i = 0; break;
 750     case T_CHAR   : i = 1; break;
 751     case T_BYTE   : i = 2; break;
 752     case T_SHORT  : i = 3; break;
 753     case T_INT    : i = 4; break;


< prev index next >