OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 uint64_t OS::CpuFeaturesImpliedByPlatform() { | 100 uint64_t OS::CpuFeaturesImpliedByPlatform() { |
101 return 0; // Solaris runs on a lot of things. | 101 return 0; // Solaris runs on a lot of things. |
102 } | 102 } |
103 | 103 |
104 | 104 |
105 int OS::ActivationFrameAlignment() { | 105 int OS::ActivationFrameAlignment() { |
106 return STACK_ALIGN; | 106 return STACK_ALIGN; |
107 } | 107 } |
108 | 108 |
109 | 109 |
| 110 void OS::ReleaseStore(volatile AtomicWord* ptr, AtomicWord value) { |
| 111 __asm__ __volatile__("" : : : "memory"); |
| 112 *ptr = value; |
| 113 } |
| 114 |
| 115 |
110 const char* OS::LocalTimezone(double time) { | 116 const char* OS::LocalTimezone(double time) { |
111 if (isnan(time)) return ""; | 117 if (isnan(time)) return ""; |
112 time_t tv = static_cast<time_t>(floor(time/msPerSecond)); | 118 time_t tv = static_cast<time_t>(floor(time/msPerSecond)); |
113 struct tm* t = localtime(&tv); | 119 struct tm* t = localtime(&tv); |
114 if (NULL == t) return ""; | 120 if (NULL == t) return ""; |
115 return tzname[0]; // The location of the timezone string on Solaris. | 121 return tzname[0]; // The location of the timezone string on Solaris. |
116 } | 122 } |
117 | 123 |
118 | 124 |
119 double OS::LocalTimeOffset() { | 125 double OS::LocalTimeOffset() { |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
638 } | 644 } |
639 | 645 |
640 // This sampler is no longer the active sampler. | 646 // This sampler is no longer the active sampler. |
641 active_sampler_ = NULL; | 647 active_sampler_ = NULL; |
642 active_ = false; | 648 active_ = false; |
643 } | 649 } |
644 | 650 |
645 #endif // ENABLE_LOGGING_AND_PROFILING | 651 #endif // ENABLE_LOGGING_AND_PROFILING |
646 | 652 |
647 } } // namespace v8::internal | 653 } } // namespace v8::internal |
OLD | NEW |