~ubuntu-branches/ubuntu/saucy/libv8/saucy

« back to all changes in this revision

Viewing changes to src/checks.h

  • Committer: Package Import Robot
  • Author(s): Jérémy Lal
  • Date: 2012-04-07 16:26:13 UTC
  • mfrom: (15.1.27 sid)
  • Revision ID: package-import@ubuntu.com-20120407162613-dqo1m6w9r3fh8tst
Tags: 3.8.9.16-3
* mipsel build fixes :
  + v8_use_mips_abi_hardfloat=false, this lowers EABI requirements.
  + v8_can_use_fpu_instructions=false, detect if FPU is present.
  + set -Wno-unused-but-set-variable only on mipsel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
4
4
// met:
265
265
// The ASSERT macro is equivalent to CHECK except that it only
266
266
// generates code in debug builds.
267
267
#ifdef DEBUG
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))
276
276
#else
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)