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

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

Issue 14122002: Use rep_movsb for copying one-byte strings in substring intrinsic. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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/heap.h" 9 #include "vm/heap.h"
10 #include "vm/memory_region.h" 10 #include "vm/memory_region.h"
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 383
384 384
385 void Assembler::movsxd(Register dst, const Address& src) { 385 void Assembler::movsxd(Register dst, const Address& src) {
386 AssemblerBuffer::EnsureCapacity ensured(&buffer_); 386 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
387 EmitOperandREX(dst, src, REX_W); 387 EmitOperandREX(dst, src, REX_W);
388 EmitUint8(0x63); 388 EmitUint8(0x63);
389 EmitOperand(dst & 7, src); 389 EmitOperand(dst & 7, src);
390 } 390 }
391 391
392 392
393 void Assembler::rep_movsb() {
394 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
395 EmitUint8(0xF3);
396 EmitUint8(0xA4);
397 }
398
399
393 void Assembler::leaq(Register dst, const Address& src) { 400 void Assembler::leaq(Register dst, const Address& src) {
394 AssemblerBuffer::EnsureCapacity ensured(&buffer_); 401 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
395 EmitOperandREX(dst, src, REX_W); 402 EmitOperandREX(dst, src, REX_W);
396 EmitUint8(0x8D); 403 EmitUint8(0x8D);
397 EmitOperand(dst & 7, src); 404 EmitOperand(dst & 7, src);
398 } 405 }
399 406
400 407
401 void Assembler::movss(XmmRegister dst, const Address& src) { 408 void Assembler::movss(XmmRegister dst, const Address& src) {
402 ASSERT(dst <= XMM15); 409 ASSERT(dst <= XMM15);
(...skipping 2110 matching lines...) Expand 10 before | Expand all | Expand 10 after
2513 2520
2514 const char* Assembler::FpuRegisterName(FpuRegister reg) { 2521 const char* Assembler::FpuRegisterName(FpuRegister reg) {
2515 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); 2522 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters));
2516 return xmm_reg_names[reg]; 2523 return xmm_reg_names[reg];
2517 } 2524 }
2518 2525
2519 2526
2520 } // namespace dart 2527 } // namespace dart
2521 2528
2522 #endif // defined TARGET_ARCH_X64 2529 #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