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 1464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1475 __ jmp(&fast_double_without_map_check); | 1475 __ jmp(&fast_double_without_map_check); |
1476 | 1476 |
1477 __ bind(&non_double_value); | 1477 __ bind(&non_double_value); |
1478 // Value is not a double, FAST_SMI_ONLY_ELEMENTS -> FAST_ELEMENTS | 1478 // Value is not a double, FAST_SMI_ONLY_ELEMENTS -> FAST_ELEMENTS |
1479 __ LoadTransitionedArrayMapConditional(FAST_SMI_ONLY_ELEMENTS, | 1479 __ LoadTransitionedArrayMapConditional(FAST_SMI_ONLY_ELEMENTS, |
1480 FAST_ELEMENTS, | 1480 FAST_ELEMENTS, |
1481 receiver_map, | 1481 receiver_map, |
1482 r4, | 1482 r4, |
1483 &slow); | 1483 &slow); |
1484 ASSERT(receiver_map.is(r3)); // Transition code expects map in r3 | 1484 ASSERT(receiver_map.is(r3)); // Transition code expects map in r3 |
1485 ElementsTransitionGenerator::GenerateSmiOnlyToObject(masm); | 1485 ElementsTransitionGenerator::GenerateMapChangeElementTransition(masm); |
1486 __ ldr(elements, FieldMemOperand(receiver, JSObject::kElementsOffset)); | 1486 __ ldr(elements, FieldMemOperand(receiver, JSObject::kElementsOffset)); |
1487 __ jmp(&finish_object_store); | 1487 __ jmp(&finish_object_store); |
1488 | 1488 |
1489 __ bind(&transition_double_elements); | 1489 __ bind(&transition_double_elements); |
1490 // Elements are FAST_DOUBLE_ELEMENTS, but value is an Object that's not a | 1490 // Elements are FAST_DOUBLE_ELEMENTS, but value is an Object that's not a |
1491 // HeapNumber. Make sure that the receiver is a Array with FAST_ELEMENTS and | 1491 // HeapNumber. Make sure that the receiver is a Array with FAST_ELEMENTS and |
1492 // transition array from FAST_DOUBLE_ELEMENTS to FAST_ELEMENTS | 1492 // transition array from FAST_DOUBLE_ELEMENTS to FAST_ELEMENTS |
1493 __ LoadTransitionedArrayMapConditional(FAST_DOUBLE_ELEMENTS, | 1493 __ LoadTransitionedArrayMapConditional(FAST_DOUBLE_ELEMENTS, |
1494 FAST_ELEMENTS, | 1494 FAST_ELEMENTS, |
1495 receiver_map, | 1495 receiver_map, |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1755 } else { | 1755 } else { |
1756 ASSERT(Assembler::GetCondition(branch_instr) == ne); | 1756 ASSERT(Assembler::GetCondition(branch_instr) == ne); |
1757 patcher.EmitCondition(eq); | 1757 patcher.EmitCondition(eq); |
1758 } | 1758 } |
1759 } | 1759 } |
1760 | 1760 |
1761 | 1761 |
1762 } } // namespace v8::internal | 1762 } } // namespace v8::internal |
1763 | 1763 |
1764 #endif // V8_TARGET_ARCH_ARM | 1764 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |