OLD | NEW |
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" |
12 #include "vm/dart_entry.h" | 13 #include "vm/dart_entry.h" |
13 #include "vm/deopt_instructions.h" | 14 #include "vm/deopt_instructions.h" |
14 #include "vm/il_printer.h" | 15 #include "vm/il_printer.h" |
15 #include "vm/locations.h" | 16 #include "vm/locations.h" |
16 #include "vm/object_store.h" | 17 #include "vm/object_store.h" |
17 #include "vm/parser.h" | 18 #include "vm/parser.h" |
18 #include "vm/stack_frame.h" | 19 #include "vm/stack_frame.h" |
19 #include "vm/stub_code.h" | 20 #include "vm/stub_code.h" |
20 #include "vm/symbols.h" | 21 #include "vm/symbols.h" |
21 | 22 |
(...skipping 13 matching lines...) Expand all Loading... |
35 // Verify the labels explicitly here. | 36 // Verify the labels explicitly here. |
36 for (int i = 0; i < block_info_.length(); ++i) { | 37 for (int i = 0; i < block_info_.length(); ++i) { |
37 ASSERT(!block_info_[i]->jump_label()->IsLinked()); | 38 ASSERT(!block_info_[i]->jump_label()->IsLinked()); |
38 ASSERT(!block_info_[i]->jump_label()->HasNear()); | 39 ASSERT(!block_info_[i]->jump_label()->HasNear()); |
39 } | 40 } |
40 } | 41 } |
41 | 42 |
42 | 43 |
43 bool FlowGraphCompiler::SupportsUnboxedMints() { | 44 bool FlowGraphCompiler::SupportsUnboxedMints() { |
44 // Support unboxed mints when SSE 4.1 is available. | 45 // Support unboxed mints when SSE 4.1 is available. |
45 return FLAG_unbox_mints && CPUFeatures::sse4_1_supported(); | 46 return FLAG_unbox_mints && TargetCPUFeatures::sse4_1_supported(); |
46 } | 47 } |
47 | 48 |
48 | 49 |
49 bool FlowGraphCompiler::SupportsSinCos() { | 50 bool FlowGraphCompiler::SupportsSinCos() { |
50 return true; | 51 return true; |
51 } | 52 } |
52 | 53 |
53 | 54 |
54 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, | 55 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, |
55 DeoptInfoBuilder* builder, | 56 DeoptInfoBuilder* builder, |
(...skipping 1771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1827 __ movups(reg, Address(ESP, 0)); | 1828 __ movups(reg, Address(ESP, 0)); |
1828 __ addl(ESP, Immediate(kFpuRegisterSize)); | 1829 __ addl(ESP, Immediate(kFpuRegisterSize)); |
1829 } | 1830 } |
1830 | 1831 |
1831 | 1832 |
1832 #undef __ | 1833 #undef __ |
1833 | 1834 |
1834 } // namespace dart | 1835 } // namespace dart |
1835 | 1836 |
1836 #endif // defined TARGET_ARCH_IA32 | 1837 #endif // defined TARGET_ARCH_IA32 |
OLD | NEW |