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

Side by Side Diff: vm/il_printer.cc

Issue 10829164: Replace InstanceSetterComp instruction with a plain instance call. (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 #include "vm/parser.h" 9 #include "vm/parser.h"
10 10
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 void PolymorphicInstanceCallComp::PrintTo(BufferFormatter* f) const { 195 void PolymorphicInstanceCallComp::PrintTo(BufferFormatter* f) const {
196 f->Print("%s(", DebugName()); 196 f->Print("%s(", DebugName());
197 instance_call()->PrintOperandsTo(f); 197 instance_call()->PrintOperandsTo(f);
198 f->Print(") "); 198 f->Print(") ");
199 if (HasICData()) { 199 if (HasICData()) {
200 PrintICData(f, *ic_data()); 200 PrintICData(f, *ic_data());
201 } 201 }
202 } 202 }
203 203
204 204
205 void InstanceSetterComp::PrintOperandsTo(BufferFormatter* f) const {
206 f->Print("%s", field_name().ToCString());
207 for (intptr_t i = 0; i < ArgumentCount(); ++i) {
208 f->Print(", ");
209 ArgumentAt(i)->value()->PrintTo(f);
210 }
211 }
212
213
214 void StrictCompareComp::PrintOperandsTo(BufferFormatter* f) const { 205 void StrictCompareComp::PrintOperandsTo(BufferFormatter* f) const {
215 f->Print("%s, ", Token::Str(kind())); 206 f->Print("%s, ", Token::Str(kind()));
216 left()->PrintTo(f); 207 left()->PrintTo(f);
217 f->Print(", "); 208 f->Print(", ");
218 right()->PrintTo(f); 209 right()->PrintTo(f);
219 } 210 }
220 211
221 212
222 void EqualityCompareComp::PrintOperandsTo(BufferFormatter* f) const { 213 void EqualityCompareComp::PrintOperandsTo(BufferFormatter* f) const {
223 left()->PrintTo(f); 214 left()->PrintTo(f);
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 if ((i < locations_.length()) && !locations_[i].IsInvalid()) { 778 if ((i < locations_.length()) && !locations_[i].IsInvalid()) {
788 f->Print(" ["); 779 f->Print(" [");
789 locations_[i].PrintTo(f); 780 locations_[i].PrintTo(f);
790 f->Print("]"); 781 f->Print("]");
791 } 782 }
792 } 783 }
793 f->Print(" }"); 784 f->Print(" }");
794 } 785 }
795 786
796 } // namespace dart 787 } // 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