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

Side by Side Diff: vm/il_printer.cc

Issue 10635020: Add new files and data structures for the new register allocator. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 6 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 9
10 namespace dart { 10 namespace dart {
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 } 405 }
406 if (is_negated()) { 406 if (is_negated()) {
407 f->Print(" (negated)"); 407 f->Print(" (negated)");
408 } 408 }
409 f->Print(" goto (%d, %d)", 409 f->Print(" goto (%d, %d)",
410 true_successor()->block_id(), 410 true_successor()->block_id(),
411 false_successor()->block_id()); 411 false_successor()->block_id());
412 } 412 }
413 413
414 414
415 void ParallelMoveInstr::PrintTo(BufferFormatter* f) const {
416 UNIMPLEMENTED();
417 }
418
419
415 void FlowGraphVisualizer::Print(const char* format, ...) { 420 void FlowGraphVisualizer::Print(const char* format, ...) {
416 char str[120]; 421 char str[120];
417 BufferFormatter f(str, sizeof(str)); 422 BufferFormatter f(str, sizeof(str));
418 f.Print("%*s", 2 * indent_, ""); 423 f.Print("%*s", 2 * indent_, "");
419 va_list args; 424 va_list args;
420 va_start(args, format); 425 va_start(args, format);
421 f.VPrint(format, args); 426 f.VPrint(format, args);
422 va_end(args); 427 va_end(args);
423 (*Dart::flow_graph_writer())(str, strlen(str)); 428 (*Dart::flow_graph_writer())(str, strlen(str));
424 } 429 }
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 void BranchInstr::PrintToVisualizer(BufferFormatter* f) const { 637 void BranchInstr::PrintToVisualizer(BufferFormatter* f) const {
633 f->Print("_ %s ", DebugName()); 638 f->Print("_ %s ", DebugName());
634 f->Print("if "); 639 f->Print("if ");
635 value()->PrintTo(f); 640 value()->PrintTo(f);
636 f->Print(" goto (B%d, B%d)", 641 f->Print(" goto (B%d, B%d)",
637 true_successor()->block_id(), 642 true_successor()->block_id(),
638 false_successor()->block_id()); 643 false_successor()->block_id());
639 } 644 }
640 645
641 646
647 void ParallelMoveInstr::PrintToVisualizer(BufferFormatter* f) const {
648 UNIMPLEMENTED();
649 }
650
651
652
642 } // namespace dart 653 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698