| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 PrintF("ERROR: Binary not compiled with -mfloat-abi=hard but with " | 123 PrintF("ERROR: Binary not compiled with -mfloat-abi=hard but with " |
| 124 "-DUSE_EABI_HARDFLOAT\n"); | 124 "-DUSE_EABI_HARDFLOAT\n"); |
| 125 exit(1); | 125 exit(1); |
| 126 #endif | 126 #endif |
| 127 } | 127 } |
| 128 #endif | 128 #endif |
| 129 } | 129 } |
| 130 | 130 |
| 131 | 131 |
| 132 uint64_t OS::CpuFeaturesImpliedByPlatform() { | 132 uint64_t OS::CpuFeaturesImpliedByPlatform() { |
| 133 #if(defined(__mips_hard_float) && __mips_hard_float != 0) | |
| 134 // Here gcc is telling us that we are on an MIPS and gcc is assuming that we | |
| 135 // have FPU instructions. If gcc can assume it then so can we. | |
| 136 return 1u << FPU; | |
| 137 #else | |
| 138 return 0; // Linux runs on anything. | 133 return 0; // Linux runs on anything. |
| 139 #endif | |
| 140 } | 134 } |
| 141 | 135 |
| 142 | 136 |
| 143 #ifdef __arm__ | 137 #ifdef __arm__ |
| 144 static bool CPUInfoContainsString(const char * search_string) { | 138 static bool CPUInfoContainsString(const char * search_string) { |
| 145 const char* file_name = "/proc/cpuinfo"; | 139 const char* file_name = "/proc/cpuinfo"; |
| 146 // This is written as a straight shot one pass parser | 140 // This is written as a straight shot one pass parser |
| 147 // and not using STL string and ifstream because, | 141 // and not using STL string and ifstream because, |
| 148 // on Linux, it's reading from a (non-mmap-able) | 142 // on Linux, it's reading from a (non-mmap-able) |
| 149 // character special device. | 143 // character special device. |
| (...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1143 | 1137 |
| 1144 | 1138 |
| 1145 void Sampler::Stop() { | 1139 void Sampler::Stop() { |
| 1146 ASSERT(IsActive()); | 1140 ASSERT(IsActive()); |
| 1147 SignalSender::RemoveActiveSampler(this); | 1141 SignalSender::RemoveActiveSampler(this); |
| 1148 SetActive(false); | 1142 SetActive(false); |
| 1149 } | 1143 } |
| 1150 | 1144 |
| 1151 | 1145 |
| 1152 } } // namespace v8::internal | 1146 } } // namespace v8::internal |
| OLD | NEW |