| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 #if USE_EABI_HARDFLOAT | 98 #if USE_EABI_HARDFLOAT |
| 99 PrintF("ERROR: Binary not compiled with -mfloat-abi=hard but with " | 99 PrintF("ERROR: Binary not compiled with -mfloat-abi=hard but with " |
| 100 "-DUSE_EABI_HARDFLOAT\n"); | 100 "-DUSE_EABI_HARDFLOAT\n"); |
| 101 exit(1); | 101 exit(1); |
| 102 #endif | 102 #endif |
| 103 } | 103 } |
| 104 #endif | 104 #endif |
| 105 } | 105 } |
| 106 | 106 |
| 107 | 107 |
| 108 void MathSetup(); // Defined in platform-posix.cc. |
| 109 |
| 110 void OS::PostSetUp() { |
| 111 // Math functions depend on CPU features therefore they are initialized after |
| 112 // CPU. |
| 113 MathSetup(); |
| 114 } |
| 115 |
| 116 |
| 108 uint64_t OS::CpuFeaturesImpliedByPlatform() { | 117 uint64_t OS::CpuFeaturesImpliedByPlatform() { |
| 109 return 0; // Linux runs on anything. | 118 return 0; // Linux runs on anything. |
| 110 } | 119 } |
| 111 | 120 |
| 112 | 121 |
| 113 #ifdef __arm__ | 122 #ifdef __arm__ |
| 114 static bool CPUInfoContainsString(const char * search_string) { | 123 static bool CPUInfoContainsString(const char * search_string) { |
| 115 const char* file_name = "/proc/cpuinfo"; | 124 const char* file_name = "/proc/cpuinfo"; |
| 116 // This is written as a straight shot one pass parser | 125 // This is written as a straight shot one pass parser |
| 117 // and not using STL string and ifstream because, | 126 // and not using STL string and ifstream because, |
| (...skipping 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1249 | 1258 |
| 1250 | 1259 |
| 1251 void Sampler::Stop() { | 1260 void Sampler::Stop() { |
| 1252 ASSERT(IsActive()); | 1261 ASSERT(IsActive()); |
| 1253 SignalSender::RemoveActiveSampler(this); | 1262 SignalSender::RemoveActiveSampler(this); |
| 1254 SetActive(false); | 1263 SetActive(false); |
| 1255 } | 1264 } |
| 1256 | 1265 |
| 1257 | 1266 |
| 1258 } } // namespace v8::internal | 1267 } } // namespace v8::internal |
| OLD | NEW |