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

Side by Side Diff: vm/il_printer.cc

Issue 10850014: Separate double binary operation into a separate instruction class. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: added ia32 Created 8 years, 4 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 | « vm/flow_graph_optimizer.cc ('k') | 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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 378
379 379
380 void BinaryOpComp::PrintOperandsTo(BufferFormatter* f) const { 380 void BinaryOpComp::PrintOperandsTo(BufferFormatter* f) const {
381 f->Print("%s, ", Token::Str(op_kind())); 381 f->Print("%s, ", Token::Str(op_kind()));
382 left()->PrintTo(f); 382 left()->PrintTo(f);
383 f->Print(", "); 383 f->Print(", ");
384 right()->PrintTo(f); 384 right()->PrintTo(f);
385 } 385 }
386 386
387 387
388 void DoubleBinaryOpComp::PrintOperandsTo(BufferFormatter* f) const {
389 f->Print("%s", Token::Str(op_kind()));
390 }
391
392
388 void UnarySmiOpComp::PrintOperandsTo(BufferFormatter* f) const { 393 void UnarySmiOpComp::PrintOperandsTo(BufferFormatter* f) const {
389 f->Print("%s, ", Token::Str(op_kind())); 394 f->Print("%s, ", Token::Str(op_kind()));
390 value()->PrintTo(f); 395 value()->PrintTo(f);
391 } 396 }
392 397
393 398
394 void ToDoubleComp::PrintOperandsTo(BufferFormatter* f) const { 399 void ToDoubleComp::PrintOperandsTo(BufferFormatter* f) const {
395 ASSERT(from() == kDouble || from() == kSmi); 400 ASSERT(from() == kDouble || from() == kSmi);
396 f->Print("%s ", from() == kDouble ? "double2double" : "smi2double"); 401 f->Print("%s ", from() == kDouble ? "double2double" : "smi2double");
397 value()->PrintTo(f); 402 value()->PrintTo(f);
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 if ((i < locations_.length()) && !locations_[i].IsInvalid()) { 795 if ((i < locations_.length()) && !locations_[i].IsInvalid()) {
791 f->Print(" ["); 796 f->Print(" [");
792 locations_[i].PrintTo(f); 797 locations_[i].PrintTo(f);
793 f->Print("]"); 798 f->Print("]");
794 } 799 }
795 } 800 }
796 f->Print(" }"); 801 f->Print(" }");
797 } 802 }
798 803
799 } // namespace dart 804 } // namespace dart
OLDNEW
« no previous file with comments | « vm/flow_graph_optimizer.cc ('k') | vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698