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

Side by Side Diff: src/platform-freebsd.cc

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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 void OS::StrNCpy(Vector<char> dest, const char* src, size_t n) { 187 void OS::StrNCpy(Vector<char> dest, const char* src, size_t n) {
188 strncpy(dest.start(), src, n); 188 strncpy(dest.start(), src, n);
189 } 189 }
190 190
191 191
192 char *OS::StrDup(const char* str) { 192 char *OS::StrDup(const char* str) {
193 return strdup(str); 193 return strdup(str);
194 } 194 }
195 195
196 196
197 char* OS::StrNDup(const char* str, size_t n) {
198 return strndup(str, n);
199 }
200
201
197 double OS::nan_value() { 202 double OS::nan_value() {
198 return NAN; 203 return NAN;
199 } 204 }
200 205
201 206
202 int OS::ActivationFrameAlignment() { 207 int OS::ActivationFrameAlignment() {
203 // 16 byte alignment on FreeBSD 208 // 16 byte alignment on FreeBSD
204 return 16; 209 return 16;
205 } 210 }
206 211
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 } 694 }
690 695
691 // This sampler is no longer the active sampler. 696 // This sampler is no longer the active sampler.
692 active_sampler_ = NULL; 697 active_sampler_ = NULL;
693 active_ = false; 698 active_ = false;
694 } 699 }
695 700
696 #endif // ENABLE_LOGGING_AND_PROFILING 701 #endif // ENABLE_LOGGING_AND_PROFILING
697 702
698 } } // namespace v8::internal 703 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698