79 #include "utilities/globalDefinitions.hpp"
80 #include "utilities/resourceHash.hpp"
81 #include "utilities/macros.hpp"
82 #include "utilities/xmlstream.hpp"
83 #ifdef COMPILER1
84 #include "c1/c1_Runtime1.hpp"
85 #endif
86 #if INCLUDE_JFR
87 #include "jfr/jfr.hpp"
88 #endif
89
90 // Shared runtime stub routines reside in their own unique blob with a
91 // single entry point
92
93
94 #define SHARED_STUB_FIELD_DEFINE(name, type) \
95 type SharedRuntime::BLOB_FIELD_NAME(name);
96 SHARED_STUBS_DO(SHARED_STUB_FIELD_DEFINE)
97 #undef SHARED_STUB_FIELD_DEFINE
98
99 nmethod* SharedRuntime::_cont_doYield_stub;
100
101 #define SHARED_STUB_NAME_DECLARE(name, type) "Shared Runtime " # name "_blob",
102 const char *SharedRuntime::_stub_names[] = {
103 SHARED_STUBS_DO(SHARED_STUB_NAME_DECLARE)
104 };
105
106 //----------------------------generate_stubs-----------------------------------
107 void SharedRuntime::generate_initial_stubs() {
108 // Build this early so it's available for the interpreter.
109 _throw_StackOverflowError_blob =
110 generate_throw_exception(SharedStubId::throw_StackOverflowError_id,
111 CAST_FROM_FN_PTR(address, SharedRuntime::throw_StackOverflowError));
112 }
113
114 void SharedRuntime::generate_stubs() {
115 _wrong_method_blob =
116 generate_resolve_blob(SharedStubId::wrong_method_id,
117 CAST_FROM_FN_PTR(address, SharedRuntime::handle_wrong_method));
118 _wrong_method_abstract_blob =
119 generate_resolve_blob(SharedStubId::wrong_method_abstract_id,
120 CAST_FROM_FN_PTR(address, SharedRuntime::handle_wrong_method_abstract));
|
79 #include "utilities/globalDefinitions.hpp"
80 #include "utilities/resourceHash.hpp"
81 #include "utilities/macros.hpp"
82 #include "utilities/xmlstream.hpp"
83 #ifdef COMPILER1
84 #include "c1/c1_Runtime1.hpp"
85 #endif
86 #if INCLUDE_JFR
87 #include "jfr/jfr.hpp"
88 #endif
89
90 // Shared runtime stub routines reside in their own unique blob with a
91 // single entry point
92
93
94 #define SHARED_STUB_FIELD_DEFINE(name, type) \
95 type SharedRuntime::BLOB_FIELD_NAME(name);
96 SHARED_STUBS_DO(SHARED_STUB_FIELD_DEFINE)
97 #undef SHARED_STUB_FIELD_DEFINE
98
99 #define SHARED_STUB_NAME_DECLARE(name, type) "Shared Runtime " # name "_blob",
100 const char *SharedRuntime::_stub_names[] = {
101 SHARED_STUBS_DO(SHARED_STUB_NAME_DECLARE)
102 };
103
104 //----------------------------generate_stubs-----------------------------------
105 void SharedRuntime::generate_initial_stubs() {
106 // Build this early so it's available for the interpreter.
107 _throw_StackOverflowError_blob =
108 generate_throw_exception(SharedStubId::throw_StackOverflowError_id,
109 CAST_FROM_FN_PTR(address, SharedRuntime::throw_StackOverflowError));
110 }
111
112 void SharedRuntime::generate_stubs() {
113 _wrong_method_blob =
114 generate_resolve_blob(SharedStubId::wrong_method_id,
115 CAST_FROM_FN_PTR(address, SharedRuntime::handle_wrong_method));
116 _wrong_method_abstract_blob =
117 generate_resolve_blob(SharedStubId::wrong_method_abstract_id,
118 CAST_FROM_FN_PTR(address, SharedRuntime::handle_wrong_method_abstract));
|