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

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

Issue 1867913004: Specialize instance calls when the call receiver is the method receiver and the method class has a … (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « runtime/vm/flow_graph_inliner.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/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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 441
442 442
443 void PolymorphicInstanceCallInstr::PrintOperandsTo(BufferFormatter* f) const { 443 void PolymorphicInstanceCallInstr::PrintOperandsTo(BufferFormatter* f) const {
444 f->Print(" %s", instance_call()->function_name().ToCString()); 444 f->Print(" %s", instance_call()->function_name().ToCString());
445 for (intptr_t i = 0; i < ArgumentCount(); ++i) { 445 for (intptr_t i = 0; i < ArgumentCount(); ++i) {
446 f->Print(", "); 446 f->Print(", ");
447 PushArgumentAt(i)->value()->PrintTo(f); 447 PushArgumentAt(i)->value()->PrintTo(f);
448 } 448 }
449 PrintICDataHelper(f, ic_data()); 449 PrintICDataHelper(f, ic_data());
450 if (with_checks()) { 450 if (with_checks()) {
451 f->Print(" WITH CHECKS"); 451 f->Print(" WITH-CHECKS");
452 }
453 if (complete()) {
454 f->Print(" COMPLETE");
452 } 455 }
453 } 456 }
454 457
455 458
456 void StrictCompareInstr::PrintOperandsTo(BufferFormatter* f) const { 459 void StrictCompareInstr::PrintOperandsTo(BufferFormatter* f) const {
457 f->Print("%s, ", Token::Str(kind())); 460 f->Print("%s, ", Token::Str(kind()));
458 left()->PrintTo(f); 461 left()->PrintTo(f);
459 f->Print(", "); 462 f->Print(", ");
460 right()->PrintTo(f); 463 right()->PrintTo(f);
461 if (needs_number_check()) { 464 if (needs_number_check()) {
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 } 1268 }
1266 1269
1267 1270
1268 bool FlowGraphPrinter::ShouldPrint(const Function& function) { 1271 bool FlowGraphPrinter::ShouldPrint(const Function& function) {
1269 return false; 1272 return false;
1270 } 1273 }
1271 1274
1272 #endif // !PRODUCT 1275 #endif // !PRODUCT
1273 1276
1274 } // namespace dart 1277 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_inliner.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698