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

Side by Side Diff: src/checks.cc

Issue 15298005: Make Runtime_Abort print to stderr instead of stdout. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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
« no previous file with comments | « no previous file | src/heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 va_start(arguments, format); 46 va_start(arguments, format);
47 i::OS::VPrintError(format, arguments); 47 i::OS::VPrintError(format, arguments);
48 va_end(arguments); 48 va_end(arguments);
49 i::OS::PrintError("\n#\n"); 49 i::OS::PrintError("\n#\n");
50 i::OS::DumpBacktrace(); 50 i::OS::DumpBacktrace();
51 } 51 }
52 // First two times we may try to print a stack dump. 52 // First two times we may try to print a stack dump.
53 if (fatal_error_handler_nesting_depth < 3) { 53 if (fatal_error_handler_nesting_depth < 3) {
54 if (i::FLAG_stack_trace_on_abort) { 54 if (i::FLAG_stack_trace_on_abort) {
55 // Call this one twice on double fault 55 // Call this one twice on double fault
56 i::Isolate::Current()->PrintStack(); 56 i::Isolate::Current()->PrintStack(stderr);
57 } 57 }
58 } 58 }
59 i::OS::Abort(); 59 i::OS::Abort();
60 } 60 }
61 61
62 62
63 void CheckEqualsHelper(const char* file, 63 void CheckEqualsHelper(const char* file,
64 int line, 64 int line,
65 const char* expected_source, 65 const char* expected_source,
66 v8::Handle<v8::Value> expected, 66 v8::Handle<v8::Value> expected,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 103
104 namespace v8 { namespace internal { 104 namespace v8 { namespace internal {
105 105
106 bool EnableSlowAsserts() { return FLAG_enable_slow_asserts; } 106 bool EnableSlowAsserts() { return FLAG_enable_slow_asserts; }
107 107
108 intptr_t HeapObjectTagMask() { return kHeapObjectTagMask; } 108 intptr_t HeapObjectTagMask() { return kHeapObjectTagMask; }
109 109
110 } } // namespace v8::internal 110 } } // namespace v8::internal
111 111
OLDNEW
« no previous file with comments | « no previous file | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698