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

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

Issue 261693002: Fix TryICData to create ICData with a valid arguments decriptor. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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 | « runtime/vm/flow_graph_optimizer.cc ('k') | 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) 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 f->Print(" <%p>", static_cast<void*>(target.raw())); 156 f->Print(" <%p>", static_cast<void*>(target.raw()));
157 } 157 }
158 f->Print("]"); 158 f->Print("]");
159 } 159 }
160 160
161 161
162 void FlowGraphPrinter::PrintICData(const ICData& ic_data) { 162 void FlowGraphPrinter::PrintICData(const ICData& ic_data) {
163 char buffer[1024]; 163 char buffer[1024];
164 BufferFormatter f(buffer, sizeof(buffer)); 164 BufferFormatter f(buffer, sizeof(buffer));
165 PrintICDataHelper(&f, ic_data); 165 PrintICDataHelper(&f, ic_data);
166 OS::Print("%s\n", buffer); 166 OS::Print("%s ", buffer);
167 const Array& a = Array::Handle(ic_data.arguments_descriptor());
168 OS::Print(" arg-desc %" Pd "\n", a.Length());
167 } 169 }
168 170
169 171
170 static void PrintUse(BufferFormatter* f, const Definition& definition) { 172 static void PrintUse(BufferFormatter* f, const Definition& definition) {
171 if (definition.is_used()) { 173 if (definition.is_used()) {
172 if (definition.HasSSATemp()) { 174 if (definition.HasSSATemp()) {
173 if (definition.HasPairRepresentation()) { 175 if (definition.HasPairRepresentation()) {
174 f->Print("v%" Pd ", v%" Pd "", definition.ssa_temp_index(), 176 f->Print("v%" Pd ", v%" Pd "", definition.ssa_temp_index(),
175 definition.ssa_temp_index() + 1); 177 definition.ssa_temp_index() + 1);
176 } else { 178 } else {
(...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after
1069 } 1071 }
1070 1072
1071 const char* Environment::ToCString() const { 1073 const char* Environment::ToCString() const {
1072 char buffer[1024]; 1074 char buffer[1024];
1073 BufferFormatter bf(buffer, 1024); 1075 BufferFormatter bf(buffer, 1024);
1074 PrintTo(&bf); 1076 PrintTo(&bf);
1075 return Isolate::Current()->current_zone()->MakeCopyOfString(buffer); 1077 return Isolate::Current()->current_zone()->MakeCopyOfString(buffer);
1076 } 1078 }
1077 1079
1078 } // namespace dart 1080 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698