< prev index next >

src/hotspot/share/opto/cfgnode.hpp

Print this page

        

*** 482,493 **** //------------------------------JumpNode--------------------------------------- // Indirect branch. Uses PCTable above to implement a switch statement. // It emits as a table load and local branch. class JumpNode : public PCTableNode { public: ! JumpNode( Node* control, Node* switch_val, uint size) : PCTableNode(control, switch_val, size) { init_class_id(Class_Jump); } virtual int Opcode() const; virtual const RegMask& out_RegMask() const; virtual const Node* is_block_proj() const { return this; } --- 482,498 ---- //------------------------------JumpNode--------------------------------------- // Indirect branch. Uses PCTable above to implement a switch statement. // It emits as a table load and local branch. class JumpNode : public PCTableNode { + virtual uint size_of() const { return sizeof(*this); } public: ! float* _probs; // probability of each projection ! float _fcnt; // total number of times this Jump was executed ! JumpNode( Node* control, Node* switch_val, uint size, float* probs, float cnt) ! : PCTableNode(control, switch_val, size), ! _probs(probs), _fcnt(cnt) { init_class_id(Class_Jump); } virtual int Opcode() const; virtual const RegMask& out_RegMask() const; virtual const Node* is_block_proj() const { return this; }
< prev index next >