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

Unified Diff: runtime/vm/assembler_x64.cc

Issue 1089003002: Implement bigint shift intrinsics on IA32. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/assembler_ia32_test.cc ('k') | runtime/vm/assembler_x64_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_x64.cc
===================================================================
--- runtime/vm/assembler_x64.cc (revision 45179)
+++ runtime/vm/assembler_x64.cc (working copy)
@@ -2248,11 +2248,11 @@
void Assembler::shldl(Register dst, Register src, const Immediate& imm) {
AssemblerBuffer::EnsureCapacity ensured(&buffer_);
ASSERT(imm.is_int8());
- Operand operand(src);
- EmitOperandREX(dst, operand, REX_NONE);
+ Operand operand(dst);
+ EmitOperandREX(src, operand, REX_NONE);
EmitUint8(0x0F);
EmitUint8(0xA4);
- EmitOperand(src & 7, Operand(dst));
+ EmitOperand(src & 7, operand);
EmitUint8(imm.value() & 0xFF);
}
@@ -2290,11 +2290,11 @@
void Assembler::shldq(Register dst, Register src, const Immediate& imm) {
AssemblerBuffer::EnsureCapacity ensured(&buffer_);
ASSERT(imm.is_int8());
- Operand operand(src);
- EmitOperandREX(dst, operand, REX_W);
+ Operand operand(dst);
+ EmitOperandREX(src, operand, REX_W);
EmitUint8(0x0F);
EmitUint8(0xA4);
- EmitOperand(src & 7, Operand(dst));
+ EmitOperand(src & 7, operand);
EmitUint8(imm.value() & 0xFF);
}
@@ -2302,11 +2302,11 @@
void Assembler::shldq(Register dst, Register src, Register shifter) {
AssemblerBuffer::EnsureCapacity ensured(&buffer_);
ASSERT(shifter == RCX);
- Operand operand(src);
- EmitOperandREX(dst, operand, REX_W);
+ Operand operand(dst);
+ EmitOperandREX(src, operand, REX_W);
EmitUint8(0x0F);
EmitUint8(0xA5);
- EmitOperand(src & 7, Operand(dst));
+ EmitOperand(src & 7, operand);
}
@@ -2313,11 +2313,11 @@
void Assembler::shrdq(Register dst, Register src, Register shifter) {
AssemblerBuffer::EnsureCapacity ensured(&buffer_);
ASSERT(shifter == RCX);
- Operand operand(src);
- EmitOperandREX(dst, operand, REX_W);
+ Operand operand(dst);
+ EmitOperandREX(src, operand, REX_W);
EmitUint8(0x0F);
EmitUint8(0xAD);
- EmitOperand(src & 7, Operand(dst));
+ EmitOperand(src & 7, operand);
}
« no previous file with comments | « runtime/vm/assembler_ia32_test.cc ('k') | runtime/vm/assembler_x64_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698