1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
8 #include "include/v8.h"
9 #include "src/base/logging.h"
17 #ifdef ENABLE_SLOW_DCHECKS
18 #define SLOW_DCHECK(condition) \
19 CHECK(!v8::internal::FLAG_enable_slow_asserts || (condition))
20 extern bool FLAG_enable_slow_asserts;
22 #define SLOW_DCHECK(condition) ((void) 0)
23 const bool FLAG_enable_slow_asserts = false;
26 } } // namespace v8::internal
28 #define DCHECK_TAG_ALIGNED(address) \
29 DCHECK((reinterpret_cast<intptr_t>(address) & \
30 ::v8::internal::kHeapObjectTagMask) == 0)
32 #define DCHECK_SIZE_TAG_ALIGNED(size) \
33 DCHECK((size & ::v8::internal::kHeapObjectTagMask) == 0)
35 #endif // V8_CHECKS_H_