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

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

Issue 436643002: Faster IC stubs by specializing them for Binary Smi operations (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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/flow_graph_range_analysis.h" 7 #include "vm/flow_graph_range_analysis.h"
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 #include "vm/os.h" 9 #include "vm/os.h"
10 #include "vm/parser.h" 10 #include "vm/parser.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 f->Print(" | "); 144 f->Print(" | ");
145 } 145 }
146 for (intptr_t k = 0; k < class_ids.length(); k++) { 146 for (intptr_t k = 0; k < class_ids.length(); k++) {
147 if (k > 0) { 147 if (k > 0) {
148 f->Print(", "); 148 f->Print(", ");
149 } 149 }
150 const Class& cls = 150 const Class& cls =
151 Class::Handle(Isolate::Current()->class_table()->At(class_ids[k])); 151 Class::Handle(Isolate::Current()->class_table()->At(class_ids[k]));
152 f->Print("%s", String::Handle(cls.Name()).ToCString()); 152 f->Print("%s", String::Handle(cls.Name()).ToCString());
153 } 153 }
154 if (count > 0) { 154 f->Print(" cnt:%" Pd " trgt:'%s'", count, target.ToQualifiedCString());
155 f->Print(" #%" Pd, count);
156 }
157 f->Print(" <%p>", static_cast<void*>(target.raw()));
158 } 155 }
159 f->Print("]"); 156 f->Print("]");
160 } 157 }
161 158
162 159
163 void FlowGraphPrinter::PrintICData(const ICData& ic_data) { 160 void FlowGraphPrinter::PrintICData(const ICData& ic_data) {
164 char buffer[1024]; 161 char buffer[1024];
165 BufferFormatter f(buffer, sizeof(buffer)); 162 BufferFormatter f(buffer, sizeof(buffer));
166 PrintICDataHelper(&f, ic_data); 163 PrintICDataHelper(&f, ic_data);
167 OS::Print("%s ", buffer); 164 OS::Print("%s ", buffer);
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 } 1104 }
1108 1105
1109 const char* Environment::ToCString() const { 1106 const char* Environment::ToCString() const {
1110 char buffer[1024]; 1107 char buffer[1024];
1111 BufferFormatter bf(buffer, 1024); 1108 BufferFormatter bf(buffer, 1024);
1112 PrintTo(&bf); 1109 PrintTo(&bf);
1113 return Isolate::Current()->current_zone()->MakeCopyOfString(buffer); 1110 return Isolate::Current()->current_zone()->MakeCopyOfString(buffer);
1114 } 1111 }
1115 1112
1116 } // namespace dart 1113 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698