1
// Copyright 2011 the V8 project authors. All rights reserved.
1
// Copyright 2012 the V8 project authors. All rights reserved.
2
2
// Redistribution and use in source and binary forms, with or without
3
3
// modification, are permitted provided that the following conditions are
265
265
// The ASSERT macro is equivalent to CHECK except that it only
266
266
// generates code in debug builds.
268
#define ASSERT_RESULT(expr) CHECK(expr)
269
#define ASSERT(condition) CHECK(condition)
270
#define ASSERT_EQ(v1, v2) CHECK_EQ(v1, v2)
271
#define ASSERT_NE(v1, v2) CHECK_NE(v1, v2)
272
#define ASSERT_GE(v1, v2) CHECK_GE(v1, v2)
273
#define ASSERT_LT(v1, v2) CHECK_LT(v1, v2)
274
#define ASSERT_LE(v1, v2) CHECK_LE(v1, v2)
275
#define SLOW_ASSERT(condition) if (FLAG_enable_slow_asserts) CHECK(condition)
268
#define ASSERT_RESULT(expr) CHECK(expr)
269
#define ASSERT(condition) CHECK(condition)
270
#define ASSERT_EQ(v1, v2) CHECK_EQ(v1, v2)
271
#define ASSERT_NE(v1, v2) CHECK_NE(v1, v2)
272
#define ASSERT_GE(v1, v2) CHECK_GE(v1, v2)
273
#define ASSERT_LT(v1, v2) CHECK_LT(v1, v2)
274
#define ASSERT_LE(v1, v2) CHECK_LE(v1, v2)
275
#define SLOW_ASSERT(condition) CHECK(!FLAG_enable_slow_asserts || (condition))
277
#define ASSERT_RESULT(expr) (expr)
277
#define ASSERT_RESULT(expr) (expr)
278
278
#define ASSERT(condition) ((void) 0)
279
279
#define ASSERT_EQ(v1, v2) ((void) 0)
280
280
#define ASSERT_NE(v1, v2) ((void) 0)