Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(829)

Unified Diff: src/list.h

Issue 2619353006: Refactor FrameSummary for JS and Wasm frames (Closed)
Patch Set: Address comment Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/isolate.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/list.h
diff --git a/src/list.h b/src/list.h
index 2ccc39a9081d4b3e2d42de55fcfebf539dd40a68..60862e8d0289ee8ed4a6e6abe7960553032b8ffb 100644
--- a/src/list.h
+++ b/src/list.h
@@ -64,8 +64,8 @@ class List {
// not safe to use after operations that can change the list's
// backing store (e.g. Add).
inline T& operator[](int i) const {
- DCHECK(0 <= i);
- SLOW_DCHECK(static_cast<unsigned>(i) < static_cast<unsigned>(length_));
+ DCHECK_LE(0, i);
+ DCHECK_GT(length_, i);
return data_[i];
}
inline T& at(int i) const { return operator[](i); }
« no previous file with comments | « src/isolate.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698