1.1 --- a/src/share/vm/opto/node.cpp Wed Dec 09 10:26:00 2015 -0800 1.2 +++ b/src/share/vm/opto/node.cpp Tue Dec 15 09:46:51 2015 +0100 1.3 @@ -325,6 +325,9 @@ 1.4 // Create a Node, with a given number of required edges. 1.5 Node::Node(uint req) 1.6 : _idx(IDX_INIT(req)) 1.7 +#ifdef ASSERT 1.8 + , _parse_idx(_idx) 1.9 +#endif 1.10 { 1.11 assert( req < Compile::current()->max_node_limit() - NodeLimitFudgeFactor, "Input limit exceeded" ); 1.12 debug_only( verify_construction() ); 1.13 @@ -344,6 +347,9 @@ 1.14 //------------------------------Node------------------------------------------- 1.15 Node::Node(Node *n0) 1.16 : _idx(IDX_INIT(1)) 1.17 +#ifdef ASSERT 1.18 + , _parse_idx(_idx) 1.19 +#endif 1.20 { 1.21 debug_only( verify_construction() ); 1.22 NOT_PRODUCT(nodes_created++); 1.23 @@ -356,6 +362,9 @@ 1.24 //------------------------------Node------------------------------------------- 1.25 Node::Node(Node *n0, Node *n1) 1.26 : _idx(IDX_INIT(2)) 1.27 +#ifdef ASSERT 1.28 + , _parse_idx(_idx) 1.29 +#endif 1.30 { 1.31 debug_only( verify_construction() ); 1.32 NOT_PRODUCT(nodes_created++); 1.33 @@ -370,6 +379,9 @@ 1.34 //------------------------------Node------------------------------------------- 1.35 Node::Node(Node *n0, Node *n1, Node *n2) 1.36 : _idx(IDX_INIT(3)) 1.37 +#ifdef ASSERT 1.38 + , _parse_idx(_idx) 1.39 +#endif 1.40 { 1.41 debug_only( verify_construction() ); 1.42 NOT_PRODUCT(nodes_created++); 1.43 @@ -386,6 +398,9 @@ 1.44 //------------------------------Node------------------------------------------- 1.45 Node::Node(Node *n0, Node *n1, Node *n2, Node *n3) 1.46 : _idx(IDX_INIT(4)) 1.47 +#ifdef ASSERT 1.48 + , _parse_idx(_idx) 1.49 +#endif 1.50 { 1.51 debug_only( verify_construction() ); 1.52 NOT_PRODUCT(nodes_created++); 1.53 @@ -404,6 +419,9 @@ 1.54 //------------------------------Node------------------------------------------- 1.55 Node::Node(Node *n0, Node *n1, Node *n2, Node *n3, Node *n4) 1.56 : _idx(IDX_INIT(5)) 1.57 +#ifdef ASSERT 1.58 + , _parse_idx(_idx) 1.59 +#endif 1.60 { 1.61 debug_only( verify_construction() ); 1.62 NOT_PRODUCT(nodes_created++); 1.63 @@ -425,6 +443,9 @@ 1.64 Node::Node(Node *n0, Node *n1, Node *n2, Node *n3, 1.65 Node *n4, Node *n5) 1.66 : _idx(IDX_INIT(6)) 1.67 +#ifdef ASSERT 1.68 + , _parse_idx(_idx) 1.69 +#endif 1.70 { 1.71 debug_only( verify_construction() ); 1.72 NOT_PRODUCT(nodes_created++); 1.73 @@ -448,6 +469,9 @@ 1.74 Node::Node(Node *n0, Node *n1, Node *n2, Node *n3, 1.75 Node *n4, Node *n5, Node *n6) 1.76 : _idx(IDX_INIT(7)) 1.77 +#ifdef ASSERT 1.78 + , _parse_idx(_idx) 1.79 +#endif 1.80 { 1.81 debug_only( verify_construction() ); 1.82 NOT_PRODUCT(nodes_created++);