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

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

Issue 676743002: IR cleanup: pass deopt id as constructor argument instead of doing deopt_id_ assignment. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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') | runtime/vm/intermediate_language.h » ('j') | 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 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 if (op_kind() == MethodRecognizer::kFloat32x4GetSignMask) { 655 if (op_kind() == MethodRecognizer::kFloat32x4GetSignMask) {
656 f->Print("Float32x4.getSignMask "); 656 f->Print("Float32x4.getSignMask ");
657 } else { 657 } else {
658 ASSERT(op_kind() == MethodRecognizer::kInt32x4GetSignMask); 658 ASSERT(op_kind() == MethodRecognizer::kInt32x4GetSignMask);
659 f->Print("Int32x4.getSignMask "); 659 f->Print("Int32x4.getSignMask ");
660 } 660 }
661 value()->PrintTo(f); 661 value()->PrintTo(f);
662 } 662 }
663 663
664 664
665 void Float32x4ZeroInstr::PrintOperandsTo(BufferFormatter* f) const {
666 f->Print("ZERO ");
667 }
668
669
670 void Float32x4SplatInstr::PrintOperandsTo(BufferFormatter* f) const { 665 void Float32x4SplatInstr::PrintOperandsTo(BufferFormatter* f) const {
671 f->Print("SPLAT "); 666 f->Print("SPLAT ");
672 value()->PrintTo(f); 667 value()->PrintTo(f);
673 } 668 }
674 669
675 670
676 void Float32x4ConstructorInstr::PrintOperandsTo(BufferFormatter* f) const { 671 void Float32x4ConstructorInstr::PrintOperandsTo(BufferFormatter* f) const {
677 f->Print("Float32x4("); 672 f->Print("Float32x4(");
678 value0()->PrintTo(f); 673 value0()->PrintTo(f);
679 f->Print(", "); 674 f->Print(", ");
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 } 738 }
744 739
745 740
746 void Simd64x2ShuffleInstr::PrintOperandsTo(BufferFormatter* f) const { 741 void Simd64x2ShuffleInstr::PrintOperandsTo(BufferFormatter* f) const {
747 // TODO(johnmccutchan): Add proper string enumeration of shuffle. 742 // TODO(johnmccutchan): Add proper string enumeration of shuffle.
748 f->Print("%s, ", MethodRecognizer::KindToCString(op_kind())); 743 f->Print("%s, ", MethodRecognizer::KindToCString(op_kind()));
749 value()->PrintTo(f); 744 value()->PrintTo(f);
750 } 745 }
751 746
752 747
753 void Float64x2ZeroInstr::PrintOperandsTo(BufferFormatter* f) const {
754 f->Print("Float64x2.zero ");
755 }
756
757
758 void Float64x2SplatInstr::PrintOperandsTo(BufferFormatter* f) const { 748 void Float64x2SplatInstr::PrintOperandsTo(BufferFormatter* f) const {
759 f->Print("Float64x2.splat "); 749 f->Print("Float64x2.splat ");
760 value()->PrintTo(f); 750 value()->PrintTo(f);
761 } 751 }
762 752
763 753
764 void Float64x2ConstructorInstr::PrintOperandsTo(BufferFormatter* f) const { 754 void Float64x2ConstructorInstr::PrintOperandsTo(BufferFormatter* f) const {
765 f->Print("Float64x2("); 755 f->Print("Float64x2(");
766 value0()->PrintTo(f); 756 value0()->PrintTo(f);
767 f->Print(", "); 757 f->Print(", ");
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 } 1109 }
1120 1110
1121 const char* Environment::ToCString() const { 1111 const char* Environment::ToCString() const {
1122 char buffer[1024]; 1112 char buffer[1024];
1123 BufferFormatter bf(buffer, 1024); 1113 BufferFormatter bf(buffer, 1024);
1124 PrintTo(&bf); 1114 PrintTo(&bf);
1125 return Isolate::Current()->current_zone()->MakeCopyOfString(buffer); 1115 return Isolate::Current()->current_zone()->MakeCopyOfString(buffer);
1126 } 1116 }
1127 1117
1128 } // namespace dart 1118 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698