| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 79 |
| 80 static Mutex* limit_mutex = NULL; | 80 static Mutex* limit_mutex = NULL; |
| 81 | 81 |
| 82 | 82 |
| 83 void OS::PostSetUp() { | 83 void OS::PostSetUp() { |
| 84 POSIXPostSetUp(); | 84 POSIXPostSetUp(); |
| 85 } | 85 } |
| 86 | 86 |
| 87 | 87 |
| 88 void OS::ReleaseStore(volatile AtomicWord* ptr, AtomicWord value) { | 88 void OS::ReleaseStore(volatile AtomicWord* ptr, AtomicWord value) { |
| 89 __asm__ __volatile__("" : : : "memory"); | 89 ATOMICOPS_COMPILER_BARRIER(); |
| 90 *ptr = value; | 90 *ptr = value; |
| 91 } | 91 } |
| 92 | 92 |
| 93 | 93 |
| 94 uint64_t OS::CpuFeaturesImpliedByPlatform() { | 94 uint64_t OS::CpuFeaturesImpliedByPlatform() { |
| 95 return 0; // FreeBSD runs on anything. | 95 return 0; // FreeBSD runs on anything. |
| 96 } | 96 } |
| 97 | 97 |
| 98 | 98 |
| 99 int OS::ActivationFrameAlignment() { | 99 int OS::ActivationFrameAlignment() { |
| (...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 892 | 892 |
| 893 | 893 |
| 894 void Sampler::Stop() { | 894 void Sampler::Stop() { |
| 895 ASSERT(IsActive()); | 895 ASSERT(IsActive()); |
| 896 SignalSender::RemoveActiveSampler(this); | 896 SignalSender::RemoveActiveSampler(this); |
| 897 SetActive(false); | 897 SetActive(false); |
| 898 } | 898 } |
| 899 | 899 |
| 900 | 900 |
| 901 } } // namespace v8::internal | 901 } } // namespace v8::internal |
| OLD | NEW |