Mercurial > hg > truffle
comparison src/share/vm/graal/graalRuntime.hpp @ 7911:983f7bdb85ff
removed redundant graal_ prefix from Graal specific functions and variable in native code
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 01 Mar 2013 19:51:45 +1000 |
parents | a6bd253a770f |
children | 921868af6d6b |
comparison
equal
deleted
inserted
replaced
7910:748cb57f53cb | 7911:983f7bdb85ff |
---|---|
79 | 79 |
80 // Holds all assembly stubs and VM | 80 // Holds all assembly stubs and VM |
81 // runtime routines needed by code code generated | 81 // runtime routines needed by code code generated |
82 // by Graal. | 82 // by Graal. |
83 #define GRAAL_STUBS(stub, last_entry) \ | 83 #define GRAAL_STUBS(stub, last_entry) \ |
84 stub(graal_register_finalizer) \ | 84 stub(register_finalizer) \ |
85 stub(graal_new_instance) \ | 85 stub(new_instance) \ |
86 stub(graal_new_array) \ | 86 stub(new_array) \ |
87 stub(graal_new_multi_array) \ | 87 stub(new_multi_array) \ |
88 stub(graal_handle_exception_nofpu) /* optimized version that does not preserve fpu registers */ \ | 88 stub(handle_exception_nofpu) /* optimized version that does not preserve fpu registers */ \ |
89 stub(graal_slow_subtype_check) \ | 89 stub(slow_subtype_check) \ |
90 stub(graal_unwind_exception_call) \ | 90 stub(unwind_exception_call) \ |
91 stub(graal_OSR_migration_end) \ | 91 stub(OSR_migration_end) \ |
92 stub(graal_arithmetic_frem) \ | 92 stub(arithmetic_frem) \ |
93 stub(graal_arithmetic_drem) \ | 93 stub(arithmetic_drem) \ |
94 stub(graal_monitorenter) \ | 94 stub(monitorenter) \ |
95 stub(graal_monitorexit) \ | 95 stub(monitorexit) \ |
96 stub(graal_verify_oop) \ | 96 stub(verify_oop) \ |
97 stub(graal_vm_error) \ | 97 stub(vm_error) \ |
98 stub(graal_set_deopt_info) \ | 98 stub(set_deopt_info) \ |
99 stub(graal_create_null_pointer_exception) \ | 99 stub(create_null_pointer_exception) \ |
100 stub(graal_create_out_of_bounds_exception) \ | 100 stub(create_out_of_bounds_exception) \ |
101 stub(graal_log_object) \ | 101 stub(log_object) \ |
102 stub(graal_log_printf) \ | 102 stub(log_printf) \ |
103 stub(graal_log_primitive) \ | 103 stub(log_primitive) \ |
104 stub(graal_identity_hash_code) \ | 104 stub(identity_hash_code) \ |
105 stub(graal_thread_is_interrupted) \ | 105 stub(thread_is_interrupted) \ |
106 last_entry(number_of_ids) | 106 last_entry(number_of_ids) |
107 | 107 |
108 #define DECLARE_STUB_ID(x) x ## _id , | 108 #define DECLARE_STUB_ID(x) x ## _id , |
109 #define DECLARE_LAST_STUB_ID(x) x | 109 #define DECLARE_LAST_STUB_ID(x) x |
110 #define STUB_NAME(x) #x " GraalRuntime stub", | 110 #define STUB_NAME(x) #x " GraalRuntime stub", |
138 | 138 |
139 static void unimplemented_entry(JavaThread* thread, StubID id); | 139 static void unimplemented_entry(JavaThread* thread, StubID id); |
140 | 140 |
141 static address exception_handler_for_pc(JavaThread* thread); | 141 static address exception_handler_for_pc(JavaThread* thread); |
142 | 142 |
143 static void graal_create_null_exception(JavaThread* thread); | 143 static void create_null_exception(JavaThread* thread); |
144 static void graal_create_out_of_bounds_exception(JavaThread* thread, jint index); | 144 static void create_out_of_bounds_exception(JavaThread* thread, jint index); |
145 static void graal_monitorenter(JavaThread* thread, oopDesc* obj, BasicLock* lock); | 145 static void monitorenter(JavaThread* thread, oopDesc* obj, BasicLock* lock); |
146 static void graal_monitorexit (JavaThread* thread, oopDesc* obj, BasicLock* lock); | 146 static void monitorexit (JavaThread* thread, oopDesc* obj, BasicLock* lock); |
147 static void graal_vm_error(JavaThread* thread, oop where, oop format, jlong value); | 147 static void vm_error(JavaThread* thread, oop where, oop format, jlong value); |
148 static void graal_log_printf(JavaThread* thread, oop format, jlong v1, jlong v2, jlong v3); | 148 static void log_printf(JavaThread* thread, oop format, jlong v1, jlong v2, jlong v3); |
149 static void graal_log_primitive(JavaThread* thread, jchar typeChar, jlong value, jboolean newline); | 149 static void log_primitive(JavaThread* thread, jchar typeChar, jlong value, jboolean newline); |
150 | 150 |
151 static jint graal_identity_hash_code(JavaThread* thread, oopDesc* objd); | 151 static jint identity_hash_code(JavaThread* thread, oopDesc* objd); |
152 static jboolean graal_thread_is_interrupted(JavaThread* thread, oopDesc* obj, jboolean clear_interrupte); | 152 static jboolean thread_is_interrupted(JavaThread* thread, oopDesc* obj, jboolean clear_interrupte); |
153 | 153 |
154 // Note: Must be kept in sync with constants in com.oracle.graal.snippets.Log | 154 // Note: Must be kept in sync with constants in com.oracle.graal.snippets.Log |
155 enum { | 155 enum { |
156 LOG_OBJECT_NEWLINE = 0x01, | 156 LOG_OBJECT_NEWLINE = 0x01, |
157 LOG_OBJECT_STRING = 0x02, | 157 LOG_OBJECT_STRING = 0x02, |
158 LOG_OBJECT_ADDRESS = 0x04 | 158 LOG_OBJECT_ADDRESS = 0x04 |
159 }; | 159 }; |
160 static void graal_log_object(JavaThread* thread, oop msg, jint flags); | 160 static void log_object(JavaThread* thread, oop msg, jint flags); |
161 | 161 |
162 public: | 162 public: |
163 // initialization | 163 // initialization |
164 static void initialize(BufferBlob* blob); | 164 static void initialize(BufferBlob* blob); |
165 | 165 |