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

Side by Side Diff: src/heap.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 | « src/checks.cc ('k') | src/isolate.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 5918 matching lines...) Expand 10 before | Expand all | Expand 10 after
5929 if (uncommit) UncommitFromSpace(); 5929 if (uncommit) UncommitFromSpace();
5930 5930
5931 return finished; 5931 return finished;
5932 } 5932 }
5933 5933
5934 5934
5935 #ifdef DEBUG 5935 #ifdef DEBUG
5936 5936
5937 void Heap::Print() { 5937 void Heap::Print() {
5938 if (!HasBeenSetUp()) return; 5938 if (!HasBeenSetUp()) return;
5939 isolate()->PrintStack(); 5939 isolate()->PrintStack(stdout);
5940 AllSpaces spaces(this); 5940 AllSpaces spaces(this);
5941 for (Space* space = spaces.next(); space != NULL; space = spaces.next()) { 5941 for (Space* space = spaces.next(); space != NULL; space = spaces.next()) {
5942 space->Print(); 5942 space->Print();
5943 } 5943 }
5944 } 5944 }
5945 5945
5946 5946
5947 void Heap::ReportCodeStatistics(const char* title) { 5947 void Heap::ReportCodeStatistics(const char* title) {
5948 PrintF(">>>>>> Code Stats (%s) >>>>>>\n", title); 5948 PrintF(">>>>>> Code Stats (%s) >>>>>>\n", title);
5949 PagedSpace::ResetCodeStatistics(); 5949 PagedSpace::ResetCodeStatistics();
(...skipping 1996 matching lines...) Expand 10 before | Expand all | Expand 10 after
7946 if (FLAG_parallel_recompilation) { 7946 if (FLAG_parallel_recompilation) {
7947 heap_->relocation_mutex_->Lock(); 7947 heap_->relocation_mutex_->Lock();
7948 #ifdef DEBUG 7948 #ifdef DEBUG
7949 heap_->relocation_mutex_locked_by_optimizer_thread_ = 7949 heap_->relocation_mutex_locked_by_optimizer_thread_ =
7950 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); 7950 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread();
7951 #endif // DEBUG 7951 #endif // DEBUG
7952 } 7952 }
7953 } 7953 }
7954 7954
7955 } } // namespace v8::internal 7955 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/checks.cc ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698