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

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

Issue 345563007: Add Uint32 representation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 | « no previous file | runtime/vm/deopt_instructions.h » ('j') | runtime/vm/deopt_instructions.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/compiler.h" 5 #include "vm/compiler.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 8
9 #include "vm/ast_printer.h" 9 #include "vm/ast_printer.h"
10 #include "vm/block_scheduler.h" 10 #include "vm/block_scheduler.h"
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 // Propagate types after store-load-forwarding. Some phis may have 446 // Propagate types after store-load-forwarding. Some phis may have
447 // become smi phis that can be processed by range analysis. 447 // become smi phis that can be processed by range analysis.
448 FlowGraphTypePropagator::Propagate(flow_graph); 448 FlowGraphTypePropagator::Propagate(flow_graph);
449 DEBUG_ASSERT(flow_graph->VerifyUseLists()); 449 DEBUG_ASSERT(flow_graph->VerifyUseLists());
450 450
451 // We have to perform range analysis after LICM because it 451 // We have to perform range analysis after LICM because it
452 // optimistically moves CheckSmi through phis into loop preheaders 452 // optimistically moves CheckSmi through phis into loop preheaders
453 // making some phis smi. 453 // making some phis smi.
454 optimizer.InferIntRanges(); 454 optimizer.InferIntRanges();
455 DEBUG_ASSERT(flow_graph->VerifyUseLists()); 455 DEBUG_ASSERT(flow_graph->VerifyUseLists());
456
457 // Select integer instructions based on range analysis result.
458 optimizer.SelectIntegerInstructions();
Florian Schneider 2014/07/08 12:24:28 I think this phase should be run as part of RangeA
Cutch 2014/07/09 17:48:25 Are you suggesting that we do a range analysis pas
Florian Schneider 2014/07/10 13:05:05 No, your pass runs after range analysis, but befor
Cutch 2014/07/10 17:12:53 I've added a TODO for a follow up CL.
459 DEBUG_ASSERT(flow_graph->VerifyUseLists());
456 } 460 }
457 461
458 if (FLAG_constant_propagation) { 462 if (FLAG_constant_propagation) {
459 // Constant propagation can use information from range analysis to 463 // Constant propagation can use information from range analysis to
460 // find unreachable branch targets and eliminate branches that have 464 // find unreachable branch targets and eliminate branches that have
461 // the same true- and false-target. 465 // the same true- and false-target.
462 ConstantPropagator::OptimizeBranches(flow_graph); 466 ConstantPropagator::OptimizeBranches(flow_graph);
463 DEBUG_ASSERT(flow_graph->VerifyUseLists()); 467 DEBUG_ASSERT(flow_graph->VerifyUseLists());
464 } 468 }
465 469
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
969 const Object& result = 973 const Object& result =
970 Object::Handle(isolate->object_store()->sticky_error()); 974 Object::Handle(isolate->object_store()->sticky_error());
971 isolate->object_store()->clear_sticky_error(); 975 isolate->object_store()->clear_sticky_error();
972 return result.raw(); 976 return result.raw();
973 } 977 }
974 UNREACHABLE(); 978 UNREACHABLE();
975 return Object::null(); 979 return Object::null();
976 } 980 }
977 981
978 } // namespace dart 982 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/deopt_instructions.h » ('j') | runtime/vm/deopt_instructions.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698