| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 692 // length is always a smi. | 692 // length is always a smi. |
| 693 // r0 == value, r3 == object | 693 // r0 == value, r3 == object |
| 694 __ bind(&array); | 694 __ bind(&array); |
| 695 __ ldr(r2, FieldMemOperand(r3, JSObject::kElementsOffset)); | 695 __ ldr(r2, FieldMemOperand(r3, JSObject::kElementsOffset)); |
| 696 __ ldr(r1, FieldMemOperand(r2, HeapObject::kMapOffset)); | 696 __ ldr(r1, FieldMemOperand(r2, HeapObject::kMapOffset)); |
| 697 __ cmp(r1, Operand(Factory::hash_table_map())); | 697 __ cmp(r1, Operand(Factory::hash_table_map())); |
| 698 __ b(eq, &slow); | 698 __ b(eq, &slow); |
| 699 | 699 |
| 700 // Check the key against the length in the array, compute the | 700 // Check the key against the length in the array, compute the |
| 701 // address to store into and fall through to fast case. | 701 // address to store into and fall through to fast case. |
| 702 __ ldr(r1, MemOperand(sp)); // resotre key | 702 __ ldr(r1, MemOperand(sp)); // restore key |
| 703 // r0 == value, r1 == key, r2 == elements, r3 == object. | 703 // r0 == value, r1 == key, r2 == elements, r3 == object. |
| 704 __ ldr(ip, FieldMemOperand(r3, JSArray::kLengthOffset)); | 704 __ ldr(ip, FieldMemOperand(r3, JSArray::kLengthOffset)); |
| 705 __ cmp(r1, Operand(ip)); | 705 __ cmp(r1, Operand(ip)); |
| 706 __ b(hs, &extra); | 706 __ b(hs, &extra); |
| 707 __ mov(r3, Operand(r2)); | 707 __ mov(r3, Operand(r2)); |
| 708 __ add(r2, r2, Operand(Array::kHeaderSize - kHeapObjectTag)); | 708 __ add(r2, r2, Operand(Array::kHeaderSize - kHeapObjectTag)); |
| 709 __ add(r2, r2, Operand(r1, LSL, kPointerSizeLog2 - kSmiTagSize)); | 709 __ add(r2, r2, Operand(r1, LSL, kPointerSizeLog2 - kSmiTagSize)); |
| 710 | 710 |
| 711 | 711 |
| 712 // Fast case: Do the store. | 712 // Fast case: Do the store. |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 790 | 790 |
| 791 // Perform tail call to the entry. | 791 // Perform tail call to the entry. |
| 792 __ TailCallRuntime(f, 3); | 792 __ TailCallRuntime(f, 3); |
| 793 } | 793 } |
| 794 | 794 |
| 795 | 795 |
| 796 #undef __ | 796 #undef __ |
| 797 | 797 |
| 798 | 798 |
| 799 } } // namespace v8::internal | 799 } } // namespace v8::internal |
| OLD | NEW |