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

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

Issue 670263007: IR refactoring: consolidate all boxing and unboxing instructions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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.h ('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_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
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
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler.h ('k') | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698