Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Side by Side Diff: src/checks.h

Issue 549079: Support for MIPS in architecture independent files.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 V8_Fatal(__FILE__, __LINE__, "unimplemented code") 44 V8_Fatal(__FILE__, __LINE__, "unimplemented code")
45 #define UNREACHABLE() \ 45 #define UNREACHABLE() \
46 V8_Fatal(__FILE__, __LINE__, "unreachable code") 46 V8_Fatal(__FILE__, __LINE__, "unreachable code")
47 #else 47 #else
48 #define FATAL(msg) \ 48 #define FATAL(msg) \
49 V8_Fatal("", 0, "%s", (msg)) 49 V8_Fatal("", 0, "%s", (msg))
50 #define UNIMPLEMENTED() \ 50 #define UNIMPLEMENTED() \
51 V8_Fatal("", 0, "unimplemented code") 51 V8_Fatal("", 0, "unimplemented code")
52 #define UNREACHABLE() ((void) 0) 52 #define UNREACHABLE() ((void) 0)
53 #endif 53 #endif
54 54
Søren Thygesen Gjesse 2010/01/19 22:59:12 Please revert this.
Alexandre 2010/01/22 23:08:42 Reverted. On 2010/01/19 22:59:12, Søren Gjesse wro
55
56 // Used by the CHECK macro -- should not be called directly. 55 // Used by the CHECK macro -- should not be called directly.
57 static inline void CheckHelper(const char* file, 56 static inline void CheckHelper(const char* file,
58 int line, 57 int line,
59 const char* source, 58 const char* source,
60 bool condition) { 59 bool condition) {
61 if (!condition) 60 if (!condition)
62 V8_Fatal(file, line, "CHECK(%s) failed", source); 61 V8_Fatal(file, line, "CHECK(%s) failed", source);
63 } 62 }
64 63
65 64
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 274
276 275
277 #define ASSERT_TAG_ALIGNED(address) \ 276 #define ASSERT_TAG_ALIGNED(address) \
278 ASSERT((reinterpret_cast<intptr_t>(address) & kHeapObjectTagMask) == 0) 277 ASSERT((reinterpret_cast<intptr_t>(address) & kHeapObjectTagMask) == 0)
279 278
280 #define ASSERT_SIZE_TAG_ALIGNED(size) ASSERT((size & kHeapObjectTagMask) == 0) 279 #define ASSERT_SIZE_TAG_ALIGNED(size) ASSERT((size & kHeapObjectTagMask) == 0)
281 280
282 #define ASSERT_NOT_NULL(p) ASSERT_NE(NULL, p) 281 #define ASSERT_NOT_NULL(p) ASSERT_NE(NULL, p)
283 282
284 #endif // V8_CHECKS_H_ 283 #endif // V8_CHECKS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698