Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index 9e8568c2de5b260edfd23c53c33f599a2792b857..d91f0cff4b1221a0304f800e690656a4674f18a0 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -940,14 +940,8 @@ void MacroAssembler::Cvtlsi2sd(XMMRegister dst, const Operand& src) { |
void MacroAssembler::Load(Register dst, const Operand& src, Representation r) { |
ASSERT(!r.IsDouble()); |
- if (r.IsInteger8()) { |
- movsxbq(dst, src); |
- } else if (r.IsUInteger8()) { |
+ if (r.IsByte()) { |
movzxbl(dst, src); |
- } else if (r.IsInteger16()) { |
- movsxwq(dst, src); |
- } else if (r.IsUInteger16()) { |
- movzxwl(dst, src); |
} else if (r.IsInteger32()) { |
movl(dst, src); |
} else { |
@@ -958,10 +952,8 @@ void MacroAssembler::Load(Register dst, const Operand& src, Representation r) { |
void MacroAssembler::Store(const Operand& dst, Register src, Representation r) { |
ASSERT(!r.IsDouble()); |
- if (r.IsInteger8() || r.IsUInteger8()) { |
+ if (r.IsByte()) { |
movb(dst, src); |
- } else if (r.IsInteger16() || r.IsUInteger16()) { |
- movw(dst, src); |
} else if (r.IsInteger32()) { |
movl(dst, src); |
} else { |