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

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

Issue 102213003: Removed debuggging printf. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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 | no next file » | 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/flow_graph_optimizer.h" 5 #include "vm/flow_graph_optimizer.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/cha.h" 8 #include "vm/cha.h"
9 #include "vm/dart_entry.h" 9 #include "vm/dart_entry.h"
10 #include "vm/flow_graph_builder.h" 10 #include "vm/flow_graph_builder.h"
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 args->Add(new Value(curr_instr->value()->definition())); 384 args->Add(new Value(curr_instr->value()->definition()));
385 385
386 // Replace with TruncDivMod. 386 // Replace with TruncDivMod.
387 MergedMathInstr* div_mod = new MergedMathInstr( 387 MergedMathInstr* div_mod = new MergedMathInstr(
388 args, 388 args,
389 curr_instr->DeoptimizationTarget(), 389 curr_instr->DeoptimizationTarget(),
390 MergedMathInstr::kSinCos); 390 MergedMathInstr::kSinCos);
391 curr_instr->ReplaceWith(div_mod, current_iterator()); 391 curr_instr->ReplaceWith(div_mod, current_iterator());
392 other_op->ReplaceUsesWith(div_mod); 392 other_op->ReplaceUsesWith(div_mod);
393 other_op->RemoveFromGraph(); 393 other_op->RemoveFromGraph();
394 OS::Print("Merged SINCOS\n");
395 } 394 }
396 } 395 }
397 } 396 }
398 } 397 }
399 398
400 399
401 // Optimize (a << b) & c pattern: if c is a positive Smi or zero, then the 400 // Optimize (a << b) & c pattern: if c is a positive Smi or zero, then the
402 // shift can be a truncating Smi shift-left and result is always Smi. 401 // shift can be a truncating Smi shift-left and result is always Smi.
403 // Merging occurs only per basic-block. 402 // Merging occurs only per basic-block.
404 void FlowGraphOptimizer::TryOptimizePatterns() { 403 void FlowGraphOptimizer::TryOptimizePatterns() {
(...skipping 7641 matching lines...) Expand 10 before | Expand all | Expand 10 after
8046 } 8045 }
8047 8046
8048 // Insert materializations at environment uses. 8047 // Insert materializations at environment uses.
8049 for (intptr_t i = 0; i < exits.length(); i++) { 8048 for (intptr_t i = 0; i < exits.length(); i++) {
8050 CreateMaterializationAt(exits[i], alloc, alloc->cls(), *fields); 8049 CreateMaterializationAt(exits[i], alloc, alloc->cls(), *fields);
8051 } 8050 }
8052 } 8051 }
8053 8052
8054 8053
8055 } // namespace dart 8054 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698