~ubuntu-branches/ubuntu/trusty/libv8/trusty

« back to all changes in this revision

Viewing changes to src/list-inl.h

  • Committer: Package Import Robot
  • Author(s): Jérémy Lal
  • Date: 2012-02-20 14:08:17 UTC
  • mfrom: (15.1.24 sid)
  • Revision ID: package-import@ubuntu.com-20120220140817-bsvmeoa4sxsj5hbz
Tags: 3.7.12.22-3
Fix mipsel build, allow test debug-step-3 to fail (non-crucial)

Show diffs side-by-side

added added

removed removed

Lines of Context:
216
216
    int mid = (low + high) / 2;
217
217
    T mid_elem = list[mid];
218
218
 
219
 
    if (mid_elem > elem) {
 
219
    if (cmp(&mid_elem, &elem) > 0) {
220
220
      high = mid - 1;
221
221
      continue;
222
222
    }
223
 
    if (mid_elem < elem) {
 
223
    if (cmp(&mid_elem, &elem) < 0) {
224
224
      low = mid + 1;
225
225
      continue;
226
226
    }
236
236
  return SortedListBSearch<T>(list, elem, PointerValueCompare<T>);
237
237
}
238
238
 
 
239
 
239
240
} }  // namespace v8::internal
240
241
 
241
242
#endif  // V8_LIST_INL_H_