| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 #include <errno.h> | 51 #include <errno.h> |
| 52 #include <stdarg.h> | 52 #include <stdarg.h> |
| 53 | 53 |
| 54 #undef MAP_TYPE | 54 #undef MAP_TYPE |
| 55 | 55 |
| 56 #include "v8.h" | 56 #include "v8.h" |
| 57 | 57 |
| 58 #include "platform.h" | 58 #include "platform.h" |
| 59 | 59 |
| 60 | 60 |
| 61 namespace v8 { namespace internal { | 61 namespace v8 { |
| 62 namespace internal { |
| 62 | 63 |
| 63 // 0 is never a valid thread id on Linux since tids and pids share a | 64 // 0 is never a valid thread id on Linux since tids and pids share a |
| 64 // name space and pid 0 is reserved (see man 2 kill). | 65 // name space and pid 0 is reserved (see man 2 kill). |
| 65 static const pthread_t kNoThread = (pthread_t) 0; | 66 static const pthread_t kNoThread = (pthread_t) 0; |
| 66 | 67 |
| 67 | 68 |
| 68 double ceiling(double x) { | 69 double ceiling(double x) { |
| 69 return ceil(x); | 70 return ceil(x); |
| 70 } | 71 } |
| 71 | 72 |
| (...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 690 } | 691 } |
| 691 | 692 |
| 692 // This sampler is no longer the active sampler. | 693 // This sampler is no longer the active sampler. |
| 693 active_sampler_ = NULL; | 694 active_sampler_ = NULL; |
| 694 active_ = false; | 695 active_ = false; |
| 695 } | 696 } |
| 696 | 697 |
| 697 #endif // ENABLE_LOGGING_AND_PROFILING | 698 #endif // ENABLE_LOGGING_AND_PROFILING |
| 698 | 699 |
| 699 } } // namespace v8::internal | 700 } } // namespace v8::internal |
| OLD | NEW |