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

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

Issue 10450006: Implement some intrinsics on x64, fix a bug in ia32 intrinciscs (must return false if there is a fa… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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/assembler_x64.h ('k') | runtime/vm/instructions_x64.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) 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 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 ASSERT(src <= XMM7); 517 ASSERT(src <= XMM7);
518 ASSERT(dst <= XMM7); 518 ASSERT(dst <= XMM7);
519 AssemblerBuffer::EnsureCapacity ensured(&buffer_); 519 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
520 EmitUint8(0xF2); 520 EmitUint8(0xF2);
521 EmitUint8(0x0F); 521 EmitUint8(0x0F);
522 EmitUint8(0x5E); 522 EmitUint8(0x5E);
523 EmitXmmRegisterOperand(dst, src); 523 EmitXmmRegisterOperand(dst, src);
524 } 524 }
525 525
526 526
527 void Assembler::comisd(XmmRegister a, XmmRegister b) {
528 ASSERT(a <= XMM7);
529 ASSERT(b <= XMM7);
530 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
531 EmitUint8(0x66);
532 EmitUint8(0x0F);
533 EmitUint8(0x2F);
534 EmitXmmRegisterOperand(a, b);
535 }
536
537
527 void Assembler::xchgl(Register dst, Register src) { 538 void Assembler::xchgl(Register dst, Register src) {
528 AssemblerBuffer::EnsureCapacity ensured(&buffer_); 539 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
529 Operand operand(src); 540 Operand operand(src);
530 EmitOperandREX(dst, operand, REX_NONE); 541 EmitOperandREX(dst, operand, REX_NONE);
531 EmitUint8(0x87); 542 EmitUint8(0x87);
532 EmitOperand(dst & 7, operand); 543 EmitOperand(dst & 7, operand);
533 } 544 }
534 545
535 546
536 void Assembler::xchgq(Register dst, Register src) { 547 void Assembler::xchgq(Register dst, Register src) {
(...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after
1542 comments.SetCommentAt(i, comments_[i]->comment()); 1553 comments.SetCommentAt(i, comments_[i]->comment());
1543 } 1554 }
1544 1555
1545 return comments; 1556 return comments;
1546 } 1557 }
1547 1558
1548 1559
1549 } // namespace dart 1560 } // namespace dart
1550 1561
1551 #endif // defined TARGET_ARCH_X64 1562 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/assembler_x64.h ('k') | runtime/vm/instructions_x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698