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

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: address review comments 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') | 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) 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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 void Assembler::movsxl(Register dst, const Address& src) { 326 void Assembler::movsxl(Register dst, const Address& src) {
327 UNIMPLEMENTED(); 327 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
328 EmitOperandREX(dst, src, REX_W);
329 EmitUint8(0x63);
330 EmitOperand(dst & 7, src);
328 } 331 }
329 332
330 333
331 void Assembler::leaq(Register dst, const Address& src) { 334 void Assembler::leaq(Register dst, const Address& src) {
332 AssemblerBuffer::EnsureCapacity ensured(&buffer_); 335 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
333 EmitOperandREX(dst, src, REX_W); 336 EmitOperandREX(dst, src, REX_W);
334 EmitUint8(0x8D); 337 EmitUint8(0x8D);
335 EmitOperand(dst & 7, src); 338 EmitOperand(dst & 7, src);
336 } 339 }
337 340
(...skipping 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after
1638 comments.SetCommentAt(i, comments_[i]->comment()); 1641 comments.SetCommentAt(i, comments_[i]->comment());
1639 } 1642 }
1640 1643
1641 return comments; 1644 return comments;
1642 } 1645 }
1643 1646
1644 1647
1645 } // namespace dart 1648 } // namespace dart
1646 1649
1647 #endif // defined TARGET_ARCH_X64 1650 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/intrinsifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698