| 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 1251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1262 if (check_map == kCheckMap) { | 1262 if (check_map == kCheckMap) { |
| 1263 // Check for fast double array case. If this fails, call through to the | 1263 // Check for fast double array case. If this fails, call through to the |
| 1264 // runtime. | 1264 // runtime. |
| 1265 __ LoadRoot(at, Heap::kFixedDoubleArrayMapRootIndex); | 1265 __ LoadRoot(at, Heap::kFixedDoubleArrayMapRootIndex); |
| 1266 __ Branch(slow, ne, elements_map, Operand(at)); | 1266 __ Branch(slow, ne, elements_map, Operand(at)); |
| 1267 } | 1267 } |
| 1268 __ bind(&fast_double_without_map_check); | 1268 __ bind(&fast_double_without_map_check); |
| 1269 __ StoreNumberToDoubleElements(value, | 1269 __ StoreNumberToDoubleElements(value, |
| 1270 key, | 1270 key, |
| 1271 receiver, | 1271 receiver, |
| 1272 elements, | 1272 elements, // Overwritten. |
| 1273 a3, | 1273 a3, // Scratch regs... |
| 1274 t0, | 1274 t0, |
| 1275 t1, | 1275 t1, |
| 1276 t2, | 1276 t2, |
| 1277 &transition_double_elements); | 1277 &transition_double_elements); |
| 1278 if (increment_length == kIncrementLength) { | 1278 if (increment_length == kIncrementLength) { |
| 1279 // Add 1 to receiver->length. | 1279 // Add 1 to receiver->length. |
| 1280 __ Addu(scratch_value, key, Operand(Smi::FromInt(1))); | 1280 __ Addu(scratch_value, key, Operand(Smi::FromInt(1))); |
| 1281 __ sw(scratch_value, FieldMemOperand(receiver, JSArray::kLengthOffset)); | 1281 __ sw(scratch_value, FieldMemOperand(receiver, JSArray::kLengthOffset)); |
| 1282 } | 1282 } |
| 1283 __ Ret(); | 1283 __ Ret(); |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1787 } else { | 1787 } else { |
| 1788 ASSERT(Assembler::IsBne(branch_instr)); | 1788 ASSERT(Assembler::IsBne(branch_instr)); |
| 1789 patcher.ChangeBranchCondition(eq); | 1789 patcher.ChangeBranchCondition(eq); |
| 1790 } | 1790 } |
| 1791 } | 1791 } |
| 1792 | 1792 |
| 1793 | 1793 |
| 1794 } } // namespace v8::internal | 1794 } } // namespace v8::internal |
| 1795 | 1795 |
| 1796 #endif // V8_TARGET_ARCH_MIPS | 1796 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |