| 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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 __ CheckMap( | 445 __ CheckMap( |
| 446 a2, t5, Heap::kHeapNumberMapRootIndex, ¬_double, DONT_DO_SMI_CHECK); | 446 a2, t5, Heap::kHeapNumberMapRootIndex, ¬_double, DONT_DO_SMI_CHECK); |
| 447 __ bind(&cant_transition_map); | 447 __ bind(&cant_transition_map); |
| 448 __ UndoAllocationInNewSpace(a3, t0); | 448 __ UndoAllocationInNewSpace(a3, t0); |
| 449 __ Branch(call_generic_code); | 449 __ Branch(call_generic_code); |
| 450 | 450 |
| 451 __ bind(¬_double); | 451 __ bind(¬_double); |
| 452 // Transition FAST_SMI_ONLY_ELEMENTS to FAST_ELEMENTS. | 452 // Transition FAST_SMI_ONLY_ELEMENTS to FAST_ELEMENTS. |
| 453 // a3: JSArray | 453 // a3: JSArray |
| 454 __ lw(a2, FieldMemOperand(a3, HeapObject::kMapOffset)); | 454 __ lw(a2, FieldMemOperand(a3, HeapObject::kMapOffset)); |
| 455 __ LoadTransitionedArrayMapConditional(FAST_SMI_ONLY_ELEMENTS, | 455 __ LoadTransitionedArrayMapConditional(FAST_SMI_ELEMENTS, |
| 456 FAST_ELEMENTS, | 456 FAST_ELEMENTS, |
| 457 a2, | 457 a2, |
| 458 t5, | 458 t5, |
| 459 &cant_transition_map); | 459 &cant_transition_map); |
| 460 __ sw(a2, FieldMemOperand(a3, HeapObject::kMapOffset)); | 460 __ sw(a2, FieldMemOperand(a3, HeapObject::kMapOffset)); |
| 461 __ RecordWriteField(a3, | 461 __ RecordWriteField(a3, |
| 462 HeapObject::kMapOffset, | 462 HeapObject::kMapOffset, |
| 463 a2, | 463 a2, |
| 464 t5, | 464 t5, |
| 465 kRAHasNotBeenSaved, | 465 kRAHasNotBeenSaved, |
| (...skipping 1330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1796 __ bind(&dont_adapt_arguments); | 1796 __ bind(&dont_adapt_arguments); |
| 1797 __ Jump(a3); | 1797 __ Jump(a3); |
| 1798 } | 1798 } |
| 1799 | 1799 |
| 1800 | 1800 |
| 1801 #undef __ | 1801 #undef __ |
| 1802 | 1802 |
| 1803 } } // namespace v8::internal | 1803 } } // namespace v8::internal |
| 1804 | 1804 |
| 1805 #endif // V8_TARGET_ARCH_MIPS | 1805 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |