134 }
135 int flags = data()->flags();
136 if (flags != 0) {
137 st->print("flags(%d) ", flags);
138 }
139 }
140
141 void ProfileData::tab(outputStream* st, bool first) const {
142 st->fill_to(first ? tab_width_one : tab_width_two);
143 }
144
145 // ==================================================================
146 // BitData
147 //
148 // A BitData corresponds to a one-bit flag. This is used to indicate
149 // whether a checkcast bytecode has seen a null value.
150
151
152 void BitData::print_data_on(outputStream* st, const char* extra) const {
153 print_shared(st, "BitData", extra);
154 }
155
156 // ==================================================================
157 // CounterData
158 //
159 // A CounterData corresponds to a simple counter.
160
161 void CounterData::print_data_on(outputStream* st, const char* extra) const {
162 print_shared(st, "CounterData", extra);
163 st->print_cr("count(%u)", count());
164 }
165
166 // ==================================================================
167 // JumpData
168 //
169 // A JumpData is used to access profiling information for a direct
170 // branch. It is a counter, used for counting the number of branches,
171 // plus a data displacement, used for realigning the data pointer to
172 // the corresponding target bci.
173
|
134 }
135 int flags = data()->flags();
136 if (flags != 0) {
137 st->print("flags(%d) ", flags);
138 }
139 }
140
141 void ProfileData::tab(outputStream* st, bool first) const {
142 st->fill_to(first ? tab_width_one : tab_width_two);
143 }
144
145 // ==================================================================
146 // BitData
147 //
148 // A BitData corresponds to a one-bit flag. This is used to indicate
149 // whether a checkcast bytecode has seen a null value.
150
151
152 void BitData::print_data_on(outputStream* st, const char* extra) const {
153 print_shared(st, "BitData", extra);
154 st->cr();
155 }
156
157 // ==================================================================
158 // CounterData
159 //
160 // A CounterData corresponds to a simple counter.
161
162 void CounterData::print_data_on(outputStream* st, const char* extra) const {
163 print_shared(st, "CounterData", extra);
164 st->print_cr("count(%u)", count());
165 }
166
167 // ==================================================================
168 // JumpData
169 //
170 // A JumpData is used to access profiling information for a direct
171 // branch. It is a counter, used for counting the number of branches,
172 // plus a data displacement, used for realigning the data pointer to
173 // the corresponding target bci.
174
|