#ifndef V8_LIST_H_
#define V8_LIST_H_
+#include "src/checks.h"
#include "src/utils.h"
namespace v8 {
// not safe to use after operations that can change the list's
// backing store (e.g. Add).
inline T& operator[](int i) const {
- ASSERT(0 <= i);
- SLOW_ASSERT(i < length_);
+ DCHECK(0 <= i);
+ SLOW_DCHECK(i < length_);
return data_[i];
}
inline T& at(int i) const { return operator[](i); }