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

Side by Side Diff: src/platform.h

Issue 7310025: Remove support for logging into a memory buffer. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Don't add runtime test-only functions Created 9 years, 5 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 // Returns the daylight savings offset for the given time. 171 // Returns the daylight savings offset for the given time.
172 static double DaylightSavingsOffset(double time); 172 static double DaylightSavingsOffset(double time);
173 173
174 // Returns last OS error. 174 // Returns last OS error.
175 static int GetLastError(); 175 static int GetLastError();
176 176
177 static FILE* FOpen(const char* path, const char* mode); 177 static FILE* FOpen(const char* path, const char* mode);
178 static bool Remove(const char* path); 178 static bool Remove(const char* path);
179 179
180 // Opens a temporary file, the file is auto removed on close.
181 static FILE* OpenTemporaryFile();
182
180 // Log file open mode is platform-dependent due to line ends issues. 183 // Log file open mode is platform-dependent due to line ends issues.
181 static const char* const LogFileOpenMode; 184 static const char* const LogFileOpenMode;
182 185
183 // Print output to console. This is mostly used for debugging output. 186 // Print output to console. This is mostly used for debugging output.
184 // On platforms that has standard terminal output, the output 187 // On platforms that has standard terminal output, the output
185 // should go to stdout. 188 // should go to stdout.
186 static void Print(const char* format, ...); 189 static void Print(const char* format, ...);
187 static void VPrint(const char* format, va_list args); 190 static void VPrint(const char* format, va_list args);
188 191
189 // Print output to a file. This is mostly used for debugging output. 192 // Print output to a file. This is mostly used for debugging output.
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 Atomic32 active_; 654 Atomic32 active_;
652 PlatformData* data_; // Platform specific data. 655 PlatformData* data_; // Platform specific data.
653 int samples_taken_; // Counts stack samples taken. 656 int samples_taken_; // Counts stack samples taken.
654 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); 657 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler);
655 }; 658 };
656 659
657 660
658 } } // namespace v8::internal 661 } } // namespace v8::internal
659 662
660 #endif // V8_PLATFORM_H_ 663 #endif // V8_PLATFORM_H_
OLDNEW
« no previous file with comments | « src/log-utils.cc ('k') | src/platform-posix.cc » ('j') | test/cctest/test-log.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698