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

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

Issue 27307005: Change == into an instance call to allow polymorphic inlining of ==. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: rebased, addressed comments Created 7 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_type_propagator.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/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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 left()->PrintTo(f); 365 left()->PrintTo(f);
366 f->Print(", "); 366 f->Print(", ");
367 right()->PrintTo(f); 367 right()->PrintTo(f);
368 } 368 }
369 369
370 370
371 void EqualityCompareInstr::PrintOperandsTo(BufferFormatter* f) const { 371 void EqualityCompareInstr::PrintOperandsTo(BufferFormatter* f) const {
372 left()->PrintTo(f); 372 left()->PrintTo(f);
373 f->Print(" %s ", Token::Str(kind())); 373 f->Print(" %s ", Token::Str(kind()));
374 right()->PrintTo(f); 374 right()->PrintTo(f);
375 if (HasICData()) {
376 PrintICData(f, *ic_data());
377 }
378 } 375 }
379 376
380 377
381 void StaticCallInstr::PrintOperandsTo(BufferFormatter* f) const { 378 void StaticCallInstr::PrintOperandsTo(BufferFormatter* f) const {
382 f->Print("%s ", String::Handle(function().name()).ToCString()); 379 f->Print("%s ", String::Handle(function().name()).ToCString());
383 for (intptr_t i = 0; i < ArgumentCount(); ++i) { 380 for (intptr_t i = 0; i < ArgumentCount(); ++i) {
384 if (i > 0) f->Print(", "); 381 if (i > 0) f->Print(", ");
385 PushArgumentAt(i)->value()->PrintTo(f); 382 PushArgumentAt(i)->value()->PrintTo(f);
386 } 383 }
387 } 384 }
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
981 f->Print(" ["); 978 f->Print(" [");
982 locations_[i].PrintTo(f); 979 locations_[i].PrintTo(f);
983 f->Print("]"); 980 f->Print("]");
984 } 981 }
985 } 982 }
986 f->Print(" }"); 983 f->Print(" }");
987 if (outer_ != NULL) outer_->PrintTo(f); 984 if (outer_ != NULL) outer_->PrintTo(f);
988 } 985 }
989 986
990 } // namespace dart 987 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_type_propagator.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698