hotspot/src/share/vm/opto/divnode.cpp
DivModINode* DivModINode::make(Compile* C, Node* div_or_mod) {
Node* n = div_or_mod;
assert(n->Opcode() == Op_DivI || n->Opcode() == Op_ModI,
"only div or mod input pattern accepted");
DivModINode* divmod = new (C, 3) DivModINode(n->in(0), n->in(1), n->in(2));
Node* dproj = new (C, 1) ProjNode(divmod, DivModNode::div_proj_num);
Node* mproj = new (C, 1) ProjNode(divmod, DivModNode::mod_proj_num);
return divmod;
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.