Lines Matching refs:stack
78 // No deoptimized frames on the stack
84 ZeroStack *stack = thread->zero_stack();
119 // Trim back the stack to put the parameters at the top
120 stack->set_sp(istate->stack() + 1);
127 istate->set_stack(stack->sp() - 1);
129 // Restore the stack
130 stack->set_sp(istate->stack_limit() + 1);
139 stack->overflow_check(monitor_words, THREAD);
142 stack->alloc(monitor_words * wordSize);
144 // Move the expression stack contents
145 for (intptr_t *p = istate->stack() + 1; p < istate->stack_base(); p++)
148 // Move the expression stack pointers
150 istate->set_stack(istate->stack() - monitor_words);
163 result = istate->stack() + result_slots;
176 stack->set_sp(stack->sp() + extra_locals);
192 stack->set_sp(stack->sp() + method->max_locals());
196 stack->push(result[-i]);
204 ZeroStack *stack = thread->zero_stack();
272 stack->overflow_check(handler->argument_count() * 2, THREAD);
279 (void **) stack->alloc(handler->argument_count() * sizeof(void **));
297 stack->push((intptr_t) src);
298 *(dst++) = stack->sp();
397 stack->set_sp(stack->sp() + method->size_of_parameters());
402 stack->set_sp(stack->sp() - type2size[type]);
465 // No deoptimized frames on the stack
471 ZeroStack *stack = thread->zero_stack();
472 intptr_t *locals = stack->sp();
508 // Get the result and push it onto the stack
512 stack->overflow_check(1, CHECK_0);
513 stack->alloc(wordSize);
593 // No deoptimized frames on the stack
599 ZeroStack *stack = thread->zero_stack();
607 stack->set_sp(stack->sp() + method->size_of_parameters());
609 // No deoptimized frames on the stack
618 ZeroStack *stack = thread->zero_stack();
621 stack->overflow_check(num_slots, CHECK);
622 stack->alloc(num_slots * wordSize);
623 intptr_t *vmslots = stack->sp();
632 ZeroStack *stack = thread->zero_stack();
633 intptr_t *vmslots = stack->sp();
640 stack->set_sp(stack->sp() + num_slots);
649 intptr_t* CppInterpreter::calculate_unwind_sp(ZeroStack* stack,
654 return stack->sp() + argument_slots;
665 ZeroStack *stack = thread->zero_stack();
680 stack->overflow_check(
683 // Adjust the caller's stack frame to accomodate any additional
686 stack->push(0);
690 locals = stack->sp() + (method->size_of_parameters() - 1);
692 locals = stack->sp() + (method->max_locals() - 1);
694 stack->push(0); // next_frame, filled in later
695 intptr_t *fp = stack->sp();
696 assert(fp - stack->sp() == next_frame_off, "should be");
698 stack->push(INTERPRETER_FRAME);
699 assert(fp - stack->sp() == frame_type_off, "should be");
702 (interpreterState) stack->alloc(sizeof(BytecodeInterpreter));
703 assert(fp - stack->sp() == istate_off, "should be");
717 istate->set_monitor_base((BasicObjectLock *) stack->sp());
720 (BasicObjectLock *) stack->alloc(monitor_words * wordSize);
729 istate->set_stack_base(stack->sp());
730 istate->set_stack(stack->sp() - 1);
732 stack->alloc(stack_words * wordSize);
733 istate->set_stack_limit(stack->sp() - 1);
888 ZeroStack *stack = ((JavaThread *) THREAD)->zero_stack();
893 stack->overflow_check(size_in_words, CHECK_NULL);
895 stack->push(0); // next_frame, filled in later
896 intptr_t *fp = stack->sp();
897 assert(fp - stack->sp() == next_frame_off, "should be");
899 stack->push(INTERPRETER_FRAME);
900 assert(fp - stack->sp() == frame_type_off, "should be");
903 (interpreterState) stack->alloc(sizeof(BytecodeInterpreter));
904 assert(fp - stack->sp() == istate_off, "should be");
907 stack->alloc((size_in_words - header_words) * wordSize);
936 // stack. For top most frames we will allocate a full sized
937 // expression stack and not the trimmed version that non-top
950 intptr_t *stack = stack_base - tempcount - 1;
957 stack,
971 intptr_t* stack,
998 istate->set_stack(stack);
1010 // Helper for (runtime) stack overflow checks