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

Side by Side Diff: src/platform.h

Issue 13093: Fixed d8 on leopard. (Closed)
Patch Set: Created 12 years 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
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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 char* StrDup(const char* str); 208 static char* StrDup(const char* str);
209 static char* StrNDup(const char* str, size_t n);
209 210
210 // Support for profiler. Can do nothing, in which case ticks 211 // Support for profiler. Can do nothing, in which case ticks
211 // occuring in shared libraries will not be properly accounted 212 // occuring in shared libraries will not be properly accounted
212 // for. 213 // for.
213 static void LogSharedLibraryAddresses(); 214 static void LogSharedLibraryAddresses();
214 215
215 // Returns the double constant NAN 216 // Returns the double constant NAN
216 static double nan_value(); 217 static double nan_value();
217 218
218 // Returns the activation frame alignment constraint or zero if 219 // Returns the activation frame alignment constraint or zero if
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 bool active_; 440 bool active_;
440 PlatformData* data_; // Platform specific data. 441 PlatformData* data_; // Platform specific data.
441 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler); 442 DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler);
442 }; 443 };
443 444
444 #endif // ENABLE_LOGGING_AND_PROFILING 445 #endif // ENABLE_LOGGING_AND_PROFILING
445 446
446 } } // namespace v8::internal 447 } } // namespace v8::internal
447 448
448 #endif // V8_PLATFORM_H_ 449 #endif // V8_PLATFORM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698