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