1.1 --- a/src/share/vm/opto/machnode.hpp Tue Nov 19 11:53:58 2013 -0800 1.2 +++ b/src/share/vm/opto/machnode.hpp Wed Nov 20 11:08:09 2013 -0800 1.3 @@ -181,6 +181,9 @@ 1.4 // Number of inputs which come before the first operand. 1.5 // Generally at least 1, to skip the Control input 1.6 virtual uint oper_input_base() const { return 1; } 1.7 + // Position of constant base node in node's inputs. -1 if 1.8 + // no constant base node input. 1.9 + virtual uint mach_constant_base_node_input() const { return (uint)-1; } 1.10 1.11 // Copy inputs and operands to new node of instruction. 1.12 // Called from cisc_version() and short_branch_version(). 1.13 @@ -250,6 +253,9 @@ 1.14 // Return number of relocatable values contained in this instruction 1.15 virtual int reloc() const { return 0; } 1.16 1.17 + // Return number of words used for double constants in this instruction 1.18 + virtual int ins_num_consts() const { return 0; } 1.19 + 1.20 // Hash and compare over operands. Used to do GVN on machine Nodes. 1.21 virtual uint hash() const; 1.22 virtual uint cmp( const Node &n ) const; 1.23 @@ -412,7 +418,7 @@ 1.24 } 1.25 1.26 // Input edge of MachConstantBaseNode. 1.27 - uint mach_constant_base_node_input() const { return req() - 1; } 1.28 + virtual uint mach_constant_base_node_input() const { return req() - 1; } 1.29 1.30 int constant_offset(); 1.31 int constant_offset() const { return ((MachConstantNode*) this)->constant_offset(); }