| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/globals.h" | 5 #include "vm/globals.h" |
| 6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
| 7 | 7 |
| 8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
| 9 #include "vm/heap.h" | 9 #include "vm/heap.h" |
| 10 #include "vm/memory_region.h" | 10 #include "vm/memory_region.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #endif | 26 #endif |
| 27 | 27 |
| 28 bool CPUFeatures::sse3_supported() { | 28 bool CPUFeatures::sse3_supported() { |
| 29 DEBUG_ASSERT(initialized_); | 29 DEBUG_ASSERT(initialized_); |
| 30 return sse3_supported_; | 30 return sse3_supported_; |
| 31 } | 31 } |
| 32 | 32 |
| 33 | 33 |
| 34 bool CPUFeatures::sse4_1_supported() { | 34 bool CPUFeatures::sse4_1_supported() { |
| 35 DEBUG_ASSERT(initialized_); | 35 DEBUG_ASSERT(initialized_); |
| 36 return sse4_1_supported_; | 36 return sse4_1_supported_ && FLAG_use_sse41; |
| 37 } | 37 } |
| 38 | 38 |
| 39 | 39 |
| 40 #define __ assembler. | 40 #define __ assembler. |
| 41 | 41 |
| 42 void CPUFeatures::InitOnce() { | 42 void CPUFeatures::InitOnce() { |
| 43 Assembler assembler; | 43 Assembler assembler; |
| 44 __ pushl(EBP); | 44 __ pushl(EBP); |
| 45 __ pushl(EBX); | 45 __ pushl(EBX); |
| 46 __ movl(EBP, ESP); | 46 __ movl(EBP, ESP); |
| (...skipping 1906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1953 | 1953 |
| 1954 const char* Assembler::XmmRegisterName(XmmRegister reg) { | 1954 const char* Assembler::XmmRegisterName(XmmRegister reg) { |
| 1955 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); | 1955 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); |
| 1956 return xmm_reg_names[reg]; | 1956 return xmm_reg_names[reg]; |
| 1957 } | 1957 } |
| 1958 | 1958 |
| 1959 | 1959 |
| 1960 } // namespace dart | 1960 } // namespace dart |
| 1961 | 1961 |
| 1962 #endif // defined TARGET_ARCH_IA32 | 1962 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |