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_X64) | 6 #if defined(TARGET_ARCH_X64) |
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 __ pushq(RBP); | 44 __ pushq(RBP); |
45 __ pushq(RBX); | 45 __ pushq(RBX); |
46 __ movq(RBP, RSP); | 46 __ movq(RBP, RSP); |
(...skipping 2025 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2072 | 2072 |
2073 const char* Assembler::XmmRegisterName(XmmRegister reg) { | 2073 const char* Assembler::XmmRegisterName(XmmRegister reg) { |
2074 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); | 2074 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); |
2075 return xmm_reg_names[reg]; | 2075 return xmm_reg_names[reg]; |
2076 } | 2076 } |
2077 | 2077 |
2078 | 2078 |
2079 } // namespace dart | 2079 } // namespace dart |
2080 | 2080 |
2081 #endif // defined TARGET_ARCH_X64 | 2081 #endif // defined TARGET_ARCH_X64 |
OLD | NEW |