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

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

Issue 14872002: Improve load forwarding: (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address Srdjan's comments Created 7 years, 7 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 | « 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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 void CreateClosureInstr::PrintOperandsTo(BufferFormatter* f) const { 507 void CreateClosureInstr::PrintOperandsTo(BufferFormatter* f) const {
508 f->Print("%s", function().ToCString()); 508 f->Print("%s", function().ToCString());
509 for (intptr_t i = 0; i < ArgumentCount(); ++i) { 509 for (intptr_t i = 0; i < ArgumentCount(); ++i) {
510 if (i > 0) f->Print(", "); 510 if (i > 0) f->Print(", ");
511 PushArgumentAt(i)->value()->PrintTo(f); 511 PushArgumentAt(i)->value()->PrintTo(f);
512 } 512 }
513 } 513 }
514 514
515 515
516 void LoadFieldInstr::PrintOperandsTo(BufferFormatter* f) const { 516 void LoadFieldInstr::PrintOperandsTo(BufferFormatter* f) const {
517 value()->PrintTo(f); 517 instance()->PrintTo(f);
518 f->Print(", %"Pd, offset_in_bytes()); 518 f->Print(", %"Pd, offset_in_bytes());
519 519
520 if (field_name_ != NULL) { 520 if (field_name_ != NULL) {
521 f->Print(" {%s}", field_name_); 521 f->Print(" {%s}", field_name_);
522 } 522 }
523 523
524 if (field() != NULL) { 524 if (field() != NULL) {
525 const char* expected = "?"; 525 const char* expected = "?";
526 if (field()->guarded_cid() != kIllegalCid) { 526 if (field()->guarded_cid() != kIllegalCid) {
527 const Class& cls = Class::Handle( 527 const Class& cls = Class::Handle(
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 f->Print(" ["); 871 f->Print(" [");
872 locations_[i].PrintTo(f); 872 locations_[i].PrintTo(f);
873 f->Print("]"); 873 f->Print("]");
874 } 874 }
875 } 875 }
876 f->Print(" }"); 876 f->Print(" }");
877 if (outer_ != NULL) outer_->PrintTo(f); 877 if (outer_ != NULL) outer_->PrintTo(f);
878 } 878 }
879 879
880 } // namespace dart 880 } // 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