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

Side by Side Diff: runtime/vm/assembler_ia32.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 | « no previous file | runtime/vm/assembler_x64.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_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
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
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
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/assembler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698