| 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 uint64_t CpuFeatures::found_by_runtime_probing_only_ = 0; | 55 uint64_t CpuFeatures::found_by_runtime_probing_only_ = 0; |
| 56 uint64_t CpuFeatures::cross_compile_ = 0; | 56 uint64_t CpuFeatures::cross_compile_ = 0; |
| 57 | 57 |
| 58 | 58 |
| 59 ExternalReference ExternalReference::cpu_features() { | 59 ExternalReference ExternalReference::cpu_features() { |
| 60 ASSERT(CpuFeatures::initialized_); | 60 ASSERT(CpuFeatures::initialized_); |
| 61 return ExternalReference(&CpuFeatures::supported_); | 61 return ExternalReference(&CpuFeatures::supported_); |
| 62 } | 62 } |
| 63 | 63 |
| 64 | 64 |
| 65 int DoubleRegister::NumAllocatableRegisters() { | |
| 66 return XMMRegister::kNumAllocatableRegisters; | |
| 67 } | |
| 68 | |
| 69 | |
| 70 int DoubleRegister::NumRegisters() { | |
| 71 return XMMRegister::kNumRegisters; | |
| 72 } | |
| 73 | |
| 74 | |
| 75 const char* DoubleRegister::AllocationIndexToString(int index) { | |
| 76 return XMMRegister::AllocationIndexToString(index); | |
| 77 } | |
| 78 | |
| 79 | |
| 80 void CpuFeatures::Probe(bool serializer_enabled) { | 65 void CpuFeatures::Probe(bool serializer_enabled) { |
| 81 ASSERT(!initialized_); | 66 ASSERT(!initialized_); |
| 82 ASSERT(supported_ == 0); | 67 ASSERT(supported_ == 0); |
| 83 #ifdef DEBUG | 68 #ifdef DEBUG |
| 84 initialized_ = true; | 69 initialized_ = true; |
| 85 #endif | 70 #endif |
| 86 if (serializer_enabled) { | 71 if (serializer_enabled) { |
| 87 supported_ |= OS::CpuFeaturesImpliedByPlatform(); | 72 supported_ |= OS::CpuFeaturesImpliedByPlatform(); |
| 88 return; // No features if we might serialize. | 73 return; // No features if we might serialize. |
| 89 } | 74 } |
| (...skipping 2587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2677 fprintf(coverage_log, "%s\n", file_line); | 2662 fprintf(coverage_log, "%s\n", file_line); |
| 2678 fflush(coverage_log); | 2663 fflush(coverage_log); |
| 2679 } | 2664 } |
| 2680 } | 2665 } |
| 2681 | 2666 |
| 2682 #endif | 2667 #endif |
| 2683 | 2668 |
| 2684 } } // namespace v8::internal | 2669 } } // namespace v8::internal |
| 2685 | 2670 |
| 2686 #endif // V8_TARGET_ARCH_IA32 | 2671 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |