OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/base/logging.h" | 5 #include "src/base/logging.h" |
6 | 6 |
| 7 #include <cstdarg> |
7 #include <cstdio> | 8 #include <cstdio> |
8 #include <cstdlib> | 9 #include <cstdlib> |
9 | 10 |
10 #include "src/base/debug/stack_trace.h" | 11 #include "src/base/debug/stack_trace.h" |
11 #include "src/base/platform/platform.h" | 12 #include "src/base/platform/platform.h" |
12 | 13 |
13 namespace v8 { | 14 namespace v8 { |
14 namespace base { | 15 namespace base { |
15 | 16 |
16 namespace { | 17 namespace { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 va_start(arguments, format); | 66 va_start(arguments, format); |
66 v8::base::OS::VPrintError(format, arguments); | 67 v8::base::OS::VPrintError(format, arguments); |
67 va_end(arguments); | 68 va_end(arguments); |
68 v8::base::OS::PrintError("\n#\n"); | 69 v8::base::OS::PrintError("\n#\n"); |
69 | 70 |
70 if (v8::base::g_print_stack_trace) v8::base::g_print_stack_trace(); | 71 if (v8::base::g_print_stack_trace) v8::base::g_print_stack_trace(); |
71 | 72 |
72 fflush(stderr); | 73 fflush(stderr); |
73 v8::base::OS::Abort(); | 74 v8::base::OS::Abort(); |
74 } | 75 } |
OLD | NEW |