| OLD | NEW |
| 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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 if (memory_) munmap(memory_, size_); | 293 if (memory_) munmap(memory_, size_); |
| 294 fclose(file_); | 294 fclose(file_); |
| 295 } | 295 } |
| 296 | 296 |
| 297 | 297 |
| 298 void OS::LogSharedLibraryAddresses() { | 298 void OS::LogSharedLibraryAddresses() { |
| 299 // TODO(1233579): Implement. | 299 // TODO(1233579): Implement. |
| 300 } | 300 } |
| 301 | 301 |
| 302 | 302 |
| 303 double OS::nan_value() { return NAN; } | 303 double OS::nan_value() { |
| 304 return NAN; |
| 305 } |
| 306 |
| 307 |
| 308 int OS::ActivationFrameAlignment() { |
| 309 // OS X activation frames must be 16 byte-aligned; see "Mac OS X ABI |
| 310 // Function Call Guide". |
| 311 return 16; |
| 312 } |
| 304 | 313 |
| 305 | 314 |
| 306 int OS::StackWalk(StackFrame* frames, int frames_size) { | 315 int OS::StackWalk(StackFrame* frames, int frames_size) { |
| 307 #ifndef MAC_OS_X_VERSION_10_5 | 316 #ifndef MAC_OS_X_VERSION_10_5 |
| 308 return 0; | 317 return 0; |
| 309 #else | 318 #else |
| 310 void** addresses = NewArray<void*>(frames_size); | 319 void** addresses = NewArray<void*>(frames_size); |
| 311 int frames_count = backtrace(addresses, frames_size); | 320 int frames_count = backtrace(addresses, frames_size); |
| 312 | 321 |
| 313 char** symbols; | 322 char** symbols; |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 634 } | 643 } |
| 635 | 644 |
| 636 // This sampler is no longer the active sampler. | 645 // This sampler is no longer the active sampler. |
| 637 active_sampler_ = NULL; | 646 active_sampler_ = NULL; |
| 638 active_ = false; | 647 active_ = false; |
| 639 } | 648 } |
| 640 | 649 |
| 641 #endif // ENABLE_LOGGING_AND_PROFILING | 650 #endif // ENABLE_LOGGING_AND_PROFILING |
| 642 | 651 |
| 643 } } // namespace v8::internal | 652 } } // namespace v8::internal |
| OLD | NEW |