Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(536)

Side by Side Diff: src/ia32/full-codegen-ia32.cc

Issue 10802034: Moved lastadded from DescriptorArray to Map. Renamed kLastAdded to kEnumCache. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments. Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/heap.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698