Mercurial > hg > graal-compiler
comparison src/share/vm/graal/graalCodeInstaller.cpp @ 18222:a8cff27ca2e1
converted HotSpotResolvedJavaMethod to an interface
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 03 Nov 2014 16:08:06 +0100 |
parents | ff1f1481b367 |
children | 17c98fad6980 |
comparison
equal
deleted
inserted
replaced
18221:2c68474cc893 | 18222:a8cff27ca2e1 |
---|---|
63 ConstantIntValue* CodeInstaller::_int_1_scope_value = new (ResourceObj::C_HEAP, mtCompiler) ConstantIntValue(1); | 63 ConstantIntValue* CodeInstaller::_int_1_scope_value = new (ResourceObj::C_HEAP, mtCompiler) ConstantIntValue(1); |
64 ConstantIntValue* CodeInstaller::_int_2_scope_value = new (ResourceObj::C_HEAP, mtCompiler) ConstantIntValue(2); | 64 ConstantIntValue* CodeInstaller::_int_2_scope_value = new (ResourceObj::C_HEAP, mtCompiler) ConstantIntValue(2); |
65 LocationValue* CodeInstaller::_illegal_value = new (ResourceObj::C_HEAP, mtCompiler) LocationValue(Location()); | 65 LocationValue* CodeInstaller::_illegal_value = new (ResourceObj::C_HEAP, mtCompiler) LocationValue(Location()); |
66 | 66 |
67 Method* getMethodFromHotSpotMethod(oop hotspot_method) { | 67 Method* getMethodFromHotSpotMethod(oop hotspot_method) { |
68 assert(hotspot_method != NULL && hotspot_method->is_a(HotSpotResolvedJavaMethod::klass()), "sanity"); | 68 assert(hotspot_method != NULL && hotspot_method->is_a(HotSpotResolvedJavaMethodImpl::klass()), "sanity"); |
69 return asMethod(HotSpotResolvedJavaMethod::metaspaceMethod(hotspot_method)); | 69 return asMethod(HotSpotResolvedJavaMethodImpl::metaspaceMethod(hotspot_method)); |
70 } | 70 } |
71 | 71 |
72 const int MapWordBits = 64; | 72 const int MapWordBits = 64; |
73 | 73 |
74 static bool is_bit_set(typeArrayOop words, int i) { | 74 static bool is_bit_set(typeArrayOop words, int i) { |
173 } else { | 173 } else { |
174 assert((Klass*) prim == klass, err_msg("%s @ " INTPTR_FORMAT " != " INTPTR_FORMAT, klass->name()->as_C_string(), p2i(klass), prim)); | 174 assert((Klass*) prim == klass, err_msg("%s @ " INTPTR_FORMAT " != " INTPTR_FORMAT, klass->name()->as_C_string(), p2i(klass), prim)); |
175 } | 175 } |
176 int index = oop_recorder->find_index(klass); | 176 int index = oop_recorder->find_index(klass); |
177 TRACE_graal_3("metadata[%d of %d] = %s", index, oop_recorder->metadata_count(), klass->name()->as_C_string()); | 177 TRACE_graal_3("metadata[%d of %d] = %s", index, oop_recorder->metadata_count(), klass->name()->as_C_string()); |
178 } else if (obj->is_a(HotSpotResolvedJavaMethod::klass())) { | 178 } else if (obj->is_a(HotSpotResolvedJavaMethodImpl::klass())) { |
179 Method* method = (Method*) (address) HotSpotResolvedJavaMethod::metaspaceMethod(obj); | 179 Method* method = (Method*) (address) HotSpotResolvedJavaMethodImpl::metaspaceMethod(obj); |
180 assert(!compressed, err_msg("unexpected compressed method pointer %s @ " INTPTR_FORMAT " = " INTPTR_FORMAT, method->name()->as_C_string(), p2i(method), prim)); | 180 assert(!compressed, err_msg("unexpected compressed method pointer %s @ " INTPTR_FORMAT " = " INTPTR_FORMAT, method->name()->as_C_string(), p2i(method), prim)); |
181 int index = oop_recorder->find_index(method); | 181 int index = oop_recorder->find_index(method); |
182 TRACE_graal_3("metadata[%d of %d] = %s", index, oop_recorder->metadata_count(), method->name()->as_C_string()); | 182 TRACE_graal_3("metadata[%d of %d] = %s", index, oop_recorder->metadata_count(), method->name()->as_C_string()); |
183 } else { | 183 } else { |
184 assert(java_lang_String::is_instance(obj), | 184 assert(java_lang_String::is_instance(obj), |