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 <stdlib.h> | 51 #include <stdlib.h> |
52 | 52 |
53 #include <errno.h> | 53 #include <errno.h> |
54 | 54 |
55 #undef MAP_TYPE | 55 #undef MAP_TYPE |
56 | 56 |
57 #include "v8.h" | 57 #include "v8.h" |
58 | 58 |
59 #include "platform.h" | 59 #include "platform.h" |
60 | 60 |
61 namespace v8 { namespace internal { | 61 namespace v8 { |
| 62 namespace internal { |
62 | 63 |
63 // 0 is never a valid thread id on MacOSX since a ptread_t is | 64 // 0 is never a valid thread id on MacOSX since a ptread_t is |
64 // a pointer. | 65 // a pointer. |
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 // Correct Mac OS X Leopard 'ceil' behavior. | 70 // Correct Mac OS X Leopard 'ceil' behavior. |
70 if (-1.0 < x && x < 0.0) { | 71 if (-1.0 < x && x < 0.0) { |
71 return -0.0; | 72 return -0.0; |
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
568 } | 569 } |
569 | 570 |
570 // This sampler is no longer the active sampler. | 571 // This sampler is no longer the active sampler. |
571 active_sampler_ = NULL; | 572 active_sampler_ = NULL; |
572 active_ = false; | 573 active_ = false; |
573 } | 574 } |
574 | 575 |
575 #endif // ENABLE_LOGGING_AND_PROFILING | 576 #endif // ENABLE_LOGGING_AND_PROFILING |
576 | 577 |
577 } } // namespace v8::internal | 578 } } // namespace v8::internal |
OLD | NEW |