| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 95   // Convert the current time to a 64-bit integer first, before converting it | 95   // Convert the current time to a 64-bit integer first, before converting it | 
| 96   // to an unsigned. Going directly will cause an overflow and the seed to be | 96   // to an unsigned. Going directly will cause an overflow and the seed to be | 
| 97   // set to all ones. The seed will be identical for different instances that | 97   // set to all ones. The seed will be identical for different instances that | 
| 98   // call this setup code within the same millisecond. | 98   // call this setup code within the same millisecond. | 
| 99   uint64_t seed = static_cast<uint64_t>(TimeCurrentMillis()); | 99   uint64_t seed = static_cast<uint64_t>(TimeCurrentMillis()); | 
| 100   srandom(static_cast<unsigned int>(seed)); | 100   srandom(static_cast<unsigned int>(seed)); | 
| 101   limit_mutex = CreateMutex(); | 101   limit_mutex = CreateMutex(); | 
| 102 } | 102 } | 
| 103 | 103 | 
| 104 | 104 | 
|  | 105 void MathSetup();  // Defined in platform-posix.cc. | 
|  | 106 | 
|  | 107 void OS::PostSetUp() { | 
|  | 108   // Math functions depend on CPU features therefore they are initialized after | 
|  | 109   // CPU. | 
|  | 110   MathSetup(); | 
|  | 111 } | 
|  | 112 | 
|  | 113 | 
| 105 uint64_t OS::CpuFeaturesImpliedByPlatform() { | 114 uint64_t OS::CpuFeaturesImpliedByPlatform() { | 
| 106   return 0;  // Solaris runs on a lot of things. | 115   return 0;  // Solaris runs on a lot of things. | 
| 107 } | 116 } | 
| 108 | 117 | 
| 109 | 118 | 
| 110 int OS::ActivationFrameAlignment() { | 119 int OS::ActivationFrameAlignment() { | 
| 111   // GCC generates code that requires 16 byte alignment such as movdqa. | 120   // GCC generates code that requires 16 byte alignment such as movdqa. | 
| 112   return Max(STACK_ALIGN, 16); | 121   return Max(STACK_ALIGN, 16); | 
| 113 } | 122 } | 
| 114 | 123 | 
| (...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 878 } | 887 } | 
| 879 | 888 | 
| 880 | 889 | 
| 881 void Sampler::Stop() { | 890 void Sampler::Stop() { | 
| 882   ASSERT(IsActive()); | 891   ASSERT(IsActive()); | 
| 883   SignalSender::RemoveActiveSampler(this); | 892   SignalSender::RemoveActiveSampler(this); | 
| 884   SetActive(false); | 893   SetActive(false); | 
| 885 } | 894 } | 
| 886 | 895 | 
| 887 } }  // namespace v8::internal | 896 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|