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

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

Issue 12440015: Remove unused context-level from LoadLocal/StoreLocal IL instructions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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_builder.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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 void StaticCallInstr::PrintOperandsTo(BufferFormatter* f) const { 373 void StaticCallInstr::PrintOperandsTo(BufferFormatter* f) const {
374 f->Print("%s ", String::Handle(function().name()).ToCString()); 374 f->Print("%s ", String::Handle(function().name()).ToCString());
375 for (intptr_t i = 0; i < ArgumentCount(); ++i) { 375 for (intptr_t i = 0; i < ArgumentCount(); ++i) {
376 if (i > 0) f->Print(", "); 376 if (i > 0) f->Print(", ");
377 PushArgumentAt(i)->value()->PrintTo(f); 377 PushArgumentAt(i)->value()->PrintTo(f);
378 } 378 }
379 } 379 }
380 380
381 381
382 void LoadLocalInstr::PrintOperandsTo(BufferFormatter* f) const { 382 void LoadLocalInstr::PrintOperandsTo(BufferFormatter* f) const {
383 f->Print("%s lvl:%"Pd"", local().name().ToCString(), context_level()); 383 f->Print("%s", local().name().ToCString());
384 } 384 }
385 385
386 386
387 void StoreLocalInstr::PrintOperandsTo(BufferFormatter* f) const { 387 void StoreLocalInstr::PrintOperandsTo(BufferFormatter* f) const {
388 f->Print("%s, ", local().name().ToCString()); 388 f->Print("%s, ", local().name().ToCString());
389 value()->PrintTo(f); 389 value()->PrintTo(f);
390 f->Print(", lvl: %"Pd"", context_level());
391 } 390 }
392 391
393 392
394 void NativeCallInstr::PrintOperandsTo(BufferFormatter* f) const { 393 void NativeCallInstr::PrintOperandsTo(BufferFormatter* f) const {
395 f->Print("%s", native_name().ToCString()); 394 f->Print("%s", native_name().ToCString());
396 } 395 }
397 396
398 397
399 void StoreInstanceFieldInstr::PrintOperandsTo(BufferFormatter* f) const { 398 void StoreInstanceFieldInstr::PrintOperandsTo(BufferFormatter* f) const {
400 f->Print("%s {%"Pd"}, ", 399 f->Print("%s {%"Pd"}, ",
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 f->Print(" ["); 712 f->Print(" [");
714 locations_[i].PrintTo(f); 713 locations_[i].PrintTo(f);
715 f->Print("]"); 714 f->Print("]");
716 } 715 }
717 } 716 }
718 f->Print(" }"); 717 f->Print(" }");
719 if (outer_ != NULL) outer_->PrintTo(f); 718 if (outer_ != NULL) outer_->PrintTo(f);
720 } 719 }
721 720
722 } // namespace dart 721 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698