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

Side by Side Diff: runtime/vm/assembler_ia32.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_ia32.h ('k') | runtime/vm/assembler_ia32_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_IA32) 6 #if defined(TARGET_ARCH_IA32)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/code_generator.h" 9 #include "vm/code_generator.h"
10 #include "vm/heap.h" 10 #include "vm/heap.h"
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 323
324 324
325 void Assembler::cmovns(Register dst, Register src) { 325 void Assembler::cmovns(Register dst, Register src) {
326 AssemblerBuffer::EnsureCapacity ensured(&buffer_); 326 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
327 EmitUint8(0x0F); 327 EmitUint8(0x0F);
328 EmitUint8(0x49); 328 EmitUint8(0x49);
329 EmitRegisterOperand(dst, src); 329 EmitRegisterOperand(dst, src);
330 } 330 }
331 331
332 332
333 void Assembler::rep_movsb() {
334 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
335 EmitUint8(0xF3);
336 EmitUint8(0xA4);
337 }
338
339
333 void Assembler::movss(XmmRegister dst, const Address& src) { 340 void Assembler::movss(XmmRegister dst, const Address& src) {
334 AssemblerBuffer::EnsureCapacity ensured(&buffer_); 341 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
335 EmitUint8(0xF3); 342 EmitUint8(0xF3);
336 EmitUint8(0x0F); 343 EmitUint8(0x0F);
337 EmitUint8(0x10); 344 EmitUint8(0x10);
338 EmitOperand(dst, src); 345 EmitOperand(dst, src);
339 } 346 }
340 347
341 348
342 void Assembler::movss(const Address& dst, XmmRegister src) { 349 void Assembler::movss(const Address& dst, XmmRegister src) {
(...skipping 2027 matching lines...) Expand 10 before | Expand all | Expand 10 after
2370 2377
2371 const char* Assembler::FpuRegisterName(FpuRegister reg) { 2378 const char* Assembler::FpuRegisterName(FpuRegister reg) {
2372 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); 2379 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters));
2373 return xmm_reg_names[reg]; 2380 return xmm_reg_names[reg];
2374 } 2381 }
2375 2382
2376 2383
2377 } // namespace dart 2384 } // namespace dart
2378 2385
2379 #endif // defined TARGET_ARCH_IA32 2386 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/assembler_ia32.h ('k') | runtime/vm/assembler_ia32_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698