| 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();
|
| }
|
|
|