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

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

Issue 11009006: Enable Float32Array_getIndexed on X64 now that cvtss2sd is implemented (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Whitespace Created 8 years, 2 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/intrinsifier_x64.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 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 AssemblerBuffer::EnsureCapacity ensured(&buffer_); 664 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
665 EmitUint8(0xF2); 665 EmitUint8(0xF2);
666 Operand operand(dst); 666 Operand operand(dst);
667 EmitOperandREX(0, operand, REX_W); 667 EmitOperandREX(0, operand, REX_W);
668 EmitUint8(0x0F); 668 EmitUint8(0x0F);
669 EmitUint8(0x2C); 669 EmitUint8(0x2C);
670 EmitXmmRegisterOperand(dst, src); 670 EmitXmmRegisterOperand(dst, src);
671 } 671 }
672 672
673 673
674 void Assembler::cvtss2sd(XmmRegister dst, XmmRegister src) {
675 ASSERT(src <= XMM7);
676 ASSERT(dst <= XMM7);
677 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
678 EmitUint8(0xF3);
679 EmitUint8(0x0F);
680 EmitUint8(0x5A);
681 EmitXmmRegisterOperand(dst, src);
682 }
683
684
685 void Assembler::cvtsd2ss(XmmRegister dst, XmmRegister src) {
686 ASSERT(src <= XMM7);
687 ASSERT(dst <= XMM7);
688 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
689 EmitUint8(0xF2);
690 EmitUint8(0x0F);
691 EmitUint8(0x5A);
692 EmitXmmRegisterOperand(dst, src);
693 }
694
695
674 void Assembler::fldl(const Address& src) { 696 void Assembler::fldl(const Address& src) {
675 AssemblerBuffer::EnsureCapacity ensured(&buffer_); 697 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
676 EmitUint8(0xDD); 698 EmitUint8(0xDD);
677 EmitOperand(0, src); 699 EmitOperand(0, src);
678 } 700 }
679 701
680 702
681 void Assembler::fstpl(const Address& dst) { 703 void Assembler::fstpl(const Address& dst) {
682 AssemblerBuffer::EnsureCapacity ensured(&buffer_); 704 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
683 EmitUint8(0xDD); 705 EmitUint8(0xDD);
684 EmitOperand(3, dst); 706 EmitOperand(3, dst);
685 } 707 }
686 708
687 709
688 void Assembler::fildl(const Address& src) { 710 void Assembler::fildl(const Address& src) {
689 AssemblerBuffer::EnsureCapacity ensured(&buffer_); 711 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
690 EmitUint8(0xDF); 712 EmitUint8(0xDF);
691 EmitOperand(5, src); 713 EmitOperand(5, src);
692 } 714 }
693 715
716
694 void Assembler::fincstp() { 717 void Assembler::fincstp() {
695 AssemblerBuffer::EnsureCapacity ensured(&buffer_); 718 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
696 EmitUint8(0xD9); 719 EmitUint8(0xD9);
697 EmitUint8(0xF7); 720 EmitUint8(0xF7);
698 } 721 }
699 722
700 723
701 void Assembler::ffree(intptr_t value) { 724 void Assembler::ffree(intptr_t value) {
702 ASSERT(value < 7); 725 ASSERT(value < 7);
703 AssemblerBuffer::EnsureCapacity ensured(&buffer_); 726 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
(...skipping 1345 matching lines...) Expand 10 before | Expand all | Expand 10 after
2049 2072
2050 const char* Assembler::XmmRegisterName(XmmRegister reg) { 2073 const char* Assembler::XmmRegisterName(XmmRegister reg) {
2051 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); 2074 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters));
2052 return xmm_reg_names[reg]; 2075 return xmm_reg_names[reg];
2053 } 2076 }
2054 2077
2055 2078
2056 } // namespace dart 2079 } // namespace dart
2057 2080
2058 #endif // defined TARGET_ARCH_X64 2081 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/assembler_x64.h ('k') | runtime/vm/intrinsifier_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698