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

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

Issue 10914142: Intrinsify Double.toInt. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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/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) 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/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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 ASSERT(dst <= XMM7); 597 ASSERT(dst <= XMM7);
598 Operand operand(src); 598 Operand operand(src);
599 EmitUint8(0xF2); 599 EmitUint8(0xF2);
600 EmitOperandREX(0, operand, REX_W); 600 EmitOperandREX(0, operand, REX_W);
601 EmitUint8(0x0F); 601 EmitUint8(0x0F);
602 EmitUint8(0x2A); 602 EmitUint8(0x2A);
603 EmitOperand(dst, operand); 603 EmitOperand(dst, operand);
604 } 604 }
605 605
606 606
607 void Assembler::cvttsd2siq(Register dst, XmmRegister src) {
608 ASSERT(src <= XMM7);
609 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
610 EmitUint8(0xF2);
611 Operand operand(dst);
612 EmitOperandREX(0, operand, REX_W);
613 EmitUint8(0x0F);
614 EmitUint8(0x2C);
615 EmitXmmRegisterOperand(dst, src);
616 }
617
618
607 void Assembler::fldl(const Address& src) { 619 void Assembler::fldl(const Address& src) {
608 AssemblerBuffer::EnsureCapacity ensured(&buffer_); 620 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
609 EmitUint8(0xDD); 621 EmitUint8(0xDD);
610 EmitOperand(0, src); 622 EmitOperand(0, src);
611 } 623 }
612 624
613 625
614 void Assembler::fstpl(const Address& dst) { 626 void Assembler::fstpl(const Address& dst) {
615 AssemblerBuffer::EnsureCapacity ensured(&buffer_); 627 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
616 EmitUint8(0xDD); 628 EmitUint8(0xDD);
(...skipping 1358 matching lines...) Expand 10 before | Expand all | Expand 10 after
1975 1987
1976 const char* Assembler::XmmRegisterName(XmmRegister reg) { 1988 const char* Assembler::XmmRegisterName(XmmRegister reg) {
1977 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); 1989 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters));
1978 return xmm_reg_names[reg]; 1990 return xmm_reg_names[reg];
1979 } 1991 }
1980 1992
1981 1993
1982 } // namespace dart 1994 } // namespace dart
1983 1995
1984 #endif // defined TARGET_ARCH_X64 1996 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/assembler_x64.h ('k') | runtime/vm/assembler_x64_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698