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

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

Issue 1380203004: VM: Fix crash bug in constant propagation. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
« no previous file with comments | « runtime/vm/constant_propagator.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/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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 PrintICDataHelper(&f, ic_data); 230 PrintICDataHelper(&f, ic_data);
231 THR_Print("%s ", buffer); 231 THR_Print("%s ", buffer);
232 const Array& a = Array::Handle(ic_data.arguments_descriptor()); 232 const Array& a = Array::Handle(ic_data.arguments_descriptor());
233 THR_Print(" arg-desc %" Pd "\n", a.Length()); 233 THR_Print(" arg-desc %" Pd "\n", a.Length());
234 } 234 }
235 235
236 236
237 static void PrintUse(BufferFormatter* f, const Definition& definition) { 237 static void PrintUse(BufferFormatter* f, const Definition& definition) {
238 if (definition.HasSSATemp()) { 238 if (definition.HasSSATemp()) {
239 if (definition.HasPairRepresentation()) { 239 if (definition.HasPairRepresentation()) {
240 f->Print("v%" Pd ", v%" Pd "", definition.ssa_temp_index(), 240 f->Print("(v%" Pd ", v%" Pd ")", definition.ssa_temp_index(),
241 definition.ssa_temp_index() + 1); 241 definition.ssa_temp_index() + 1);
242 } else { 242 } else {
243 f->Print("v%" Pd "", definition.ssa_temp_index()); 243 f->Print("v%" Pd "", definition.ssa_temp_index());
244 } 244 }
245 } else if (definition.HasTemp()) { 245 } else if (definition.HasTemp()) {
246 f->Print("t%" Pd "", definition.temp_index()); 246 f->Print("t%" Pd "", definition.temp_index());
247 } 247 }
248 } 248 }
249 249
250 250
251 const char* Instruction::ToCString() const { 251 const char* Instruction::ToCString() const {
(...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after
1212 } 1212 }
1213 1213
1214 const char* Environment::ToCString() const { 1214 const char* Environment::ToCString() const {
1215 char buffer[1024]; 1215 char buffer[1024];
1216 BufferFormatter bf(buffer, 1024); 1216 BufferFormatter bf(buffer, 1024);
1217 PrintTo(&bf); 1217 PrintTo(&bf);
1218 return Thread::Current()->zone()->MakeCopyOfString(buffer); 1218 return Thread::Current()->zone()->MakeCopyOfString(buffer);
1219 } 1219 }
1220 1220
1221 } // namespace dart 1221 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/constant_propagator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698