| 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 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1137 Label fixed_array; | 1137 Label fixed_array; |
| 1138 __ mov(r2, r0); | 1138 __ mov(r2, r0); |
| 1139 __ ldr(r1, FieldMemOperand(r2, HeapObject::kMapOffset)); | 1139 __ ldr(r1, FieldMemOperand(r2, HeapObject::kMapOffset)); |
| 1140 __ LoadRoot(ip, Heap::kMetaMapRootIndex); | 1140 __ LoadRoot(ip, Heap::kMetaMapRootIndex); |
| 1141 __ cmp(r1, ip); | 1141 __ cmp(r1, ip); |
| 1142 __ b(ne, &fixed_array); | 1142 __ b(ne, &fixed_array); |
| 1143 | 1143 |
| 1144 // We got a map in register r0. Get the enumeration cache from it. | 1144 // We got a map in register r0. Get the enumeration cache from it. |
| 1145 __ bind(&use_cache); | 1145 __ bind(&use_cache); |
| 1146 __ LoadInstanceDescriptors(r0, r1, r2); | 1146 __ LoadInstanceDescriptors(r0, r1, r2); |
| 1147 __ ldr(r1, FieldMemOperand(r1, DescriptorArray::kLastAddedOffset)); | 1147 __ ldr(r1, FieldMemOperand(r1, DescriptorArray::kEnumCacheOffset)); |
| 1148 __ ldr(r2, FieldMemOperand(r1, DescriptorArray::kEnumCacheBridgeCacheOffset)); | 1148 __ ldr(r2, FieldMemOperand(r1, DescriptorArray::kEnumCacheBridgeCacheOffset)); |
| 1149 | 1149 |
| 1150 // Set up the four remaining stack slots. | 1150 // Set up the four remaining stack slots. |
| 1151 __ push(r0); // Map. | 1151 __ push(r0); // Map. |
| 1152 __ ldr(r1, FieldMemOperand(r2, FixedArray::kLengthOffset)); | 1152 __ ldr(r1, FieldMemOperand(r2, FixedArray::kLengthOffset)); |
| 1153 __ mov(r0, Operand(Smi::FromInt(0))); | 1153 __ mov(r0, Operand(Smi::FromInt(0))); |
| 1154 // Push enumeration cache, enumeration cache length (as smi) and zero. | 1154 // Push enumeration cache, enumeration cache length (as smi) and zero. |
| 1155 __ Push(r2, r1, r0); | 1155 __ Push(r2, r1, r0); |
| 1156 __ jmp(&loop); | 1156 __ jmp(&loop); |
| 1157 | 1157 |
| (...skipping 3423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4581 *context_length = 0; | 4581 *context_length = 0; |
| 4582 return previous_; | 4582 return previous_; |
| 4583 } | 4583 } |
| 4584 | 4584 |
| 4585 | 4585 |
| 4586 #undef __ | 4586 #undef __ |
| 4587 | 4587 |
| 4588 } } // namespace v8::internal | 4588 } } // namespace v8::internal |
| 4589 | 4589 |
| 4590 #endif // V8_TARGET_ARCH_ARM | 4590 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |