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 949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
960 __ cmp(FieldOperand(eax, HeapObject::kMapOffset), | 960 __ cmp(FieldOperand(eax, HeapObject::kMapOffset), |
961 isolate()->factory()->meta_map()); | 961 isolate()->factory()->meta_map()); |
962 __ j(not_equal, &fixed_array, Label::kNear); | 962 __ j(not_equal, &fixed_array, Label::kNear); |
963 | 963 |
964 // We got a map in register eax. Get the enumeration cache from it. | 964 // We got a map in register eax. Get the enumeration cache from it. |
965 __ bind(&use_cache); | 965 __ bind(&use_cache); |
966 __ LoadInstanceDescriptors(eax, ecx); | 966 __ LoadInstanceDescriptors(eax, ecx); |
967 __ mov(ecx, FieldOperand(ecx, DescriptorArray::kEnumerationIndexOffset)); | 967 __ mov(ecx, FieldOperand(ecx, DescriptorArray::kEnumerationIndexOffset)); |
968 __ mov(edx, FieldOperand(ecx, DescriptorArray::kEnumCacheBridgeCacheOffset)); | 968 __ mov(edx, FieldOperand(ecx, DescriptorArray::kEnumCacheBridgeCacheOffset)); |
969 | 969 |
970 // Setup the four remaining stack slots. | 970 // Set up the four remaining stack slots. |
971 __ push(eax); // Map. | 971 __ push(eax); // Map. |
972 __ push(edx); // Enumeration cache. | 972 __ push(edx); // Enumeration cache. |
973 __ mov(eax, FieldOperand(edx, FixedArray::kLengthOffset)); | 973 __ mov(eax, FieldOperand(edx, FixedArray::kLengthOffset)); |
974 __ push(eax); // Enumeration cache length (as smi). | 974 __ push(eax); // Enumeration cache length (as smi). |
975 __ push(Immediate(Smi::FromInt(0))); // Initial index. | 975 __ push(Immediate(Smi::FromInt(0))); // Initial index. |
976 __ jmp(&loop); | 976 __ jmp(&loop); |
977 | 977 |
978 // We got a fixed array in register eax. Iterate through that. | 978 // We got a fixed array in register eax. Iterate through that. |
979 Label non_proxy; | 979 Label non_proxy; |
980 __ bind(&fixed_array); | 980 __ bind(&fixed_array); |
(...skipping 3399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4380 *context_length = 0; | 4380 *context_length = 0; |
4381 return previous_; | 4381 return previous_; |
4382 } | 4382 } |
4383 | 4383 |
4384 | 4384 |
4385 #undef __ | 4385 #undef __ |
4386 | 4386 |
4387 } } // namespace v8::internal | 4387 } } // namespace v8::internal |
4388 | 4388 |
4389 #endif // V8_TARGET_ARCH_IA32 | 4389 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |