summaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/test-transitions.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/cctest/test-transitions.cc')
-rw-r--r--deps/v8/test/cctest/test-transitions.cc23
1 files changed, 15 insertions, 8 deletions
diff --git a/deps/v8/test/cctest/test-transitions.cc b/deps/v8/test/cctest/test-transitions.cc
index 60a0706b04..8834f9ade1 100644
--- a/deps/v8/test/cctest/test-transitions.cc
+++ b/deps/v8/test/cctest/test-transitions.cc
@@ -2,9 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// TODO(mythria): Remove this define after this flag is turned on globally
-#define V8_IMMINENT_DEPRECATION_WARNINGS
-
#include <stdlib.h>
#include <utility>
@@ -87,7 +84,9 @@ TEST(TransitionArray_SimpleFieldTransitions) {
(key == *name2 && target == *map2));
}
- DCHECK(TransitionArray::IsSortedNoDuplicates(*map0));
+#ifdef DEBUG
+ CHECK(TransitionArray::IsSortedNoDuplicates(*map0));
+#endif
}
@@ -136,7 +135,9 @@ TEST(TransitionArray_FullFieldTransitions) {
(key == *name2 && target == *map2));
}
- DCHECK(TransitionArray::IsSortedNoDuplicates(*map0));
+#ifdef DEBUG
+ CHECK(TransitionArray::IsSortedNoDuplicates(*map0));
+#endif
}
@@ -183,7 +184,9 @@ TEST(TransitionArray_DifferentFieldNames) {
}
}
- DCHECK(TransitionArray::IsSortedNoDuplicates(*map0));
+#ifdef DEBUG
+ CHECK(TransitionArray::IsSortedNoDuplicates(*map0));
+#endif
}
@@ -224,7 +227,9 @@ TEST(TransitionArray_SameFieldNamesDifferentAttributesSimple) {
CHECK_EQ(*name, TransitionArray::GetKey(map0->raw_transitions(), i));
}
- DCHECK(TransitionArray::IsSortedNoDuplicates(*map0));
+#ifdef DEBUG
+ CHECK(TransitionArray::IsSortedNoDuplicates(*map0));
+#endif
}
@@ -302,5 +307,7 @@ TEST(TransitionArray_SameFieldNamesDifferentAttributes) {
}
}
- DCHECK(TransitionArray::IsSortedNoDuplicates(*map0));
+#ifdef DEBUG
+ CHECK(TransitionArray::IsSortedNoDuplicates(*map0));
+#endif
}