Index: src/full-codegen/mips64/full-codegen-mips64.cc |
diff --git a/src/full-codegen/mips64/full-codegen-mips64.cc b/src/full-codegen/mips64/full-codegen-mips64.cc |
index 1f60d0703d3ed4645c774bceed809dc326880b5d..5678c0076973b72a4c438fe1d807cebd5aa37e94 100644 |
--- a/src/full-codegen/mips64/full-codegen-mips64.cc |
+++ b/src/full-codegen/mips64/full-codegen-mips64.cc |
@@ -3804,8 +3804,7 @@ void FullCodeGenerator::EmitFastOneByteArrayJoin(CallRuntime* expr) { |
__ mov(string_length, zero_reg); |
__ Daddu(element, |
elements, Operand(FixedArray::kHeaderSize - kHeapObjectTag)); |
- __ dsll(elements_end, array_length, kPointerSizeLog2); |
- __ Daddu(elements_end, element, elements_end); |
+ __ Dlsa(elements_end, element, array_length, kPointerSizeLog2); |
// Loop condition: while (element < elements_end). |
// Live values in registers: |
// elements: Fixed array of strings. |
@@ -3884,8 +3883,7 @@ void FullCodeGenerator::EmitFastOneByteArrayJoin(CallRuntime* expr) { |
// Prepare for looping. Set up elements_end to end of the array. Set |
// result_pos to the position of the result where to write the first |
// character. |
- __ dsll(elements_end, array_length, kPointerSizeLog2); |
- __ Daddu(elements_end, element, elements_end); |
+ __ Dlsa(elements_end, element, array_length, kPointerSizeLog2); |
result_pos = array_length; // End of live range for array_length. |
array_length = no_reg; |
__ Daddu(result_pos, |