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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 uint64_t seed = static_cast<uint64_t>(TimeCurrentMillis()); | 82 uint64_t seed = static_cast<uint64_t>(TimeCurrentMillis()); |
83 srandom(static_cast<unsigned int>(seed)); | 83 srandom(static_cast<unsigned int>(seed)); |
84 } | 84 } |
85 | 85 |
86 | 86 |
87 uint64_t OS::CpuFeaturesImpliedByPlatform() { | 87 uint64_t OS::CpuFeaturesImpliedByPlatform() { |
88 return 0; // FreeBSD runs on anything. | 88 return 0; // FreeBSD runs on anything. |
89 } | 89 } |
90 | 90 |
91 | 91 |
92 double OS::nan_value() { | |
93 return NAN; | |
94 } | |
95 | |
96 | |
97 int OS::ActivationFrameAlignment() { | 92 int OS::ActivationFrameAlignment() { |
98 // 16 byte alignment on FreeBSD | 93 // 16 byte alignment on FreeBSD |
99 return 16; | 94 return 16; |
100 } | 95 } |
101 | 96 |
102 | 97 |
103 // We keep the lowest and highest addresses mapped as a quick way of | 98 // We keep the lowest and highest addresses mapped as a quick way of |
104 // determining that pointers are outside the heap (used mostly in assertions | 99 // determining that pointers are outside the heap (used mostly in assertions |
105 // and verification). The estimate is conservative, ie, not all addresses in | 100 // and verification). The estimate is conservative, ie, not all addresses in |
106 // 'allocated' space are actually allocated to our heap. The range is | 101 // 'allocated' space are actually allocated to our heap. The range is |
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 } | 636 } |
642 | 637 |
643 // This sampler is no longer the active sampler. | 638 // This sampler is no longer the active sampler. |
644 active_sampler_ = NULL; | 639 active_sampler_ = NULL; |
645 active_ = false; | 640 active_ = false; |
646 } | 641 } |
647 | 642 |
648 #endif // ENABLE_LOGGING_AND_PROFILING | 643 #endif // ENABLE_LOGGING_AND_PROFILING |
649 | 644 |
650 } } // namespace v8::internal | 645 } } // namespace v8::internal |
OLD | NEW |