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

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

Issue 142663004: Reverts refactoring of CPU feature detection for (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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/flow_graph_compiler_arm.cc ('k') | runtime/vm/flow_graph_optimizer.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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" // Needed here to get TARGET_ARCH_IA32. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
7 7
8 #include "vm/flow_graph_compiler.h" 8 #include "vm/flow_graph_compiler.h"
9 9
10 #include "vm/ast_printer.h" 10 #include "vm/ast_printer.h"
11 #include "vm/compiler.h" 11 #include "vm/compiler.h"
12 #include "vm/cpu.h"
13 #include "vm/dart_entry.h" 12 #include "vm/dart_entry.h"
14 #include "vm/deopt_instructions.h" 13 #include "vm/deopt_instructions.h"
15 #include "vm/il_printer.h" 14 #include "vm/il_printer.h"
16 #include "vm/locations.h" 15 #include "vm/locations.h"
17 #include "vm/object_store.h" 16 #include "vm/object_store.h"
18 #include "vm/parser.h" 17 #include "vm/parser.h"
19 #include "vm/stack_frame.h" 18 #include "vm/stack_frame.h"
20 #include "vm/stub_code.h" 19 #include "vm/stub_code.h"
21 #include "vm/symbols.h" 20 #include "vm/symbols.h"
22 21
(...skipping 14 matching lines...) Expand all
37 // Verify the labels explicitly here. 36 // Verify the labels explicitly here.
38 for (int i = 0; i < block_info_.length(); ++i) { 37 for (int i = 0; i < block_info_.length(); ++i) {
39 ASSERT(!block_info_[i]->jump_label()->IsLinked()); 38 ASSERT(!block_info_[i]->jump_label()->IsLinked());
40 ASSERT(!block_info_[i]->jump_label()->HasNear()); 39 ASSERT(!block_info_[i]->jump_label()->HasNear());
41 } 40 }
42 } 41 }
43 42
44 43
45 bool FlowGraphCompiler::SupportsUnboxedMints() { 44 bool FlowGraphCompiler::SupportsUnboxedMints() {
46 // Support unboxed mints when SSE 4.1 is available. 45 // Support unboxed mints when SSE 4.1 is available.
47 return FLAG_unbox_mints && TargetCPUFeatures::sse4_1_supported(); 46 return FLAG_unbox_mints && CPUFeatures::sse4_1_supported();
48 } 47 }
49 48
50 49
51 bool FlowGraphCompiler::SupportsUnboxedFloat32x4() { 50 bool FlowGraphCompiler::SupportsUnboxedFloat32x4() {
52 return FLAG_enable_simd_inline; 51 return FLAG_enable_simd_inline;
53 } 52 }
54 53
55 54
56 bool FlowGraphCompiler::SupportsSinCos() { 55 bool FlowGraphCompiler::SupportsSinCos() {
57 return true; 56 return true;
(...skipping 1774 matching lines...) Expand 10 before | Expand all | Expand 10 after
1832 __ movups(reg, Address(ESP, 0)); 1831 __ movups(reg, Address(ESP, 0));
1833 __ addl(ESP, Immediate(kFpuRegisterSize)); 1832 __ addl(ESP, Immediate(kFpuRegisterSize));
1834 } 1833 }
1835 1834
1836 1835
1837 #undef __ 1836 #undef __
1838 1837
1839 } // namespace dart 1838 } // namespace dart
1840 1839
1841 #endif // defined TARGET_ARCH_IA32 1840 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_arm.cc ('k') | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698