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

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

Issue 10534116: Implement kDoubleToDouble and kIntegerToDouble on ia32 and x64. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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_optimizer.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 9
10 namespace dart { 10 namespace dart {
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 right()->PrintTo(f); 316 right()->PrintTo(f);
317 } 317 }
318 318
319 319
320 void UnarySmiOpComp::PrintOperandsTo(BufferFormatter* f) const { 320 void UnarySmiOpComp::PrintOperandsTo(BufferFormatter* f) const {
321 f->Print("%s, ", Token::Str(op_kind())); 321 f->Print("%s, ", Token::Str(op_kind()));
322 value()->PrintTo(f); 322 value()->PrintTo(f);
323 } 323 }
324 324
325 325
326 void ToDoubleComp::PrintOperandsTo(BufferFormatter* f) const {
327 ASSERT(from() == kDouble || from() == kSmi);
328 f->Print("%s ", from() == kDouble ? "double2double" : "smi2double");
329 value()->PrintTo(f);
330 }
331
332
326 void GraphEntryInstr::PrintTo(BufferFormatter* f) const { 333 void GraphEntryInstr::PrintTo(BufferFormatter* f) const {
327 f->Print("%2d: [graph]", block_id()); 334 f->Print("%2d: [graph]", block_id());
328 } 335 }
329 336
330 337
331 void JoinEntryInstr::PrintTo(BufferFormatter* f) const { 338 void JoinEntryInstr::PrintTo(BufferFormatter* f) const {
332 f->Print("%2d: [join]", block_id()); 339 f->Print("%2d: [join]", block_id());
333 } 340 }
334 341
335 342
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 f->Print("_ %s ", DebugName()); 569 f->Print("_ %s ", DebugName());
563 f->Print("if "); 570 f->Print("if ");
564 value()->PrintTo(f); 571 value()->PrintTo(f);
565 f->Print(" goto (B%d, B%d)", 572 f->Print(" goto (B%d, B%d)",
566 true_successor()->block_id(), 573 true_successor()->block_id(),
567 false_successor()->block_id()); 574 false_successor()->block_id());
568 } 575 }
569 576
570 577
571 } // namespace dart 578 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698