| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1010 __ lw(a1, FieldMemOperand(a2, HeapObject::kMapOffset)); | 1010 __ lw(a1, FieldMemOperand(a2, HeapObject::kMapOffset)); |
| 1011 __ LoadRoot(at, Heap::kMetaMapRootIndex); | 1011 __ LoadRoot(at, Heap::kMetaMapRootIndex); |
| 1012 __ Branch(&fixed_array, ne, a1, Operand(at)); | 1012 __ Branch(&fixed_array, ne, a1, Operand(at)); |
| 1013 | 1013 |
| 1014 // We got a map in register v0. Get the enumeration cache from it. | 1014 // We got a map in register v0. Get the enumeration cache from it. |
| 1015 __ bind(&use_cache); | 1015 __ bind(&use_cache); |
| 1016 __ LoadInstanceDescriptors(v0, a1); | 1016 __ LoadInstanceDescriptors(v0, a1); |
| 1017 __ lw(a1, FieldMemOperand(a1, DescriptorArray::kEnumerationIndexOffset)); | 1017 __ lw(a1, FieldMemOperand(a1, DescriptorArray::kEnumerationIndexOffset)); |
| 1018 __ lw(a2, FieldMemOperand(a1, DescriptorArray::kEnumCacheBridgeCacheOffset)); | 1018 __ lw(a2, FieldMemOperand(a1, DescriptorArray::kEnumCacheBridgeCacheOffset)); |
| 1019 | 1019 |
| 1020 // Setup the four remaining stack slots. | 1020 // Set up the four remaining stack slots. |
| 1021 __ push(v0); // Map. | 1021 __ push(v0); // Map. |
| 1022 __ lw(a1, FieldMemOperand(a2, FixedArray::kLengthOffset)); | 1022 __ lw(a1, FieldMemOperand(a2, FixedArray::kLengthOffset)); |
| 1023 __ li(a0, Operand(Smi::FromInt(0))); | 1023 __ li(a0, Operand(Smi::FromInt(0))); |
| 1024 // Push enumeration cache, enumeration cache length (as smi) and zero. | 1024 // Push enumeration cache, enumeration cache length (as smi) and zero. |
| 1025 __ Push(a2, a1, a0); | 1025 __ Push(a2, a1, a0); |
| 1026 __ jmp(&loop); | 1026 __ jmp(&loop); |
| 1027 | 1027 |
| 1028 // We got a fixed array in register v0. Iterate through that. | 1028 // We got a fixed array in register v0. Iterate through that. |
| 1029 Label non_proxy; | 1029 Label non_proxy; |
| 1030 __ bind(&fixed_array); | 1030 __ bind(&fixed_array); |
| (...skipping 3395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4426 *context_length = 0; | 4426 *context_length = 0; |
| 4427 return previous_; | 4427 return previous_; |
| 4428 } | 4428 } |
| 4429 | 4429 |
| 4430 | 4430 |
| 4431 #undef __ | 4431 #undef __ |
| 4432 | 4432 |
| 4433 } } // namespace v8::internal | 4433 } } // namespace v8::internal |
| 4434 | 4434 |
| 4435 #endif // V8_TARGET_ARCH_MIPS | 4435 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |