OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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_DBC. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_DBC. |
6 #if defined(TARGET_ARCH_DBC) | 6 #if defined(TARGET_ARCH_DBC) |
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" |
(...skipping 26 matching lines...) Expand all Loading... |
37 FlowGraphCompiler::~FlowGraphCompiler() { | 37 FlowGraphCompiler::~FlowGraphCompiler() { |
38 // BlockInfos are zone-allocated, so their destructors are not called. | 38 // BlockInfos are zone-allocated, so their destructors are not called. |
39 // Verify the labels explicitly here. | 39 // Verify the labels explicitly here. |
40 for (int i = 0; i < block_info_.length(); ++i) { | 40 for (int i = 0; i < block_info_.length(); ++i) { |
41 ASSERT(!block_info_[i]->jump_label()->IsLinked()); | 41 ASSERT(!block_info_[i]->jump_label()->IsLinked()); |
42 } | 42 } |
43 } | 43 } |
44 | 44 |
45 | 45 |
46 bool FlowGraphCompiler::SupportsUnboxedDoubles() { | 46 bool FlowGraphCompiler::SupportsUnboxedDoubles() { |
| 47 #if defined(ARCH_IS_64_BIT) |
| 48 return true; |
| 49 #else |
| 50 // We use 64-bit wide stack slots to unbox doubles. |
47 return false; | 51 return false; |
| 52 #endif |
48 } | 53 } |
49 | 54 |
50 | 55 |
51 bool FlowGraphCompiler::SupportsUnboxedMints() { | 56 bool FlowGraphCompiler::SupportsUnboxedMints() { |
52 return false; | 57 return false; |
53 } | 58 } |
54 | 59 |
55 | 60 |
56 bool FlowGraphCompiler::SupportsUnboxedSimd128() { | 61 bool FlowGraphCompiler::SupportsUnboxedSimd128() { |
57 return false; | 62 return false; |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { | 520 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { |
516 UNIMPLEMENTED(); | 521 UNIMPLEMENTED(); |
517 } | 522 } |
518 | 523 |
519 | 524 |
520 #undef __ | 525 #undef __ |
521 | 526 |
522 } // namespace dart | 527 } // namespace dart |
523 | 528 |
524 #endif // defined TARGET_ARCH_DBC | 529 #endif // defined TARGET_ARCH_DBC |
OLD | NEW |