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

Unified Diff: runtime/vm/assembler_x64.cc

Issue 10696183: Add some missing x64 instruction variations. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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_x64.h ('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 9573)
+++ runtime/vm/assembler_x64.cc (working copy)
@@ -872,6 +872,14 @@
}
+void Assembler::andq(Register dst, const Address& address) {
+ AssemblerBuffer::EnsureCapacity ensured(&buffer_);
+ EmitOperandREX(dst, address, REX_W);
+ EmitUint8(0x23);
+ EmitOperand(dst & 7, address);
+}
+
+
void Assembler::andq(Register dst, const Immediate& imm) {
AssemblerBuffer::EnsureCapacity ensured(&buffer_);
EmitRegisterREX(dst, REX_W);
@@ -888,6 +896,14 @@
}
+void Assembler::orq(Register dst, const Address& address) {
+ AssemblerBuffer::EnsureCapacity ensured(&buffer_);
+ EmitOperandREX(dst, address, REX_W);
+ EmitUint8(0x0B);
+ EmitOperand(dst & 7, address);
+}
+
+
void Assembler::orq(Register dst, const Immediate& imm) {
AssemblerBuffer::EnsureCapacity ensured(&buffer_);
EmitRegisterREX(dst, REX_W);
@@ -904,6 +920,14 @@
}
+void Assembler::xorq(Register dst, const Address& address) {
+ AssemblerBuffer::EnsureCapacity ensured(&buffer_);
+ EmitOperandREX(dst, address, REX_W);
+ EmitUint8(0x33);
+ EmitOperand(dst & 7, address);
+}
+
+
void Assembler::addl(Register dst, Register src) {
AssemblerBuffer::EnsureCapacity ensured(&buffer_);
Operand operand(src);
@@ -922,6 +946,14 @@
}
+void Assembler::addq(Register dst, const Address& address) {
+ AssemblerBuffer::EnsureCapacity ensured(&buffer_);
+ EmitOperandREX(dst, address, REX_W);
+ EmitUint8(0x03);
+ EmitOperand(dst & 7, address);
+}
+
+
void Assembler::addl(const Address& address, const Immediate& imm) {
UNIMPLEMENTED();
}
@@ -1025,6 +1057,15 @@
}
+void Assembler::imulq(Register dst, const Address& address) {
+ AssemblerBuffer::EnsureCapacity ensured(&buffer_);
+ EmitOperandREX(dst, address, REX_W);
+ EmitUint8(0x0F);
+ EmitUint8(0xAF);
+ EmitOperand(dst & 7, address);
+}
+
+
void Assembler::subq(Register dst, Register src) {
AssemblerBuffer::EnsureCapacity ensured(&buffer_);
Operand operand(src);
« 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