| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 CHECK(cpu.has_sse2()); // SSE2 support is mandatory. | 55 CHECK(cpu.has_sse2()); // SSE2 support is mandatory. |
| 56 CHECK(cpu.has_cmov()); // CMOV support is mandatory. | 56 CHECK(cpu.has_cmov()); // CMOV support is mandatory. |
| 57 | 57 |
| 58 // Only use statically determined features for cross compile (snapshot). | 58 // Only use statically determined features for cross compile (snapshot). |
| 59 if (cross_compile) return; | 59 if (cross_compile) return; |
| 60 | 60 |
| 61 if (cpu.has_sse41() && FLAG_enable_sse4_1) supported_ |= 1u << SSE4_1; | 61 if (cpu.has_sse41() && FLAG_enable_sse4_1) supported_ |= 1u << SSE4_1; |
| 62 if (cpu.has_sse3() && FLAG_enable_sse3) supported_ |= 1u << SSE3; | 62 if (cpu.has_sse3() && FLAG_enable_sse3) supported_ |= 1u << SSE3; |
| 63 if (cpu.has_avx() && FLAG_enable_avx) supported_ |= 1u << AVX; | 63 if (cpu.has_avx() && FLAG_enable_avx) supported_ |= 1u << AVX; |
| 64 if (cpu.has_fma3() && FLAG_enable_fma3) supported_ |= 1u << FMA3; | 64 if (cpu.has_fma3() && FLAG_enable_fma3) supported_ |= 1u << FMA3; |
| 65 if (cpu.is_atom() && FLAG_enable_atom) supported_ |= 1u << ATOM; |
| 65 } | 66 } |
| 66 | 67 |
| 67 | 68 |
| 68 void CpuFeatures::PrintTarget() { } | 69 void CpuFeatures::PrintTarget() { } |
| 69 void CpuFeatures::PrintFeatures() { | 70 void CpuFeatures::PrintFeatures() { |
| 70 printf("SSE3=%d SSE4_1=%d AVX=%d FMA3=%d\n", CpuFeatures::IsSupported(SSE3), | 71 printf("SSE3=%d SSE4_1=%d AVX=%d FMA3=%d ATOM=%d\n", |
| 71 CpuFeatures::IsSupported(SSE4_1), CpuFeatures::IsSupported(AVX), | 72 CpuFeatures::IsSupported(SSE3), CpuFeatures::IsSupported(SSE4_1), |
| 72 CpuFeatures::IsSupported(FMA3)); | 73 CpuFeatures::IsSupported(AVX), CpuFeatures::IsSupported(FMA3), |
| 74 CpuFeatures::IsSupported(ATOM)); |
| 73 } | 75 } |
| 74 | 76 |
| 75 | 77 |
| 76 // ----------------------------------------------------------------------------- | 78 // ----------------------------------------------------------------------------- |
| 77 // Implementation of Displacement | 79 // Implementation of Displacement |
| 78 | 80 |
| 79 void Displacement::init(Label* L, Type type) { | 81 void Displacement::init(Label* L, Type type) { |
| 80 DCHECK(!L->is_bound()); | 82 DCHECK(!L->is_bound()); |
| 81 int next = 0; | 83 int next = 0; |
| 82 if (L->is_linked()) { | 84 if (L->is_linked()) { |
| (...skipping 2662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2745 fprintf(coverage_log, "%s\n", file_line); | 2747 fprintf(coverage_log, "%s\n", file_line); |
| 2746 fflush(coverage_log); | 2748 fflush(coverage_log); |
| 2747 } | 2749 } |
| 2748 } | 2750 } |
| 2749 | 2751 |
| 2750 #endif | 2752 #endif |
| 2751 | 2753 |
| 2752 } } // namespace v8::internal | 2754 } } // namespace v8::internal |
| 2753 | 2755 |
| 2754 #endif // V8_TARGET_ARCH_IA32 | 2756 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |