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

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

Issue 10546035: Intrinsify some ByteArray methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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 | « no previous file | runtime/vm/intrinsifier.h » ('j') | runtime/vm/intrinsifier_ia32.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 EmitUint8(0xC7); 316 EmitUint8(0xC7);
317 EmitOperand(0, operand); 317 EmitOperand(0, operand);
318 EmitImmediate(imm); 318 EmitImmediate(imm);
319 } else { 319 } else {
320 movq(TMP, imm); 320 movq(TMP, imm);
321 movq(dst, TMP); 321 movq(dst, TMP);
322 } 322 }
323 } 323 }
324 324
325 325
326 // MOVSXD
srdjan 2012/06/06 23:30:00 Weird comment, remove?
cshapiro 2012/06/06 23:43:07 I will remove it. The curious thing about this in
326 void Assembler::movsxl(Register dst, const Address& src) { 327 void Assembler::movsxl(Register dst, const Address& src) {
327 UNIMPLEMENTED(); 328 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
329 EmitOperandREX(dst, src, REX_W);
330 EmitUint8(0x63);
331 EmitOperand(dst & 7, src);
328 } 332 }
329 333
330 334
331 void Assembler::leaq(Register dst, const Address& src) { 335 void Assembler::leaq(Register dst, const Address& src) {
332 AssemblerBuffer::EnsureCapacity ensured(&buffer_); 336 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
333 EmitOperandREX(dst, src, REX_W); 337 EmitOperandREX(dst, src, REX_W);
334 EmitUint8(0x8D); 338 EmitUint8(0x8D);
335 EmitOperand(dst & 7, src); 339 EmitOperand(dst & 7, src);
336 } 340 }
337 341
(...skipping 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after
1638 comments.SetCommentAt(i, comments_[i]->comment()); 1642 comments.SetCommentAt(i, comments_[i]->comment());
1639 } 1643 }
1640 1644
1641 return comments; 1645 return comments;
1642 } 1646 }
1643 1647
1644 1648
1645 } // namespace dart 1649 } // namespace dart
1646 1650
1647 #endif // defined TARGET_ARCH_X64 1651 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/intrinsifier.h » ('j') | runtime/vm/intrinsifier_ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698