Mercurial > hg > graal-jvmci-8
comparison src/share/vm/graal/graalRuntime.hpp @ 9461:a14fef4fca7d
replaced identity_hash_code assembler stub with a compiled stub (GRAAL-81)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 30 Apr 2013 00:53:33 +0200 |
parents | 393d62a868da |
children | 902a974d55c8 |
comparison
equal
deleted
inserted
replaced
9421:20dc10bb82d1 | 9461:a14fef4fca7d |
---|---|
94 stub(create_out_of_bounds_exception) \ | 94 stub(create_out_of_bounds_exception) \ |
95 stub(log_object) \ | 95 stub(log_object) \ |
96 stub(log_printf) \ | 96 stub(log_printf) \ |
97 stub(stub_printf) \ | 97 stub(stub_printf) \ |
98 stub(log_primitive) \ | 98 stub(log_primitive) \ |
99 stub(identity_hash_code) \ | |
100 stub(wb_pre_call) \ | 99 stub(wb_pre_call) \ |
101 stub(wb_post_call) \ | 100 stub(wb_post_call) \ |
102 last_entry(number_of_ids) | 101 last_entry(number_of_ids) |
103 | 102 |
104 #define DECLARE_STUB_ID(x) x ## _id , | 103 #define DECLARE_STUB_ID(x) x ## _id , |
141 static void stub_printf(JavaThread* thread, jlong format, jlong v1, jlong v2, jlong v3); | 140 static void stub_printf(JavaThread* thread, jlong format, jlong v1, jlong v2, jlong v3); |
142 static void log_primitive(JavaThread* thread, jchar typeChar, jlong value, jboolean newline); | 141 static void log_primitive(JavaThread* thread, jchar typeChar, jlong value, jboolean newline); |
143 static void wb_pre_call(JavaThread* thread, oopDesc* obj); | 142 static void wb_pre_call(JavaThread* thread, oopDesc* obj); |
144 static void wb_post_call(JavaThread* thread, oopDesc* obj, void* card); | 143 static void wb_post_call(JavaThread* thread, oopDesc* obj, void* card); |
145 | 144 |
146 static jint identity_hash_code(JavaThread* thread, oopDesc* objd); | |
147 | 145 |
148 // Note: Must be kept in sync with constants in com.oracle.graal.replacements.Log | 146 // Note: Must be kept in sync with constants in com.oracle.graal.replacements.Log |
149 enum { | 147 enum { |
150 LOG_OBJECT_NEWLINE = 0x01, | 148 LOG_OBJECT_NEWLINE = 0x01, |
151 LOG_OBJECT_STRING = 0x02, | 149 LOG_OBJECT_STRING = 0x02, |
156 public: | 154 public: |
157 static void new_instance(JavaThread* thread, Klass* klass); | 155 static void new_instance(JavaThread* thread, Klass* klass); |
158 static void new_array(JavaThread* thread, Klass* klass, jint length); | 156 static void new_array(JavaThread* thread, Klass* klass, jint length); |
159 static void new_multi_array(JavaThread* thread, Klass* klass, int rank, jint* dims); | 157 static void new_multi_array(JavaThread* thread, Klass* klass, int rank, jint* dims); |
160 static jboolean thread_is_interrupted(JavaThread* thread, oopDesc* obj, jboolean clear_interrupte); | 158 static jboolean thread_is_interrupted(JavaThread* thread, oopDesc* obj, jboolean clear_interrupte); |
159 static jint identity_hash_code(JavaThread* thread, oopDesc* objd); | |
161 // initialization | 160 // initialization |
162 static void initialize(BufferBlob* blob); | 161 static void initialize(BufferBlob* blob); |
163 | 162 |
164 // stubs | 163 // stubs |
165 static CodeBlob* blob_for (StubID id); | 164 static CodeBlob* blob_for (StubID id); |