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

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

Issue 17977002: - Remove arguments definition test from the VM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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
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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 instantiator_type_arguments()->PrintTo(f); 322 instantiator_type_arguments()->PrintTo(f);
323 f->Print(")"); 323 f->Print(")");
324 } 324 }
325 325
326 326
327 void AssertBooleanInstr::PrintOperandsTo(BufferFormatter* f) const { 327 void AssertBooleanInstr::PrintOperandsTo(BufferFormatter* f) const {
328 value()->PrintTo(f); 328 value()->PrintTo(f);
329 } 329 }
330 330
331 331
332 void ArgumentDefinitionTestInstr::PrintOperandsTo(BufferFormatter* f) const {
333 saved_arguments_descriptor()->PrintTo(f);
334 f->Print(", ?%s @%"Pd"",
335 formal_parameter_name().ToCString(),
336 formal_parameter_index());
337 }
338
339
340 void ClosureCallInstr::PrintOperandsTo(BufferFormatter* f) const { 332 void ClosureCallInstr::PrintOperandsTo(BufferFormatter* f) const {
341 for (intptr_t i = 0; i < ArgumentCount(); ++i) { 333 for (intptr_t i = 0; i < ArgumentCount(); ++i) {
342 if (i > 0) f->Print(", "); 334 if (i > 0) f->Print(", ");
343 PushArgumentAt(i)->value()->PrintTo(f); 335 PushArgumentAt(i)->value()->PrintTo(f);
344 } 336 }
345 } 337 }
346 338
347 339
348 void InstanceCallInstr::PrintOperandsTo(BufferFormatter* f) const { 340 void InstanceCallInstr::PrintOperandsTo(BufferFormatter* f) const {
349 f->Print("%s", function_name().ToCString()); 341 f->Print("%s", function_name().ToCString());
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
955 f->Print(" ["); 947 f->Print(" [");
956 locations_[i].PrintTo(f); 948 locations_[i].PrintTo(f);
957 f->Print("]"); 949 f->Print("]");
958 } 950 }
959 } 951 }
960 f->Print(" }"); 952 f->Print(" }");
961 if (outer_ != NULL) outer_->PrintTo(f); 953 if (outer_ != NULL) outer_->PrintTo(f);
962 } 954 }
963 955
964 } // namespace dart 956 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698