Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / v8 / src / list.h
index 2244d67..ea5fd1e 100644 (file)
@@ -5,6 +5,7 @@
 #ifndef V8_LIST_H_
 #define V8_LIST_H_
 
+#include "src/checks.h"
 #include "src/utils.h"
 
 namespace v8 {
@@ -61,8 +62,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 {
-    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); }