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

Side by Side Diff: src/platform.h

Issue 11546: Remove OS::WcsCpy from platform.h. This function is unused... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 1 month 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/platform-linux.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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 }; 198 };
199 199
200 // Safe formatting print. Ensures that str is always null-terminated. 200 // Safe formatting print. Ensures that str is always null-terminated.
201 // Returns the number of chars written, or -1 if output was truncated. 201 // Returns the number of chars written, or -1 if output was truncated.
202 static int SNPrintF(Vector<char> str, const char* format, ...); 202 static int SNPrintF(Vector<char> str, const char* format, ...);
203 static int VSNPrintF(Vector<char> str, 203 static int VSNPrintF(Vector<char> str,
204 const char* format, 204 const char* format,
205 va_list args); 205 va_list args);
206 206
207 static void StrNCpy(Vector<char> dest, const char* src, size_t n); 207 static void StrNCpy(Vector<char> dest, const char* src, size_t n);
208 static void WcsCpy(Vector<wchar_t> dest, const wchar_t* src);
209 static char* StrDup(const char* str); 208 static char* StrDup(const char* str);
210 209
211 // Support for profiler. Can do nothing, in which case ticks 210 // Support for profiler. Can do nothing, in which case ticks
212 // occuring in shared libraries will not be properly accounted 211 // occuring in shared libraries will not be properly accounted
213 // for. 212 // for.
214 static void LogSharedLibraryAddresses(); 213 static void LogSharedLibraryAddresses();
215 214
216 // Returns the double constant NAN 215 // Returns the double constant NAN
217 static double nan_value(); 216 static double nan_value();
218 217
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 bool active_; 439 bool active_;
441 PlatformData* data_; // Platform specific data. 440 PlatformData* data_; // Platform specific data.
442 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); 441 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler);
443 }; 442 };
444 443
445 #endif // ENABLE_LOGGING_AND_PROFILING 444 #endif // ENABLE_LOGGING_AND_PROFILING
446 445
447 } } // namespace v8::internal 446 } } // namespace v8::internal
448 447
449 #endif // V8_PLATFORM_H_ 448 #endif // V8_PLATFORM_H_
OLDNEW
« no previous file with comments | « no previous file | src/platform-linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698