src/share/vm/opto/machnode.cpp

changeset 6487
15120a36272d
parent 6484
318d0622a6d7
child 6876
710a3c8b516e
child 7161
fc2c88ea11a9
equal deleted inserted replaced
6486:b0133e4187d3 6487:15120a36272d
395 skipped += num_edges; 395 skipped += num_edges;
396 } 396 }
397 return skipped; 397 return skipped;
398 } 398 }
399 399
400 int MachNode::operand_index(const MachOper *oper) const {
401 uint skipped = oper_input_base(); // Sum of leaves skipped so far
402 uint opcnt;
403 for (opcnt = 1; opcnt < num_opnds(); opcnt++) {
404 if (_opnds[opcnt] == oper) break;
405 uint num_edges = _opnds[opcnt]->num_edges(); // leaves for operand
406 skipped += num_edges;
407 }
408 if (_opnds[opcnt] != oper) return -1;
409 return skipped;
410 }
400 411
401 //------------------------------peephole--------------------------------------- 412 //------------------------------peephole---------------------------------------
402 // Apply peephole rule(s) to this instruction 413 // Apply peephole rule(s) to this instruction
403 MachNode *MachNode::peephole( Block *block, int block_index, PhaseRegAlloc *ra_, int &deleted, Compile* C ) { 414 MachNode *MachNode::peephole( Block *block, int block_index, PhaseRegAlloc *ra_, int &deleted, Compile* C ) {
404 return NULL; 415 return NULL;

mercurial