Mercurial > hg > graal-jvmci-8
comparison src/share/vm/graal/graalCodeInstaller.cpp @ 2901:d577d07cedec
Added time measurement for phases.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 08 Jun 2011 17:01:16 +0200 |
parents | 75a99b4f1c98 |
children | c7783b6773ea |
comparison
equal
deleted
inserted
replaced
2897:be276884eec0 | 2901:d577d07cedec |
---|---|
409 } else { | 409 } else { |
410 Bytecodes::Code code = Bytecodes::java_code_at(method, method->bcp_from(bci)); | 410 Bytecodes::Code code = Bytecodes::java_code_at(method, method->bcp_from(bci)); |
411 reexecute = Interpreter::bytecode_should_reexecute(code); | 411 reexecute = Interpreter::bytecode_should_reexecute(code); |
412 } | 412 } |
413 | 413 |
414 if (Tracegraal >= 2) { | 414 if (TraceGraal >= 2) { |
415 tty->print_cr("Recording scope pc_offset=%d bci=%d frame=%d", pc_offset, bci, frame); | 415 tty->print_cr("Recording scope pc_offset=%d bci=%d frame=%d", pc_offset, bci, frame); |
416 } | 416 } |
417 | 417 |
418 if (frame != NULL) { | 418 if (frame != NULL) { |
419 jint local_count = CiFrame::numLocals(frame); | 419 jint local_count = CiFrame::numLocals(frame); |
425 | 425 |
426 GrowableArray<ScopeValue*>* locals = new GrowableArray<ScopeValue*> (); | 426 GrowableArray<ScopeValue*>* locals = new GrowableArray<ScopeValue*> (); |
427 GrowableArray<ScopeValue*>* expressions = new GrowableArray<ScopeValue*> (); | 427 GrowableArray<ScopeValue*>* expressions = new GrowableArray<ScopeValue*> (); |
428 GrowableArray<MonitorValue*>* monitors = new GrowableArray<MonitorValue*> (); | 428 GrowableArray<MonitorValue*>* monitors = new GrowableArray<MonitorValue*> (); |
429 | 429 |
430 if (Tracegraal >= 2) { | 430 if (TraceGraal >= 2) { |
431 tty->print_cr("Scope at bci %d with %d values", bci, values->length()); | 431 tty->print_cr("Scope at bci %d with %d values", bci, values->length()); |
432 tty->print_cr("%d locals %d expressions, %d monitors", local_count, expression_count, monitor_count); | 432 tty->print_cr("%d locals %d expressions, %d monitors", local_count, expression_count, monitor_count); |
433 } | 433 } |
434 | 434 |
435 for (jint i = 0; i < values->length(); i++) { | 435 for (jint i = 0; i < values->length(); i++) { |