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

Side by Side Diff: vm/il_printer.cc

Issue 10826097: Use explicit push-argument for InstanceSetter instruction. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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
« no previous file with comments | « vm/flow_graph_optimizer.cc ('k') | 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/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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 void PolymorphicInstanceCallComp::PrintTo(BufferFormatter* f) const { 170 void PolymorphicInstanceCallComp::PrintTo(BufferFormatter* f) const {
171 f->Print("%s(", DebugName()); 171 f->Print("%s(", DebugName());
172 instance_call()->PrintOperandsTo(f); 172 instance_call()->PrintOperandsTo(f);
173 f->Print(") "); 173 f->Print(") ");
174 if (HasICData()) { 174 if (HasICData()) {
175 PrintICData(f, *ic_data()); 175 PrintICData(f, *ic_data());
176 } 176 }
177 } 177 }
178 178
179
180 void InstanceSetterComp::PrintOperandsTo(BufferFormatter* f) const {
181 f->Print("%s", field_name().ToCString());
182 for (intptr_t i = 0; i < ArgumentCount(); ++i) {
183 f->Print(", ");
184 f->Print("cid%d", ArgumentAt(i)->cid());
185 }
186 }
187
188
179 void StrictCompareComp::PrintOperandsTo(BufferFormatter* f) const { 189 void StrictCompareComp::PrintOperandsTo(BufferFormatter* f) const {
180 f->Print("%s, ", Token::Str(kind())); 190 f->Print("%s, ", Token::Str(kind()));
181 left()->PrintTo(f); 191 left()->PrintTo(f);
182 f->Print(", "); 192 f->Print(", ");
183 right()->PrintTo(f); 193 right()->PrintTo(f);
184 } 194 }
185 195
186 196
187 void EqualityCompareComp::PrintOperandsTo(BufferFormatter* f) const { 197 void EqualityCompareComp::PrintOperandsTo(BufferFormatter* f) const {
188 left()->PrintTo(f); 198 left()->PrintTo(f);
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 if ((i < locations_.length()) && !locations_[i].IsInvalid()) { 765 if ((i < locations_.length()) && !locations_[i].IsInvalid()) {
756 f->Print(" ["); 766 f->Print(" [");
757 locations_[i].PrintTo(f); 767 locations_[i].PrintTo(f);
758 f->Print("]"); 768 f->Print("]");
759 } 769 }
760 } 770 }
761 f->Print(" }"); 771 f->Print(" }");
762 } 772 }
763 773
764 } // namespace dart 774 } // namespace dart
OLDNEW
« no previous file with comments | « vm/flow_graph_optimizer.cc ('k') | vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698