Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: runtime/vm/assembler_x64.cc

Issue 11038016: Fix bug with mint unboxing on non-SSE 4.1 machines. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698