comparison src/share/vm/c1/c1_Runtime1.hpp @ 4982:38012b8c29b1

create separate RUNTIME1_STUBS definition for non-graal build.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Mon, 27 Feb 2012 22:18:57 +0100
parents 8f01f899bccd
children f5cfb62f17b8
comparison
equal deleted inserted replaced
4981:1b8d02e10ee8 4982:38012b8c29b1
34 class StubAssembler; 34 class StubAssembler;
35 35
36 // The Runtime1 holds all assembly stubs and VM 36 // The Runtime1 holds all assembly stubs and VM
37 // runtime routines needed by code code generated 37 // runtime routines needed by code code generated
38 // by the Compiler1. 38 // by the Compiler1.
39 39 #ifdef GRAAL
40 #define RUNTIME1_STUBS(stub, last_entry) \ 40 #define RUNTIME1_STUBS(stub, last_entry) \
41 stub(dtrace_object_alloc) \ 41 stub(dtrace_object_alloc) \
42 stub(unwind_exception) \ 42 stub(unwind_exception) \
43 stub(forward_exception) \ 43 stub(forward_exception) \
44 stub(throw_range_check_failed) /* throws ArrayIndexOutOfBoundsException */ \ 44 stub(throw_range_check_failed) /* throws ArrayIndexOutOfBoundsException */ \
80 stub(graal_set_deopt_info) \ 80 stub(graal_set_deopt_info) \
81 stub(graal_create_null_pointer_exception) \ 81 stub(graal_create_null_pointer_exception) \
82 stub(graal_create_out_of_bounds_exception) \ 82 stub(graal_create_out_of_bounds_exception) \
83 stub(graal_generic_callback) \ 83 stub(graal_generic_callback) \
84 last_entry(number_of_ids) 84 last_entry(number_of_ids)
85 #else
86 #define RUNTIME1_STUBS(stub, last_entry) \
87 stub(dtrace_object_alloc) \
88 stub(unwind_exception) \
89 stub(forward_exception) \
90 stub(throw_range_check_failed) /* throws ArrayIndexOutOfBoundsException */ \
91 stub(throw_index_exception) /* throws IndexOutOfBoundsException */ \
92 stub(throw_div0_exception) \
93 stub(throw_null_pointer_exception) \
94 stub(register_finalizer) \
95 stub(new_instance) \
96 stub(fast_new_instance) \
97 stub(fast_new_instance_init_check) \
98 stub(new_type_array) \
99 stub(new_object_array) \
100 stub(new_multi_array) \
101 stub(handle_exception_nofpu) /* optimized version that does not preserve fpu registers */ \
102 stub(handle_exception) \
103 stub(handle_exception_from_callee) \
104 stub(throw_array_store_exception) \
105 stub(throw_class_cast_exception) \
106 stub(throw_incompatible_class_change_error) \
107 stub(slow_subtype_check) \
108 stub(monitorenter) \
109 stub(monitorenter_nofpu) /* optimized version that does not preserve fpu registers */ \
110 stub(monitorexit) \
111 stub(monitorexit_nofpu) /* optimized version that does not preserve fpu registers */ \
112 stub(deoptimize) \
113 stub(access_field_patching) \
114 stub(load_klass_patching) \
115 stub(g1_pre_barrier_slow) \
116 stub(g1_post_barrier_slow) \
117 stub(fpu2long_stub) \
118 stub(counter_overflow) \
119 last_entry(number_of_ids)
120 #endif
85 121
86 #define DECLARE_STUB_ID(x) x ## _id , 122 #define DECLARE_STUB_ID(x) x ## _id ,
87 #define DECLARE_LAST_STUB_ID(x) x 123 #define DECLARE_LAST_STUB_ID(x) x
88 #define STUB_NAME(x) #x " Runtime1 stub", 124 #define STUB_NAME(x) #x " Runtime1 stub",
89 #define LAST_STUB_NAME(x) #x " Runtime1 stub" 125 #define LAST_STUB_NAME(x) #x " Runtime1 stub"