| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 #endif // CAN_USE_VFP32DREGS | 65 #endif // CAN_USE_VFP32DREGS |
| 66 if ((answer & (1u << ARMv7)) && FLAG_enable_unaligned_accesses) { | 66 if ((answer & (1u << ARMv7)) && FLAG_enable_unaligned_accesses) { |
| 67 answer |= 1u << UNALIGNED_ACCESSES; | 67 answer |= 1u << UNALIGNED_ACCESSES; |
| 68 } | 68 } |
| 69 | 69 |
| 70 return answer; | 70 return answer; |
| 71 } | 71 } |
| 72 | 72 |
| 73 | 73 |
| 74 void CpuFeatures::ProbeImpl(bool cross_compile) { | 74 void CpuFeatures::ProbeImpl(bool cross_compile) { |
| 75 supported_ |= OS::CpuFeaturesImpliedByPlatform(); | |
| 76 supported_ |= CpuFeaturesImpliedByCompiler(); | 75 supported_ |= CpuFeaturesImpliedByCompiler(); |
| 77 cache_line_size_ = 64; | 76 cache_line_size_ = 64; |
| 78 | 77 |
| 79 // Only use statically determined features for cross compile (snapshot). | 78 // Only use statically determined features for cross compile (snapshot). |
| 80 if (cross_compile) return; | 79 if (cross_compile) return; |
| 81 | 80 |
| 82 #ifndef __arm__ | 81 #ifndef __arm__ |
| 83 // For the simulator build, use whatever the flags specify. | 82 // For the simulator build, use whatever the flags specify. |
| 84 if (FLAG_enable_armv7) { | 83 if (FLAG_enable_armv7) { |
| 85 supported_ |= 1u << ARMv7; | 84 supported_ |= 1u << ARMv7; |
| (...skipping 3576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3662 ASSERT((index_64bit == count_of_64bit_) && | 3661 ASSERT((index_64bit == count_of_64bit_) && |
| 3663 (index_code_ptr == (index_64bit + count_of_code_ptr_)) && | 3662 (index_code_ptr == (index_64bit + count_of_code_ptr_)) && |
| 3664 (index_heap_ptr == (index_code_ptr + count_of_heap_ptr_)) && | 3663 (index_heap_ptr == (index_code_ptr + count_of_heap_ptr_)) && |
| 3665 (index_32bit == (index_heap_ptr + count_of_32bit_))); | 3664 (index_32bit == (index_heap_ptr + count_of_32bit_))); |
| 3666 } | 3665 } |
| 3667 | 3666 |
| 3668 | 3667 |
| 3669 } } // namespace v8::internal | 3668 } } // namespace v8::internal |
| 3670 | 3669 |
| 3671 #endif // V8_TARGET_ARCH_ARM | 3670 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |