530 // Continuation point for throwing of implicit exceptions that are
531 // not handled in the current activation. Fabricates an exception
532 // oop and initiates normal exception dispatching in this
533 // frame. Since we need to preserve callee-saved values (currently
534 // only for C2, but done for C1 as well) we need a callee-saved oop
535 // map and therefore have to make these stubs into RuntimeStubs
536 // rather than BufferBlobs. If the compiler needs all registers to
537 // be preserved between the fault point and the exception handler
538 // then it must assume responsibility for that in
539 // AbstractCompiler::continuation_for_implicit_null_exception or
540 // continuation_for_implicit_division_by_zero_exception. All other
541 // implicit exceptions (e.g., NullPointerException or
542 // AbstractMethodError on entry) are either at call sites or
543 // otherwise assume that stack unwinding will be initiated, so
544 // caller saved registers were assumed volatile in the compiler.
545 address generate_throw_exception(const char* name,
546 address runtime_entry,
547 Register arg1 = noreg,
548 Register arg2 = noreg);
549
550 void create_control_words();
551
552 // Initialization
553 void generate_initial_stubs();
554 void generate_continuation_stubs();
555 void generate_compiler_stubs();
556 void generate_final_stubs();
557
558 public:
559 StubGenerator(CodeBuffer* code, StubsKind kind);
560 };
561
562 #endif // CPU_X86_STUBGENERATOR_X86_64_HPP
|
530 // Continuation point for throwing of implicit exceptions that are
531 // not handled in the current activation. Fabricates an exception
532 // oop and initiates normal exception dispatching in this
533 // frame. Since we need to preserve callee-saved values (currently
534 // only for C2, but done for C1 as well) we need a callee-saved oop
535 // map and therefore have to make these stubs into RuntimeStubs
536 // rather than BufferBlobs. If the compiler needs all registers to
537 // be preserved between the fault point and the exception handler
538 // then it must assume responsibility for that in
539 // AbstractCompiler::continuation_for_implicit_null_exception or
540 // continuation_for_implicit_division_by_zero_exception. All other
541 // implicit exceptions (e.g., NullPointerException or
542 // AbstractMethodError on entry) are either at call sites or
543 // otherwise assume that stack unwinding will be initiated, so
544 // caller saved registers were assumed volatile in the compiler.
545 address generate_throw_exception(const char* name,
546 address runtime_entry,
547 Register arg1 = noreg,
548 Register arg2 = noreg);
549
550 // interpreter or compiled code marshalling registers to/from inline type instance
551 address generate_return_value_stub(address destination, const char* name, bool has_res);
552
553 void create_control_words();
554
555 // Initialization
556 void generate_initial_stubs();
557 void generate_continuation_stubs();
558 void generate_compiler_stubs();
559 void generate_final_stubs();
560
561 public:
562 StubGenerator(CodeBuffer* code, StubsKind kind);
563 };
564
565 #endif // CPU_X86_STUBGENERATOR_X86_64_HPP
|