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

Unified Diff: runtime/bin/builtin.h

Issue 9189003: Move assert.h/assert.cc from runtime/vm to runtime/platform (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Check for correct rebase Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/bin.gypi ('k') | runtime/bin/builtin_natives.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/builtin.h
diff --git a/runtime/bin/builtin.h b/runtime/bin/builtin.h
index b145e6350d8697eec951df76c284fae90cf1a35d..32a713bffc1d357958d54f55498809045a94952d 100644
--- a/runtime/bin/builtin.h
+++ b/runtime/bin/builtin.h
@@ -9,25 +9,9 @@
#include <stdlib.h>
#include "include/dart_api.h"
+#include "platform/assert.h"
#include "platform/globals.h"
-#ifdef DEBUG
-#define ASSERT(expr) assert(expr)
-#else
-#define ASSERT(expr) USE(expr)
-#endif
-
-#define FATAL(error) \
- fprintf(stderr, "%s\n", error); \
- fflush(stderr); \
- abort();
-
-#define UNREACHABLE() \
- FATAL("unreachable code")
-
-#define UNIMPLEMENTED() \
- FATAL("unimplemented code")
-
#define FUNCTION_NAME(name) Builtin_##name
#define REGISTER_FUNCTION(name, count) \
{ ""#name, FUNCTION_NAME(name), count },
« no previous file with comments | « runtime/bin/bin.gypi ('k') | runtime/bin/builtin_natives.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698