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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 #ifdef DEBUG | 51 #ifdef DEBUG |
52 bool CpuFeatures::initialized_ = false; | 52 bool CpuFeatures::initialized_ = false; |
53 #endif | 53 #endif |
| 54 uint64_t CpuFeatures::force_feature_ = 0; |
54 uint64_t CpuFeatures::supported_ = 0; | 55 uint64_t CpuFeatures::supported_ = 0; |
55 uint64_t CpuFeatures::found_by_runtime_probing_only_ = 0; | 56 uint64_t CpuFeatures::found_by_runtime_probing_only_ = 0; |
56 | 57 |
57 | 58 |
58 ExternalReference ExternalReference::cpu_features() { | 59 ExternalReference ExternalReference::cpu_features() { |
59 ASSERT(CpuFeatures::initialized_); | 60 ASSERT(CpuFeatures::initialized_); |
60 return ExternalReference(&CpuFeatures::supported_); | 61 return ExternalReference(&CpuFeatures::supported_); |
61 } | 62 } |
62 | 63 |
63 | 64 |
(...skipping 2608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2672 fprintf(coverage_log, "%s\n", file_line); | 2673 fprintf(coverage_log, "%s\n", file_line); |
2673 fflush(coverage_log); | 2674 fflush(coverage_log); |
2674 } | 2675 } |
2675 } | 2676 } |
2676 | 2677 |
2677 #endif | 2678 #endif |
2678 | 2679 |
2679 } } // namespace v8::internal | 2680 } } // namespace v8::internal |
2680 | 2681 |
2681 #endif // V8_TARGET_ARCH_IA32 | 2682 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |