Mercurial > hg > graal-jvmci-8
comparison src/share/vm/graal/graalCompiler.cpp @ 4439:f7251c729b31
profiling info first try
author | Christian Haeubl <christian.haeubl@oracle.com> |
---|---|
date | Thu, 19 Jan 2012 16:29:35 -0800 |
parents | bcbb918f5ac6 |
children | 4e3aaf14cbc6 |
comparison
equal
deleted
inserted
replaced
4288:2bc254976621 | 4439:f7251c729b31 |
---|---|
270 HotSpotMethodResolved::set_accessFlags(obj, method->access_flags().as_int()); | 270 HotSpotMethodResolved::set_accessFlags(obj, method->access_flags().as_int()); |
271 HotSpotMethodResolved::set_maxLocals(obj, method->max_locals()); | 271 HotSpotMethodResolved::set_maxLocals(obj, method->max_locals()); |
272 HotSpotMethodResolved::set_maxStackSize(obj, method->max_stack()); | 272 HotSpotMethodResolved::set_maxStackSize(obj, method->max_stack()); |
273 | 273 |
274 method->set_graal_mirror(obj()); | 274 method->set_graal_mirror(obj()); |
275 return obj(); | 275 return obj; |
276 } | |
277 | |
278 Handle GraalCompiler::createHotSpotProfilingInfo(methodDataHandle method_data, TRAPS) { | |
279 if(method_data->graal_mirror() != NULL) { | |
280 assert(method_data->graal_mirror()->is_a(HotSpotProfilingInfo::klass()), "unexpected class"); | |
281 return method_data->graal_mirror(); | |
282 } | |
283 | |
284 instanceKlass::cast(HotSpotProfilingInfo::klass())->initialize(CHECK_NULL); | |
285 Handle obj = instanceKlass::cast(HotSpotProfilingInfo::klass())->allocate_instance(CHECK_NULL); | |
286 assert(obj.not_null, "must be"); | |
287 | |
288 HotSpotProfilingInfo::set_compiler(obj, VMToCompiler::compilerInstance()()); | |
289 HotSpotProfilingInfo::set_javaMirror(obj, method_data()); | |
290 | |
291 method_data->set_graal_mirror(obj()); | |
292 return obj; | |
276 } | 293 } |
277 | 294 |
278 BasicType GraalCompiler::kindToBasicType(jchar ch) { | 295 BasicType GraalCompiler::kindToBasicType(jchar ch) { |
279 switch(ch) { | 296 switch(ch) { |
280 case 'z': return T_BOOLEAN; | 297 case 'z': return T_BOOLEAN; |