Mercurial > hg > graal-jvmci-8
comparison src/share/vm/graal/graalCodeInstaller.cpp @ 5580:69358a2182a3
added printf-like facility (Log.java) for logging debug output in snippets
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 13 Jun 2012 00:15:15 +0200 |
parents | 70f715dfbb41 |
children | f787843c890c |
comparison
equal
deleted
inserted
replaced
5579:8e6622e1fb7e | 5580:69358a2182a3 |
---|---|
579 target_addr = SharedRuntime::deopt_blob()->uncommon_trap(); | 579 target_addr = SharedRuntime::deopt_blob()->uncommon_trap(); |
580 TRACE_graal_3("RuntimeCall::Deoptimize()"); | 580 TRACE_graal_3("RuntimeCall::Deoptimize()"); |
581 } else if (runtime_call == RuntimeCall::GenericCallback()) { | 581 } else if (runtime_call == RuntimeCall::GenericCallback()) { |
582 target_addr = Runtime1::entry_for(Runtime1::graal_generic_callback_id); | 582 target_addr = Runtime1::entry_for(Runtime1::graal_generic_callback_id); |
583 TRACE_graal_3("RuntimeCall::GenericCallback()"); | 583 TRACE_graal_3("RuntimeCall::GenericCallback()"); |
584 } else if (runtime_call == RuntimeCall::LogPrimitive()) { | |
585 target_addr = Runtime1::entry_for(Runtime1::graal_log_primitive_id); | |
586 TRACE_graal_3("RuntimeCall::LogPrimitive()"); | |
587 } else if (runtime_call == RuntimeCall::LogObject()) { | |
588 target_addr = Runtime1::entry_for(Runtime1::graal_log_object_id); | |
589 TRACE_graal_3("RuntimeCall::LogObject()"); | |
584 } else { | 590 } else { |
585 runtime_call->print(); | 591 runtime_call->print(); |
586 fatal("runtime_call not implemented"); | 592 fatal("runtime_call not implemented"); |
587 } | 593 } |
588 return target_addr; | 594 return target_addr; |
596 oop hotspot_method = NULL; // JavaMethod | 602 oop hotspot_method = NULL; // JavaMethod |
597 oop global_stub = NULL; | 603 oop global_stub = NULL; |
598 | 604 |
599 if (target_klass->is_subclass_of(SystemDictionary::Long_klass())) { | 605 if (target_klass->is_subclass_of(SystemDictionary::Long_klass())) { |
600 global_stub = target; | 606 global_stub = target; |
601 } else if (target_klass->name() == vmSymbols::com_oracle_graal_api_code_RuntimeCall()) { | 607 } else if (target->is_a(RuntimeCall::klass())) { |
602 runtime_call = target; | 608 runtime_call = target; |
603 } else { | 609 } else { |
604 hotspot_method = target; | 610 hotspot_method = target; |
605 } | 611 } |
606 | 612 |