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

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

Issue 15973010: Split LoadStatic into two instructions: load static filed, load value. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 left()->PrintTo(f); 433 left()->PrintTo(f);
434 f->Print(" %s ", Token::Str(kind_)); 434 f->Print(" %s ", Token::Str(kind_));
435 right()->PrintTo(f); 435 right()->PrintTo(f);
436 f->Print(" ? %"Pd" : %"Pd, 436 f->Print(" ? %"Pd" : %"Pd,
437 if_true_, 437 if_true_,
438 if_false_); 438 if_false_);
439 } 439 }
440 440
441 441
442 void LoadStaticFieldInstr::PrintOperandsTo(BufferFormatter* f) const { 442 void LoadStaticFieldInstr::PrintOperandsTo(BufferFormatter* f) const {
443 f->Print("%s", String::Handle(field().name()).ToCString()); 443 field_value()->PrintTo(f);
444 } 444 }
445 445
446 446
447 void StoreStaticFieldInstr::PrintOperandsTo(BufferFormatter* f) const { 447 void StoreStaticFieldInstr::PrintOperandsTo(BufferFormatter* f) const {
448 f->Print("%s, ", String::Handle(field().name()).ToCString()); 448 f->Print("%s, ", String::Handle(field().name()).ToCString());
449 value()->PrintTo(f); 449 value()->PrintTo(f);
450 } 450 }
451 451
452 452
453 void InstanceOfInstr::PrintOperandsTo(BufferFormatter* f) const { 453 void InstanceOfInstr::PrintOperandsTo(BufferFormatter* f) const {
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 f->Print(" ["); 943 f->Print(" [");
944 locations_[i].PrintTo(f); 944 locations_[i].PrintTo(f);
945 f->Print("]"); 945 f->Print("]");
946 } 946 }
947 } 947 }
948 f->Print(" }"); 948 f->Print(" }");
949 if (outer_ != NULL) outer_->PrintTo(f); 949 if (outer_ != NULL) outer_->PrintTo(f);
950 } 950 }
951 951
952 } // namespace dart 952 } // 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