comparison src/share/vm/opto/compile.hpp @ 9596:825cee2cd7a6

8139040: Fix initializations before ShouldNotReachHere() etc. and enable -Wuninitialized on linux. Reviewed-by: stuefe, coleenp, roland
author goetz
date Thu, 22 Oct 2015 13:07:10 -0400
parents 00e5743fd189
children e33baf2cad34
comparison
equal deleted inserted replaced
76:17f8b518036f 79:73f3b12efc04
87 struct Final_Reshape_Counts; 87 struct Final_Reshape_Counts;
88 88
89 typedef unsigned int node_idx_t; 89 typedef unsigned int node_idx_t;
90 class NodeCloneInfo { 90 class NodeCloneInfo {
91 private: 91 private:
92 uint64_t _idx_clone_orig; 92 uint64_t _idx_clone_orig;
93 public: 93 public:
94 94
95 void set_idx(node_idx_t idx) { 95 void set_idx(node_idx_t idx) {
96 _idx_clone_orig = _idx_clone_orig & CONST64(0xFFFFFFFF00000000) | idx; 96 _idx_clone_orig = _idx_clone_orig & CONST64(0xFFFFFFFF00000000) | idx;
97 } 97 }
98 node_idx_t idx() const { return (node_idx_t)(_idx_clone_orig & 0xFFFFFFFF); } 98 node_idx_t idx() const { return (node_idx_t)(_idx_clone_orig & 0xFFFFFFFF); }
99 99
100 void set_gen(int generation) { 100 void set_gen(int generation) {
101 uint64_t g = (uint64_t)generation << 32; 101 uint64_t g = (uint64_t)generation << 32;
102 _idx_clone_orig = _idx_clone_orig & 0xFFFFFFFF | g; 102 _idx_clone_orig = _idx_clone_orig & 0xFFFFFFFF | g;
103 } 103 }
104 int gen() const { return (int)(_idx_clone_orig >> 32); } 104 int gen() const { return (int)(_idx_clone_orig >> 32); }
105 105
106 void set(uint64_t x) { _idx_clone_orig = x; } 106 void set(uint64_t x) { _idx_clone_orig = x; }
107 void set(node_idx_t x, int g) { set_idx(x); set_gen(g); } 107 void set(node_idx_t x, int g) { set_idx(x); set_gen(g); }
108 uint64_t get() const { return _idx_clone_orig; } 108 uint64_t get() const { return _idx_clone_orig; }
109 109
110 NodeCloneInfo(uint64_t idx_clone_orig) : _idx_clone_orig(idx_clone_orig) {} 110 NodeCloneInfo(uint64_t idx_clone_orig) : _idx_clone_orig(idx_clone_orig) {}
111 NodeCloneInfo(node_idx_t x, int g) {set(x, g);} 111 NodeCloneInfo(node_idx_t x, int g) : _idx_clone_orig(0) { set(x, g); }
112 112
113 void dump() const; 113 void dump() const;
114 }; 114 };
115 115
116 class CloneMap { 116 class CloneMap {