Index: src/compiler/mips64/code-generator-mips64.cc |
diff --git a/src/compiler/mips64/code-generator-mips64.cc b/src/compiler/mips64/code-generator-mips64.cc |
index ba956f9cc76dc81c2ea6518963c6d226c9a6ce26..5519d6b41f39755ac17030043cdf197513e1e3fe 100644 |
--- a/src/compiler/mips64/code-generator-mips64.cc |
+++ b/src/compiler/mips64/code-generator-mips64.cc |
@@ -1734,6 +1734,15 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction( |
} |
break; |
} |
+ case kMips64ByteSwap64: { |
+ __ ByteSwapSigned(i.OutputRegister(0), i.InputRegister(0), 8); |
+ break; |
+ } |
+ case kMips64ByteSwap32: { |
+ __ ByteSwapUnsigned(i.OutputRegister(0), i.InputRegister(0), 4); |
+ __ dsrl32(i.OutputRegister(0), i.OutputRegister(0), 0); |
+ break; |
+ } |
case kCheckedLoadInt8: |
ASSEMBLE_CHECKED_LOAD_INTEGER(lb); |
break; |