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 1220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1231 __ LoadRoot(at, Heap::kFixedDoubleArrayMapRootIndex); | 1231 __ LoadRoot(at, Heap::kFixedDoubleArrayMapRootIndex); |
1232 __ Branch(slow, ne, elements_map, Operand(at)); | 1232 __ Branch(slow, ne, elements_map, Operand(at)); |
1233 } | 1233 } |
1234 __ bind(&fast_double_without_map_check); | 1234 __ bind(&fast_double_without_map_check); |
1235 __ StoreNumberToDoubleElements(value, | 1235 __ StoreNumberToDoubleElements(value, |
1236 key, | 1236 key, |
1237 elements, // Overwritten. | 1237 elements, // Overwritten. |
1238 a3, // Scratch regs... | 1238 a3, // Scratch regs... |
1239 t0, | 1239 t0, |
1240 t1, | 1240 t1, |
1241 t2, | |
1242 &transition_double_elements); | 1241 &transition_double_elements); |
1243 if (increment_length == kIncrementLength) { | 1242 if (increment_length == kIncrementLength) { |
1244 // Add 1 to receiver->length. | 1243 // Add 1 to receiver->length. |
1245 __ Addu(scratch_value, key, Operand(Smi::FromInt(1))); | 1244 __ Addu(scratch_value, key, Operand(Smi::FromInt(1))); |
1246 __ sw(scratch_value, FieldMemOperand(receiver, JSArray::kLengthOffset)); | 1245 __ sw(scratch_value, FieldMemOperand(receiver, JSArray::kLengthOffset)); |
1247 } | 1246 } |
1248 __ Ret(); | 1247 __ Ret(); |
1249 | 1248 |
1250 __ bind(&transition_smi_elements); | 1249 __ bind(&transition_smi_elements); |
1251 // Transition the array appropriately depending on the value type. | 1250 // Transition the array appropriately depending on the value type. |
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1660 } else { | 1659 } else { |
1661 ASSERT(Assembler::IsBne(branch_instr)); | 1660 ASSERT(Assembler::IsBne(branch_instr)); |
1662 patcher.ChangeBranchCondition(eq); | 1661 patcher.ChangeBranchCondition(eq); |
1663 } | 1662 } |
1664 } | 1663 } |
1665 | 1664 |
1666 | 1665 |
1667 } } // namespace v8::internal | 1666 } } // namespace v8::internal |
1668 | 1667 |
1669 #endif // V8_TARGET_ARCH_MIPS | 1668 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |