OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 7659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7670 __ lw(t1, FieldMemOperand(a1, JSObject::kElementsOffset)); | 7670 __ lw(t1, FieldMemOperand(a1, JSObject::kElementsOffset)); |
7671 __ sll(t2, a3, kPointerSizeLog2 - kSmiTagSize); | 7671 __ sll(t2, a3, kPointerSizeLog2 - kSmiTagSize); |
7672 __ Addu(t2, t1, t2); | 7672 __ Addu(t2, t1, t2); |
7673 __ sw(a0, FieldMemOperand(t2, FixedArray::kHeaderSize)); | 7673 __ sw(a0, FieldMemOperand(t2, FixedArray::kHeaderSize)); |
7674 __ Ret(USE_DELAY_SLOT); | 7674 __ Ret(USE_DELAY_SLOT); |
7675 __ mov(v0, a0); | 7675 __ mov(v0, a0); |
7676 | 7676 |
7677 // Array literal has ElementsKind of FAST_DOUBLE_ELEMENTS. | 7677 // Array literal has ElementsKind of FAST_DOUBLE_ELEMENTS. |
7678 __ bind(&double_elements); | 7678 __ bind(&double_elements); |
7679 __ lw(t1, FieldMemOperand(a1, JSObject::kElementsOffset)); | 7679 __ lw(t1, FieldMemOperand(a1, JSObject::kElementsOffset)); |
7680 __ StoreNumberToDoubleElements(a0, a3, a1, t1, t2, t3, t5, t6, | 7680 __ StoreNumberToDoubleElements(a0, a3, a1, t1, t2, t3, t5, a2, |
7681 &slow_elements); | 7681 &slow_elements); |
7682 __ Ret(USE_DELAY_SLOT); | 7682 __ Ret(USE_DELAY_SLOT); |
7683 __ mov(v0, a0); | 7683 __ mov(v0, a0); |
7684 } | 7684 } |
7685 | 7685 |
7686 | 7686 |
7687 #undef __ | 7687 #undef __ |
7688 | 7688 |
7689 } } // namespace v8::internal | 7689 } } // namespace v8::internal |
7690 | 7690 |
7691 #endif // V8_TARGET_ARCH_MIPS | 7691 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |