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

Unified Diff: src/checks.cc

Issue 27324: Small fixes to allow all-in-one compilation.
Patch Set: Created 11 years, 10 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 | « src/api.cc ('k') | src/globals.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/checks.cc
diff --git a/src/checks.cc b/src/checks.cc
index 2f254569f41badb984c2ac477bf13afe2f9261b5..f8a2f24f64362ab78bfaf93be017dae4040328ba 100644
--- a/src/checks.cc
+++ b/src/checks.cc
@@ -32,8 +32,6 @@
#include "platform.h"
#include "top.h"
-using namespace v8::internal;
-
static int fatal_error_handler_nesting_depth = 0;
// Contains protection against recursive calls (faults while handling faults).
@@ -41,21 +39,21 @@ extern "C" void V8_Fatal(const char* file, int line, const char* format, ...) {
fatal_error_handler_nesting_depth++;
// First time we try to print an error message
if (fatal_error_handler_nesting_depth < 2) {
- OS::PrintError("\n\n#\n# Fatal error in %s, line %d\n# ", file, line);
+ i::OS::PrintError("\n\n#\n# Fatal error in %s, line %d\n# ", file, line);
va_list arguments;
va_start(arguments, format);
- OS::VPrintError(format, arguments);
+ i::OS::VPrintError(format, arguments);
va_end(arguments);
- OS::PrintError("\n#\n\n");
+ i::OS::PrintError("\n#\n\n");
}
// First two times we may try to print a stack dump.
if (fatal_error_handler_nesting_depth < 3) {
- if (FLAG_stack_trace_on_abort) {
+ if (i::FLAG_stack_trace_on_abort) {
// Call this one twice on double fault
- Top::PrintStack();
+ i::Top::PrintStack();
}
}
- OS::Abort();
+ i::OS::Abort();
}
@@ -90,11 +88,11 @@ void CheckNonEqualsHelper(const char* file,
void API_Fatal(const char* location, const char* format, ...) {
- OS::PrintError("\n#\n# Fatal error in %s\n# ", location);
+ i::OS::PrintError("\n#\n# Fatal error in %s\n# ", location);
va_list arguments;
va_start(arguments, format);
- OS::VPrintError(format, arguments);
+ i::OS::VPrintError(format, arguments);
va_end(arguments);
- OS::PrintError("\n#\n\n");
- OS::Abort();
+ i::OS::PrintError("\n#\n\n");
+ i::OS::Abort();
}
« no previous file with comments | « src/api.cc ('k') | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698