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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 // There may be no filename in this line. Skip to next. | 284 // There may be no filename in this line. Skip to next. |
285 if (start_of_path == NULL) continue; | 285 if (start_of_path == NULL) continue; |
286 buffer[bytes_read] = 0; | 286 buffer[bytes_read] = 0; |
287 LOG(SharedLibraryEvent(start_of_path, start, end)); | 287 LOG(SharedLibraryEvent(start_of_path, start, end)); |
288 } | 288 } |
289 close(fd); | 289 close(fd); |
290 #endif | 290 #endif |
291 } | 291 } |
292 | 292 |
293 | 293 |
| 294 void OS::SignalCodeMovingGC() { |
| 295 } |
| 296 |
| 297 |
294 int OS::StackWalk(Vector<OS::StackFrame> frames) { | 298 int OS::StackWalk(Vector<OS::StackFrame> frames) { |
295 int frames_size = frames.length(); | 299 int frames_size = frames.length(); |
296 ScopedVector<void*> addresses(frames_size); | 300 ScopedVector<void*> addresses(frames_size); |
297 | 301 |
298 int frames_count = backtrace(addresses.start(), frames_size); | 302 int frames_count = backtrace(addresses.start(), frames_size); |
299 | 303 |
300 char** symbols = backtrace_symbols(addresses.start(), frames_count); | 304 char** symbols = backtrace_symbols(addresses.start(), frames_count); |
301 if (symbols == NULL) { | 305 if (symbols == NULL) { |
302 return kStackWalkError; | 306 return kStackWalkError; |
303 } | 307 } |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 } | 663 } |
660 | 664 |
661 // This sampler is no longer the active sampler. | 665 // This sampler is no longer the active sampler. |
662 active_sampler_ = NULL; | 666 active_sampler_ = NULL; |
663 active_ = false; | 667 active_ = false; |
664 } | 668 } |
665 | 669 |
666 #endif // ENABLE_LOGGING_AND_PROFILING | 670 #endif // ENABLE_LOGGING_AND_PROFILING |
667 | 671 |
668 } } // namespace v8::internal | 672 } } // namespace v8::internal |
OLD | NEW |