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

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

Issue 1289643005: Rename accessors of class Field to make it more apparent as to what is being accessed - static fiel… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: self-code-review Created 5 years, 3 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
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/flow_graph_range_analysis.h" 7 #include "vm/flow_graph_range_analysis.h"
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 #include "vm/os.h" 9 #include "vm/os.h"
10 #include "vm/parser.h" 10 #include "vm/parser.h"
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 value()->PrintTo(f); 512 value()->PrintTo(f);
513 } 513 }
514 514
515 515
516 void StoreInstanceFieldInstr::PrintOperandsTo(BufferFormatter* f) const { 516 void StoreInstanceFieldInstr::PrintOperandsTo(BufferFormatter* f) const {
517 if (field().IsNull()) { 517 if (field().IsNull()) {
518 f->Print("{%" Pd "}, ", offset_in_bytes()); 518 f->Print("{%" Pd "}, ", offset_in_bytes());
519 } else { 519 } else {
520 f->Print("%s {%" Pd "}, ", 520 f->Print("%s {%" Pd "}, ",
521 String::Handle(field().name()).ToCString(), 521 String::Handle(field().name()).ToCString(),
522 field().Offset()); 522 field().InstanceFieldOffset());
523 } 523 }
524 instance()->PrintTo(f); 524 instance()->PrintTo(f);
525 f->Print(", "); 525 f->Print(", ");
526 value()->PrintTo(f); 526 value()->PrintTo(f);
527 } 527 }
528 528
529 529
530 void IfThenElseInstr::PrintOperandsTo(BufferFormatter* f) const { 530 void IfThenElseInstr::PrintOperandsTo(BufferFormatter* f) const {
531 comparison()->PrintOperandsTo(f); 531 comparison()->PrintOperandsTo(f);
532 f->Print(" ? %" Pd " : %" Pd, 532 f->Print(" ? %" Pd " : %" Pd,
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
1212 } 1212 }
1213 1213
1214 const char* Environment::ToCString() const { 1214 const char* Environment::ToCString() const {
1215 char buffer[1024]; 1215 char buffer[1024];
1216 BufferFormatter bf(buffer, 1024); 1216 BufferFormatter bf(buffer, 1024);
1217 PrintTo(&bf); 1217 PrintTo(&bf);
1218 return Thread::Current()->zone()->MakeCopyOfString(buffer); 1218 return Thread::Current()->zone()->MakeCopyOfString(buffer);
1219 } 1219 }
1220 1220
1221 } // namespace dart 1221 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698