@@ -697,56 +697,6 @@ int ZeroInterpreter::empty_entry(Method* method, intptr_t UNUSED, TRAPS) {
697
697
return 0 ;
698
698
}
699
699
700
- // The new slots will be inserted before slot insert_before.
701
- // Slots < insert_before will have the same slot number after the insert.
702
- // Slots >= insert_before will become old_slot + num_slots.
703
- void ZeroInterpreter::insert_vmslots (int insert_before, int num_slots, TRAPS) {
704
- JavaThread *thread = THREAD->as_Java_thread ();
705
- ZeroStack *stack = thread->zero_stack ();
706
-
707
- // Allocate the space
708
- stack->overflow_check (num_slots, CHECK);
709
- stack->alloc (num_slots * wordSize);
710
- intptr_t *vmslots = stack->sp ();
711
-
712
- // Shuffle everything up
713
- for (int i = 0 ; i < insert_before; i++)
714
- SET_VMSLOTS_SLOT (VMSLOTS_SLOT (i + num_slots), i);
715
- }
716
-
717
- void ZeroInterpreter::remove_vmslots (int first_slot, int num_slots, TRAPS) {
718
- JavaThread *thread = THREAD->as_Java_thread ();
719
- ZeroStack *stack = thread->zero_stack ();
720
- intptr_t *vmslots = stack->sp ();
721
-
722
- // Move everything down
723
- for (int i = first_slot - 1 ; i >= 0 ; i--)
724
- SET_VMSLOTS_SLOT (VMSLOTS_SLOT (i), i + num_slots);
725
-
726
- // Deallocate the space
727
- stack->set_sp (stack->sp () + num_slots);
728
- }
729
-
730
- BasicType ZeroInterpreter::result_type_of_handle (oop method_handle) {
731
- oop method_type = java_lang_invoke_MethodHandle::type (method_handle);
732
- oop return_type = java_lang_invoke_MethodType::rtype (method_type);
733
- return java_lang_Class::as_BasicType (return_type, (Klass* *) NULL );
734
- }
735
-
736
- intptr_t * ZeroInterpreter::calculate_unwind_sp (ZeroStack* stack,
737
- oop method_handle) {
738
- oop method_type = java_lang_invoke_MethodHandle::type (method_handle);
739
- int argument_slots = java_lang_invoke_MethodType::ptype_slot_count (method_type);
740
-
741
- return stack->sp () + argument_slots;
742
- }
743
-
744
- JRT_ENTRY (void , ZeroInterpreter::throw_exception(JavaThread* thread,
745
- Symbol* name,
746
- char * message))
747
- THROW_MSG(name, message);
748
- JRT_END
749
-
750
700
InterpreterFrame *InterpreterFrame::build (Method* const method, TRAPS) {
751
701
JavaThread *thread = THREAD->as_Java_thread ();
752
702
ZeroStack *stack = thread->zero_stack ();
0 commit comments