comparison src/share/vm/graal/graalCodeInstaller.cpp @ 7018:17eeac928874

Put code that is used only in ASSERT mode behind #ifdef ASSERT
author Gilles Duboscq <duboscq@ssw.jku.at>
date Fri, 23 Nov 2012 16:03:39 +0100
parents bb524ee6b8e9
children b6a8f2d23057 c2a3b92c9e79
comparison
equal deleted inserted replaced
7017:70bff0fa64b1 7018:17eeac928874
623 _instructions->relocate((address)inst, runtime_call_Relocation::spec(), Assembler::call32_operand); 623 _instructions->relocate((address)inst, runtime_call_Relocation::spec(), Assembler::call32_operand);
624 } 624 }
625 TRACE_graal_3("relocating (stub) at %p", inst); 625 TRACE_graal_3("relocating (stub) at %p", inst);
626 } else { // method != NULL 626 } else { // method != NULL
627 assert(hotspot_method != NULL, "unexpected JavaMethod"); 627 assert(hotspot_method != NULL, "unexpected JavaMethod");
628 assert(debug_info != NULL, "debug info expected"); 628 #ifdef ASSERT
629
630 Method* method = NULL; 629 Method* method = NULL;
631 // we need to check, this might also be an unresolved method 630 // we need to check, this might also be an unresolved method
632 if (hotspot_method->is_a(HotSpotResolvedJavaMethod::klass())) { 631 if (hotspot_method->is_a(HotSpotResolvedJavaMethod::klass())) {
633 method = getMethodFromHotSpotMethod(hotspot_method); 632 method = getMethodFromHotSpotMethod(hotspot_method);
634 } 633 }
635 634 #endif
636 assert(debug_info != NULL, "debug info expected"); 635 assert(debug_info != NULL, "debug info expected");
637 636
638 TRACE_graal_3("method call"); 637 TRACE_graal_3("method call");
639 switch (_next_call_type) { 638 switch (_next_call_type) {
640 case MARK_INLINE_INVOKEVIRTUAL: { 639 case MARK_INLINE_INVOKEVIRTUAL: {