Chromium Code Reviews| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 96 if (index >= kDoubleRegZero.code()) | 96 if (index >= kDoubleRegZero.code()) |
| 97 index += kNumReservedRegisters; | 97 index += kNumReservedRegisters; |
| 98 | 98 |
| 99 return VFPRegisters::Name(index, true); | 99 return VFPRegisters::Name(index, true); |
| 100 } | 100 } |
| 101 | 101 |
| 102 | 102 |
| 103 void CpuFeatures::Probe() { | 103 void CpuFeatures::Probe() { |
| 104 uint64_t standard_features = static_cast<unsigned>( | 104 uint64_t standard_features = static_cast<unsigned>( |
| 105 OS::CpuFeaturesImpliedByPlatform()) | CpuFeaturesImpliedByCompiler(); | 105 OS::CpuFeaturesImpliedByPlatform()) | CpuFeaturesImpliedByCompiler(); |
| 106 ASSERT(supported_ == 0 || supported_ == standard_features); | 106 ASSERT(supported_ == 0 || |
| 107 (supported_ & standard_features) == standard_features); | |
|
jochen (gone - plz use gerrit)
2014/04/17 13:24:57
unrelated?
Sven Panne
2014/04/22 07:28:36
Alas, no: ARM has to be treated specially, which i
| |
| 107 #ifdef DEBUG | 108 #ifdef DEBUG |
| 108 initialized_ = true; | 109 initialized_ = true; |
| 109 #endif | 110 #endif |
| 110 | 111 |
| 111 // Get the features implied by the OS and the compiler settings. This is the | 112 // Get the features implied by the OS and the compiler settings. This is the |
| 112 // minimal set of features which is also alowed for generated code in the | 113 // minimal set of features which is also alowed for generated code in the |
| 113 // snapshot. | 114 // snapshot. |
| 114 supported_ |= standard_features; | 115 supported_ |= standard_features; |
| 115 | 116 |
| 116 if (Serializer::enabled()) { | 117 if (Serializer::enabled()) { |
| (...skipping 3619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3736 ASSERT((index_64bit == count_of_64bit_) && | 3737 ASSERT((index_64bit == count_of_64bit_) && |
| 3737 (index_code_ptr == (index_64bit + count_of_code_ptr_)) && | 3738 (index_code_ptr == (index_64bit + count_of_code_ptr_)) && |
| 3738 (index_heap_ptr == (index_code_ptr + count_of_heap_ptr_)) && | 3739 (index_heap_ptr == (index_code_ptr + count_of_heap_ptr_)) && |
| 3739 (index_32bit == (index_heap_ptr + count_of_32bit_))); | 3740 (index_32bit == (index_heap_ptr + count_of_32bit_))); |
| 3740 } | 3741 } |
| 3741 | 3742 |
| 3742 | 3743 |
| 3743 } } // namespace v8::internal | 3744 } } // namespace v8::internal |
| 3744 | 3745 |
| 3745 #endif // V8_TARGET_ARCH_ARM | 3746 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |