| 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 __ Branch(&only_change_map, eq, at, Operand(t0)); | 198 __ Branch(&only_change_map, eq, at, Operand(t0)); |
| 199 | 199 |
| 200 __ push(ra); | 200 __ push(ra); |
| 201 __ lw(t1, FieldMemOperand(t0, FixedArray::kLengthOffset)); | 201 __ lw(t1, FieldMemOperand(t0, FixedArray::kLengthOffset)); |
| 202 // t0: source FixedArray | 202 // t0: source FixedArray |
| 203 // t1: number of elements (smi-tagged) | 203 // t1: number of elements (smi-tagged) |
| 204 | 204 |
| 205 // Allocate new FixedDoubleArray. | 205 // Allocate new FixedDoubleArray. |
| 206 __ sll(scratch, t1, 2); | 206 __ sll(scratch, t1, 2); |
| 207 __ Addu(scratch, scratch, FixedDoubleArray::kHeaderSize); | 207 __ Addu(scratch, scratch, FixedDoubleArray::kHeaderSize); |
| 208 __ Allocate(scratch, t2, t3, t5, &gc_required, NO_ALLOCATION_FLAGS); | 208 __ Allocate(scratch, t2, t3, t5, &gc_required, DOUBLE_ALIGNMENT); |
| 209 // t2: destination FixedDoubleArray, not tagged as heap object | 209 // t2: destination FixedDoubleArray, not tagged as heap object |
| 210 | 210 |
| 211 // Set destination FixedDoubleArray's length and map. | 211 // Set destination FixedDoubleArray's length and map. |
| 212 __ LoadRoot(t5, Heap::kFixedDoubleArrayMapRootIndex); | 212 __ LoadRoot(t5, Heap::kFixedDoubleArrayMapRootIndex); |
| 213 __ sw(t1, MemOperand(t2, FixedDoubleArray::kLengthOffset)); | 213 __ sw(t1, MemOperand(t2, FixedDoubleArray::kLengthOffset)); |
| 214 __ sw(t5, MemOperand(t2, HeapObject::kMapOffset)); | 214 __ sw(t5, MemOperand(t2, HeapObject::kMapOffset)); |
| 215 // Update receiver's map. | 215 // Update receiver's map. |
| 216 | 216 |
| 217 __ sw(a3, FieldMemOperand(a2, HeapObject::kMapOffset)); | 217 __ sw(a3, FieldMemOperand(a2, HeapObject::kMapOffset)); |
| 218 __ RecordWriteField(a2, | 218 __ RecordWriteField(a2, |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 659 patcher.masm()->dd(reinterpret_cast<uint32_t>(stub->instruction_start())); | 659 patcher.masm()->dd(reinterpret_cast<uint32_t>(stub->instruction_start())); |
| 660 } | 660 } |
| 661 } | 661 } |
| 662 | 662 |
| 663 | 663 |
| 664 #undef __ | 664 #undef __ |
| 665 | 665 |
| 666 } } // namespace v8::internal | 666 } } // namespace v8::internal |
| 667 | 667 |
| 668 #endif // V8_TARGET_ARCH_MIPS | 668 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |