| OLD | NEW |
| 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 2 // All Rights Reserved. | 2 // All Rights Reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions | 5 // modification, are permitted provided that the following conditions |
| 6 // are met: | 6 // are met: |
| 7 // | 7 // |
| 8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
| 9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
| 10 // | 10 // |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 #include "serialize.h" | 43 #include "serialize.h" |
| 44 | 44 |
| 45 namespace v8 { | 45 namespace v8 { |
| 46 namespace internal { | 46 namespace internal { |
| 47 | 47 |
| 48 // ----------------------------------------------------------------------------- | 48 // ----------------------------------------------------------------------------- |
| 49 // Implementation of CpuFeatures | 49 // Implementation of CpuFeatures |
| 50 | 50 |
| 51 void CpuFeatures::ProbeImpl(bool cross_compile) { | 51 void CpuFeatures::ProbeImpl(bool cross_compile) { |
| 52 CPU cpu; | 52 CPU cpu; |
| 53 // SAHF must be available in compat/legacy mode. | |
| 54 CHECK(cpu.has_sahf()); | |
| 55 supported_ |= 1u << SAHF; | |
| 56 supported_ |= OS::CpuFeaturesImpliedByPlatform(); | 53 supported_ |= OS::CpuFeaturesImpliedByPlatform(); |
| 57 | 54 |
| 58 // Only use statically determined features for cross compile (snapshot). | 55 // Only use statically determined features for cross compile (snapshot). |
| 59 if (cross_compile) return; | 56 if (cross_compile) return; |
| 60 } | 57 } |
| 61 | 58 |
| 62 | 59 |
| 63 void CpuFeatures::PrintTarget() { } | 60 void CpuFeatures::PrintTarget() { } |
| 64 void CpuFeatures::PrintFeatures() { } | 61 void CpuFeatures::PrintFeatures() { } |
| 65 | 62 |
| (...skipping 1957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2023 fprintf(coverage_log, "%s\n", file_line); | 2020 fprintf(coverage_log, "%s\n", file_line); |
| 2024 fflush(coverage_log); | 2021 fflush(coverage_log); |
| 2025 } | 2022 } |
| 2026 } | 2023 } |
| 2027 | 2024 |
| 2028 #endif | 2025 #endif |
| 2029 | 2026 |
| 2030 } } // namespace v8::internal | 2027 } } // namespace v8::internal |
| 2031 | 2028 |
| 2032 #endif // V8_TARGET_ARCH_X87 | 2029 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |