void fill_testdata(int64_t start, int64_t len, unsigned char* data) { int64_t k; for( k = 0; k < len; k++ ) { data[k] = data_at(start+k); } }
ciProfileData* data_before(int bci) { // avoid SEGV on this edge case if (data_size() == 0) return NULL; int hint = hint_di(); if (data_layout_at(hint)->bci() <= bci) return data_at(hint); return first_data(); }
// Iteration over data. ProfileData* methodDataOopDesc::next_data(ProfileData* current) { int current_index = dp_to_di(current->dp()); int next_index = current_index + current->size_in_bytes(); ProfileData* next = data_at(next_index); return next; }
// Iteration over data. ciProfileData* ciMethodData::next_data(ciProfileData* current) { int current_index = dp_to_di(current->dp()); int next_index = current_index + current->size_in_bytes(); ciProfileData* next = data_at(next_index); return next; }
// Walk through the data in order. ciProfileData* first_data() { return data_at(first_di()); }