< prev index next >
src/share/vm/opto/parse2.cpp
Print this page
rev 10293 : 8150720: Cleanup code around PrintOptoStatistics
Reviewed-by: TBD
*** 42,53 ****
--- 42,55 ----
#include "opto/parse.hpp"
#include "opto/runtime.hpp"
#include "runtime/deoptimization.hpp"
#include "runtime/sharedRuntime.hpp"
+ #ifndef PRODUCT
extern int explicit_null_checks_inserted,
explicit_null_checks_elided;
+ #endif
//---------------------------------array_load----------------------------------
void Parse::array_load(BasicType elem_type) {
const Type* elem = Type::TOP;
Node* adr = array_addressing(elem_type, 0, &elem);
*** 995,1005 ****
next_block->next_path_num();
}
return;
}
! explicit_null_checks_inserted++;
// Generate real control flow
Node *tst = _gvn.transform( new BoolNode( c, btest ) );
// Sanity check the probability value
--- 997,1007 ----
next_block->next_path_num();
}
return;
}
! NOT_PRODUCT(explicit_null_checks_inserted++);
// Generate real control flow
Node *tst = _gvn.transform( new BoolNode( c, btest ) );
// Sanity check the probability value
*** 1011,1021 ****
{ PreserveJVMState pjvms(this);
Node* iftrue = _gvn.transform( new IfTrueNode (iff) );
set_control(iftrue);
if (stopped()) { // Path is dead?
! explicit_null_checks_elided++;
if (C->eliminate_boxing()) {
// Mark the successor block as parsed
branch_block->next_path_num();
}
} else { // Path is live.
--- 1013,1023 ----
{ PreserveJVMState pjvms(this);
Node* iftrue = _gvn.transform( new IfTrueNode (iff) );
set_control(iftrue);
if (stopped()) { // Path is dead?
! NOT_PRODUCT(explicit_null_checks_elided++);
if (C->eliminate_boxing()) {
// Mark the successor block as parsed
branch_block->next_path_num();
}
} else { // Path is live.
*** 1031,1041 ****
// False branch
Node* iffalse = _gvn.transform( new IfFalseNode(iff) );
set_control(iffalse);
if (stopped()) { // Path is dead?
! explicit_null_checks_elided++;
if (C->eliminate_boxing()) {
// Mark the successor block as parsed
next_block->next_path_num();
}
} else { // Path is live.
--- 1033,1043 ----
// False branch
Node* iffalse = _gvn.transform( new IfFalseNode(iff) );
set_control(iffalse);
if (stopped()) { // Path is dead?
! NOT_PRODUCT(explicit_null_checks_elided++);
if (C->eliminate_boxing()) {
// Mark the successor block as parsed
next_block->next_path_num();
}
} else { // Path is live.
< prev index next >