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);
  }
}
Esempio n. 2
0
 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();
 }
Esempio n. 3
0
// 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;
}
Esempio n. 4
0
// 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;
}
Esempio n. 5
0
 // Walk through the data in order.
 ciProfileData* first_data() { return data_at(first_di()); }