src/share/vm/opto/matcher.hpp

Print this page

        

*** 497,502 **** --- 497,515 ---- return _new2old_map[new_node->_idx]; } #endif }; + //------------------------------BinaryNode------------------------------------- + // Place holder for the 2 conditional inputs to a CMove. CMove needs 4 + // inputs: the Bool (for the lt/gt/eq/ne bits), the flags (result of some + // compare), and the 2 values to select between. The Matcher requires a + // binary tree so we break it down like this: + // (CMove (Binary bol cmp) (Binary src1 src2)) + class BinaryNode : public Node { + public: + BinaryNode( Node *n1, Node *n2 ) : Node(0,n1,n2) { } + virtual int Opcode() const; + virtual uint ideal_reg() const { return 0; } + }; + #endif // SHARE_VM_OPTO_MATCHER_HPP