| 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_XXX. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX. |
| 6 | 6 |
| 7 #include "vm/flow_graph_compiler.h" | 7 #include "vm/flow_graph_compiler.h" |
| 8 | 8 |
| 9 #include "vm/bit_vector.h" | 9 #include "vm/bit_vector.h" |
| 10 #include "vm/cha.h" | 10 #include "vm/cha.h" |
| (...skipping 1479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1490 ASSERT(basic_blocks > 0); | 1490 ASSERT(basic_blocks > 0); |
| 1491 threshold = FLAG_optimization_counter_scale * basic_blocks + | 1491 threshold = FLAG_optimization_counter_scale * basic_blocks + |
| 1492 FLAG_min_optimization_counter_threshold; | 1492 FLAG_min_optimization_counter_threshold; |
| 1493 if (threshold > FLAG_optimization_counter_threshold) { | 1493 if (threshold > FLAG_optimization_counter_threshold) { |
| 1494 threshold = FLAG_optimization_counter_threshold; | 1494 threshold = FLAG_optimization_counter_threshold; |
| 1495 } | 1495 } |
| 1496 } | 1496 } |
| 1497 return threshold; | 1497 return threshold; |
| 1498 } | 1498 } |
| 1499 | 1499 |
| 1500 |
| 1501 const Class& FlowGraphCompiler::BoxClassFor(Representation rep) { |
| 1502 switch (rep) { |
| 1503 case kUnboxedDouble: |
| 1504 return double_class(); |
| 1505 case kUnboxedFloat32x4: |
| 1506 return float32x4_class(); |
| 1507 case kUnboxedFloat64x2: |
| 1508 return float64x2_class(); |
| 1509 case kUnboxedInt32x4: |
| 1510 return int32x4_class(); |
| 1511 case kUnboxedMint: |
| 1512 return mint_class(); |
| 1513 default: |
| 1514 UNREACHABLE(); |
| 1515 return Class::ZoneHandle(); |
| 1516 } |
| 1517 } |
| 1518 |
| 1519 |
| 1500 } // namespace dart | 1520 } // namespace dart |
| OLD | NEW |