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

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

Issue 1756403002: VM: Add smi fast path operations for precompiled code (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: addressed comments Created 4 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
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.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 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 Definition::PrintOperandsTo(f); 658 Definition::PrintOperandsTo(f);
659 } 659 }
660 660
661 661
662 void UnaryIntegerOpInstr::PrintOperandsTo(BufferFormatter* f) const { 662 void UnaryIntegerOpInstr::PrintOperandsTo(BufferFormatter* f) const {
663 f->Print("%s, ", Token::Str(op_kind())); 663 f->Print("%s, ", Token::Str(op_kind()));
664 value()->PrintTo(f); 664 value()->PrintTo(f);
665 } 665 }
666 666
667 667
668 void CheckedSmiOpInstr::PrintOperandsTo(BufferFormatter* f) const {
669 f->Print("%s", Token::Str(op_kind()));
670 f->Print(", ");
671 left()->PrintTo(f);
672 f->Print(", ");
673 right()->PrintTo(f);
674 }
675
676
668 void BinaryIntegerOpInstr::PrintOperandsTo(BufferFormatter* f) const { 677 void BinaryIntegerOpInstr::PrintOperandsTo(BufferFormatter* f) const {
669 f->Print("%s", Token::Str(op_kind())); 678 f->Print("%s", Token::Str(op_kind()));
670 if (is_truncating()) { 679 if (is_truncating()) {
671 f->Print(" [tr]"); 680 f->Print(" [tr]");
672 } else if (!can_overflow()) { 681 } else if (!can_overflow()) {
673 f->Print(" [-o]"); 682 f->Print(" [-o]");
674 } 683 }
675 f->Print(", "); 684 f->Print(", ");
676 left()->PrintTo(f); 685 left()->PrintTo(f);
677 f->Print(", "); 686 f->Print(", ");
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after
1256 } 1265 }
1257 1266
1258 1267
1259 bool FlowGraphPrinter::ShouldPrint(const Function& function) { 1268 bool FlowGraphPrinter::ShouldPrint(const Function& function) {
1260 return false; 1269 return false;
1261 } 1270 }
1262 1271
1263 #endif // !PRODUCT 1272 #endif // !PRODUCT
1264 1273
1265 } // namespace dart 1274 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698