643 void set_edges_for_java_call(CallJavaNode* call,
644 bool must_throw = false, bool separate_io_proj = false);
645
646 // Finish up a java call that was started by set_edges_for_java_call.
647 // Call add_exception on any throw arising from the call.
648 // Return the call result (transformed).
649 Node* set_results_for_java_call(CallJavaNode* call, bool separate_io_proj = false);
650
651 // Similar to set_edges_for_java_call, but simplified for runtime calls.
652 void set_predefined_output_for_runtime_call(Node* call) {
653 set_predefined_output_for_runtime_call(call, NULL, NULL);
654 }
655 void set_predefined_output_for_runtime_call(Node* call,
656 Node* keep_mem,
657 const TypePtr* hook_mem);
658 Node* set_predefined_input_for_runtime_call(SafePointNode* call);
659
660 // Replace the call with the current state of the kit. Requires
661 // that the call was generated with separate io_projs so that
662 // exceptional control flow can be handled properly.
663 void replace_call(CallNode* call, Node* result);
664
665 // helper functions for statistics
666 void increment_counter(address counter_addr); // increment a debug counter
667 void increment_counter(Node* counter_addr); // increment a debug counter
668
669 // Bail out to the interpreter right now
670 // The optional klass is the one causing the trap.
671 // The optional reason is debug information written to the compile log.
672 // Optional must_throw is the same as with add_safepoint_edges.
673 void uncommon_trap(int trap_request,
674 ciKlass* klass = NULL, const char* reason_string = NULL,
675 bool must_throw = false, bool keep_exact_action = false);
676
677 // Shorthand, to avoid saying "Deoptimization::" so many times.
678 void uncommon_trap(Deoptimization::DeoptReason reason,
679 Deoptimization::DeoptAction action,
680 ciKlass* klass = NULL, const char* reason_string = NULL,
681 bool must_throw = false, bool keep_exact_action = false) {
682 uncommon_trap(Deoptimization::make_trap_request(reason, action),
683 klass, reason_string, must_throw, keep_exact_action);
|
643 void set_edges_for_java_call(CallJavaNode* call,
644 bool must_throw = false, bool separate_io_proj = false);
645
646 // Finish up a java call that was started by set_edges_for_java_call.
647 // Call add_exception on any throw arising from the call.
648 // Return the call result (transformed).
649 Node* set_results_for_java_call(CallJavaNode* call, bool separate_io_proj = false);
650
651 // Similar to set_edges_for_java_call, but simplified for runtime calls.
652 void set_predefined_output_for_runtime_call(Node* call) {
653 set_predefined_output_for_runtime_call(call, NULL, NULL);
654 }
655 void set_predefined_output_for_runtime_call(Node* call,
656 Node* keep_mem,
657 const TypePtr* hook_mem);
658 Node* set_predefined_input_for_runtime_call(SafePointNode* call);
659
660 // Replace the call with the current state of the kit. Requires
661 // that the call was generated with separate io_projs so that
662 // exceptional control flow can be handled properly.
663 void replace_call(CallNode* call, Node* result, bool do_replaced_nodes = false);
664
665 // helper functions for statistics
666 void increment_counter(address counter_addr); // increment a debug counter
667 void increment_counter(Node* counter_addr); // increment a debug counter
668
669 // Bail out to the interpreter right now
670 // The optional klass is the one causing the trap.
671 // The optional reason is debug information written to the compile log.
672 // Optional must_throw is the same as with add_safepoint_edges.
673 void uncommon_trap(int trap_request,
674 ciKlass* klass = NULL, const char* reason_string = NULL,
675 bool must_throw = false, bool keep_exact_action = false);
676
677 // Shorthand, to avoid saying "Deoptimization::" so many times.
678 void uncommon_trap(Deoptimization::DeoptReason reason,
679 Deoptimization::DeoptAction action,
680 ciKlass* klass = NULL, const char* reason_string = NULL,
681 bool must_throw = false, bool keep_exact_action = false) {
682 uncommon_trap(Deoptimization::make_trap_request(reason, action),
683 klass, reason_string, must_throw, keep_exact_action);
|