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

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

Issue 183923026: Inline of Float64x2 operations round 1 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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/cpu.h" 9 #include "vm/cpu.h"
10 #include "vm/heap.h" 10 #include "vm/heap.h"
(...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 ASSERT(src <= XMM15); 1122 ASSERT(src <= XMM15);
1123 ASSERT(dst <= XMM15); 1123 ASSERT(dst <= XMM15);
1124 EmitUint8(0x66); 1124 EmitUint8(0x66);
1125 EmitREX_RB(dst, src); 1125 EmitREX_RB(dst, src);
1126 EmitUint8(0x0F); 1126 EmitUint8(0x0F);
1127 EmitUint8(0x5A); 1127 EmitUint8(0x5A);
1128 EmitXmmRegisterOperand(dst & 7, src); 1128 EmitXmmRegisterOperand(dst & 7, src);
1129 } 1129 }
1130 1130
1131 1131
1132 void Assembler::shufpd(XmmRegister dst, XmmRegister src, const Immediate& imm) {
1133 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
1134 EmitUint8(0x66);
1135 EmitREX_RB(dst, src);
1136 EmitUint8(0x0F);
1137 EmitUint8(0xC6);
1138 EmitXmmRegisterOperand(dst & 7, src);
1139 ASSERT(imm.is_uint8());
1140 EmitUint8(imm.value());
1141 }
1142
1143
1132 void Assembler::comisd(XmmRegister a, XmmRegister b) { 1144 void Assembler::comisd(XmmRegister a, XmmRegister b) {
1133 ASSERT(a <= XMM15); 1145 ASSERT(a <= XMM15);
1134 ASSERT(b <= XMM15); 1146 ASSERT(b <= XMM15);
1135 AssemblerBuffer::EnsureCapacity ensured(&buffer_); 1147 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
1136 EmitUint8(0x66); 1148 EmitUint8(0x66);
1137 EmitREX_RB(a, b); 1149 EmitREX_RB(a, b);
1138 EmitUint8(0x0F); 1150 EmitUint8(0x0F);
1139 EmitUint8(0x2F); 1151 EmitUint8(0x2F);
1140 EmitXmmRegisterOperand(a & 7, b); 1152 EmitXmmRegisterOperand(a & 7, b);
1141 } 1153 }
(...skipping 2110 matching lines...) Expand 10 before | Expand all | Expand 10 after
3252 3264
3253 3265
3254 const char* Assembler::FpuRegisterName(FpuRegister reg) { 3266 const char* Assembler::FpuRegisterName(FpuRegister reg) {
3255 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); 3267 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters));
3256 return xmm_reg_names[reg]; 3268 return xmm_reg_names[reg];
3257 } 3269 }
3258 3270
3259 } // namespace dart 3271 } // namespace dart
3260 3272
3261 #endif // defined TARGET_ARCH_X64 3273 #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