| 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 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1087 __ push(eax); | 1087 __ push(eax); |
| 1088 __ CallRuntime(Runtime::kGetPropertyNamesFast, 1); | 1088 __ CallRuntime(Runtime::kGetPropertyNamesFast, 1); |
| 1089 __ cmp(FieldOperand(eax, HeapObject::kMapOffset), | 1089 __ cmp(FieldOperand(eax, HeapObject::kMapOffset), |
| 1090 isolate()->factory()->meta_map()); | 1090 isolate()->factory()->meta_map()); |
| 1091 __ j(not_equal, &fixed_array); | 1091 __ j(not_equal, &fixed_array); |
| 1092 | 1092 |
| 1093 | 1093 |
| 1094 // We got a map in register eax. Get the enumeration cache from it. | 1094 // We got a map in register eax. Get the enumeration cache from it. |
| 1095 __ bind(&use_cache); | 1095 __ bind(&use_cache); |
| 1096 __ LoadInstanceDescriptors(eax, ecx); | 1096 __ LoadInstanceDescriptors(eax, ecx); |
| 1097 __ mov(ecx, FieldOperand(ecx, DescriptorArray::kLastAddedOffset)); | 1097 __ mov(ecx, FieldOperand(ecx, DescriptorArray::kEnumCacheOffset)); |
| 1098 __ mov(edx, FieldOperand(ecx, DescriptorArray::kEnumCacheBridgeCacheOffset)); | 1098 __ mov(edx, FieldOperand(ecx, DescriptorArray::kEnumCacheBridgeCacheOffset)); |
| 1099 | 1099 |
| 1100 // Set up the four remaining stack slots. | 1100 // Set up the four remaining stack slots. |
| 1101 __ push(eax); // Map. | 1101 __ push(eax); // Map. |
| 1102 __ push(edx); // Enumeration cache. | 1102 __ push(edx); // Enumeration cache. |
| 1103 __ mov(eax, FieldOperand(edx, FixedArray::kLengthOffset)); | 1103 __ mov(eax, FieldOperand(edx, FixedArray::kLengthOffset)); |
| 1104 __ push(eax); // Enumeration cache length (as smi). | 1104 __ push(eax); // Enumeration cache length (as smi). |
| 1105 __ push(Immediate(Smi::FromInt(0))); // Initial index. | 1105 __ push(Immediate(Smi::FromInt(0))); // Initial index. |
| 1106 __ jmp(&loop); | 1106 __ jmp(&loop); |
| 1107 | 1107 |
| (...skipping 3444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4552 *stack_depth = 0; | 4552 *stack_depth = 0; |
| 4553 *context_length = 0; | 4553 *context_length = 0; |
| 4554 return previous_; | 4554 return previous_; |
| 4555 } | 4555 } |
| 4556 | 4556 |
| 4557 #undef __ | 4557 #undef __ |
| 4558 | 4558 |
| 4559 } } // namespace v8::internal | 4559 } } // namespace v8::internal |
| 4560 | 4560 |
| 4561 #endif // V8_TARGET_ARCH_IA32 | 4561 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |