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

Side by Side Diff: runtime/vm/assembler_x64.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 | « no previous file | runtime/vm/assembler_x64_test.cc » ('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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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/globals.h" 5 #include "vm/globals.h"
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/heap.h" 9 #include "vm/heap.h"
10 #include "vm/memory_region.h" 10 #include "vm/memory_region.h"
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 EmitUint8(0x57); 547 EmitUint8(0x57);
548 EmitOperand(dst & 7, src); 548 EmitOperand(dst & 7, src);
549 } 549 }
550 550
551 551
552 void Assembler::cvtsi2sd(XmmRegister dst, Register src) { 552 void Assembler::cvtsi2sd(XmmRegister dst, Register src) {
553 AssemblerBuffer::EnsureCapacity ensured(&buffer_); 553 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
554 ASSERT(dst <= XMM7); 554 ASSERT(dst <= XMM7);
555 Operand operand(src); 555 Operand operand(src);
556 EmitUint8(0xF2); 556 EmitUint8(0xF2);
557 EmitOperandREX(0, operand, REX_NONE); 557 EmitOperandREX(0, operand, REX_W);
558 EmitUint8(0x0F); 558 EmitUint8(0x0F);
559 EmitUint8(0x2A); 559 EmitUint8(0x2A);
560 EmitOperand(dst, operand); 560 EmitOperand(dst, operand);
561 } 561 }
562 562
563 563
564 void Assembler::xchgl(Register dst, Register src) { 564 void Assembler::xchgl(Register dst, Register src) {
565 AssemblerBuffer::EnsureCapacity ensured(&buffer_); 565 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
566 Operand operand(src); 566 Operand operand(src);
567 EmitOperandREX(dst, operand, REX_NONE); 567 EmitOperandREX(dst, operand, REX_NONE);
(...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after
1653 comments.SetCommentAt(i, comments_[i]->comment()); 1653 comments.SetCommentAt(i, comments_[i]->comment());
1654 } 1654 }
1655 1655
1656 return comments; 1656 return comments;
1657 } 1657 }
1658 1658
1659 1659
1660 } // namespace dart 1660 } // namespace dart
1661 1661
1662 #endif // defined TARGET_ARCH_X64 1662 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/assembler_x64_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698