< prev index next >

src/share/vm/c1/c1_GraphBuilder.cpp

Print this page




4272     } else {
4273       if (msg != NULL)
4274         log->inline_fail(msg);
4275       else
4276         log->inline_fail("reason unknown");
4277     }
4278   }
4279 #if INCLUDE_TRACE
4280   EventCompilerInlining event;
4281   if (event.should_commit()) {
4282     event.set_compileId(compilation()->env()->task()->compile_id());
4283     event.set_message(msg);
4284     event.set_succeeded(success);
4285     event.set_bci(bci());
4286     event.set_caller(method()->get_Method());
4287     event.set_callee(callee->to_trace_struct());
4288     event.commit();
4289   }
4290 #endif // INCLUDE_TRACE
4291 


4292   if (!compilation()->directive()->PrintInliningOption) {
4293     return;
4294   }
4295   CompileTask::print_inlining_tty(callee, scope()->level(), bci(), msg);
4296   if (success && CIPrintMethodCodes) {
4297     callee->print_codes();
4298   }
4299 }
4300 
4301 void GraphBuilder::append_unsafe_get_and_set_obj(ciMethod* callee, bool is_add) {
4302   Values* args = state()->pop_arguments(callee->arg_size());
4303   BasicType t = callee->return_type()->basic_type();
4304   null_check(args->at(0));
4305   Instruction* offset = args->at(2);
4306 #ifndef _LP64
4307   offset = append(new Convert(Bytecodes::_l2i, offset, as_ValueType(T_INT)));
4308 #endif
4309   Instruction* op = append(new UnsafeGetAndSetObject(t, args->at(1), offset, args->at(3), is_add));
4310   compilation()->set_has_unsafe_access(true);
4311   kill_all();




4272     } else {
4273       if (msg != NULL)
4274         log->inline_fail(msg);
4275       else
4276         log->inline_fail("reason unknown");
4277     }
4278   }
4279 #if INCLUDE_TRACE
4280   EventCompilerInlining event;
4281   if (event.should_commit()) {
4282     event.set_compileId(compilation()->env()->task()->compile_id());
4283     event.set_message(msg);
4284     event.set_succeeded(success);
4285     event.set_bci(bci());
4286     event.set_caller(method()->get_Method());
4287     event.set_callee(callee->to_trace_struct());
4288     event.commit();
4289   }
4290 #endif // INCLUDE_TRACE
4291 
4292   CompileTask::print_inlining_ul(callee, scope()->level(), bci(), msg);
4293 
4294   if (!compilation()->directive()->PrintInliningOption) {
4295     return;
4296   }
4297   CompileTask::print_inlining_tty(callee, scope()->level(), bci(), msg);
4298   if (success && CIPrintMethodCodes) {
4299     callee->print_codes();
4300   }
4301 }
4302 
4303 void GraphBuilder::append_unsafe_get_and_set_obj(ciMethod* callee, bool is_add) {
4304   Values* args = state()->pop_arguments(callee->arg_size());
4305   BasicType t = callee->return_type()->basic_type();
4306   null_check(args->at(0));
4307   Instruction* offset = args->at(2);
4308 #ifndef _LP64
4309   offset = append(new Convert(Bytecodes::_l2i, offset, as_ValueType(T_INT)));
4310 #endif
4311   Instruction* op = append(new UnsafeGetAndSetObject(t, args->at(1), offset, args->at(3), is_add));
4312   compilation()->set_has_unsafe_access(true);
4313   kill_all();


< prev index next >