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

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

Issue 27727002: Optimize identical-comparisons based on propagated type information. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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
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/il_printer.h" 5 #include "vm/il_printer.h"
6 6
7 #include "vm/intermediate_language.h" 7 #include "vm/intermediate_language.h"
8 #include "vm/os.h" 8 #include "vm/os.h"
9 #include "vm/parser.h" 9 #include "vm/parser.h"
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 } 66 }
67 67
68 68
69 void FlowGraphPrinter::PrintInstruction(Instruction* instr) { 69 void FlowGraphPrinter::PrintInstruction(Instruction* instr) {
70 PrintOneInstruction(instr, print_locations_); 70 PrintOneInstruction(instr, print_locations_);
71 } 71 }
72 72
73 73
74 void FlowGraphPrinter::PrintOneInstruction(Instruction* instr, 74 void FlowGraphPrinter::PrintOneInstruction(Instruction* instr,
75 bool print_locations) { 75 bool print_locations) {
76 char str[1000]; 76 char str[4000];
77 BufferFormatter f(str, sizeof(str)); 77 BufferFormatter f(str, sizeof(str));
78 instr->PrintTo(&f); 78 instr->PrintTo(&f);
79 if (FLAG_print_environments && (instr->env() != NULL)) { 79 if (FLAG_print_environments && (instr->env() != NULL)) {
80 instr->env()->PrintTo(&f); 80 instr->env()->PrintTo(&f);
81 } 81 }
82 if (print_locations && (instr->locs() != NULL)) { 82 if (print_locations && (instr->locs() != NULL)) {
83 instr->locs()->PrintTo(&f); 83 instr->locs()->PrintTo(&f);
84 } 84 }
85 if (instr->lifetime_position() != -1) { 85 if (instr->lifetime_position() != -1) {
86 OS::Print("%3" Pd ": ", instr->lifetime_position()); 86 OS::Print("%3" Pd ": ", instr->lifetime_position());
(...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after
979 f->Print(" ["); 979 f->Print(" [");
980 locations_[i].PrintTo(f); 980 locations_[i].PrintTo(f);
981 f->Print("]"); 981 f->Print("]");
982 } 982 }
983 } 983 }
984 f->Print(" }"); 984 f->Print(" }");
985 if (outer_ != NULL) outer_->PrintTo(f); 985 if (outer_ != NULL) outer_->PrintTo(f);
986 } 986 }
987 987
988 } // namespace dart 988 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698