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

Side by Side Diff: src/mips/full-codegen-mips.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/ic.cc ('k') | src/mips/lithium-codegen-mips.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 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after
1142 // to do a slow check. 1142 // to do a slow check.
1143 Label fixed_array; 1143 Label fixed_array;
1144 __ mov(a2, v0); 1144 __ mov(a2, v0);
1145 __ lw(a1, FieldMemOperand(a2, HeapObject::kMapOffset)); 1145 __ lw(a1, FieldMemOperand(a2, HeapObject::kMapOffset));
1146 __ LoadRoot(at, Heap::kMetaMapRootIndex); 1146 __ LoadRoot(at, Heap::kMetaMapRootIndex);
1147 __ Branch(&fixed_array, ne, a1, Operand(at)); 1147 __ Branch(&fixed_array, ne, a1, Operand(at));
1148 1148
1149 // We got a map in register v0. Get the enumeration cache from it. 1149 // We got a map in register v0. Get the enumeration cache from it.
1150 __ bind(&use_cache); 1150 __ bind(&use_cache);
1151 __ LoadInstanceDescriptors(v0, a1, a2); 1151 __ LoadInstanceDescriptors(v0, a1, a2);
1152 __ lw(a1, FieldMemOperand(a1, DescriptorArray::kLastAddedOffset)); 1152 __ lw(a1, FieldMemOperand(a1, DescriptorArray::kEnumCacheOffset));
1153 __ lw(a2, FieldMemOperand(a1, DescriptorArray::kEnumCacheBridgeCacheOffset)); 1153 __ lw(a2, FieldMemOperand(a1, DescriptorArray::kEnumCacheBridgeCacheOffset));
1154 1154
1155 // Set up the four remaining stack slots. 1155 // Set up the four remaining stack slots.
1156 __ push(v0); // Map. 1156 __ push(v0); // Map.
1157 __ lw(a1, FieldMemOperand(a2, FixedArray::kLengthOffset)); 1157 __ lw(a1, FieldMemOperand(a2, FixedArray::kLengthOffset));
1158 __ li(a0, Operand(Smi::FromInt(0))); 1158 __ li(a0, Operand(Smi::FromInt(0)));
1159 // Push enumeration cache, enumeration cache length (as smi) and zero. 1159 // Push enumeration cache, enumeration cache length (as smi) and zero.
1160 __ Push(a2, a1, a0); 1160 __ Push(a2, a1, a0);
1161 __ jmp(&loop); 1161 __ jmp(&loop);
1162 1162
(...skipping 3453 matching lines...) Expand 10 before | Expand all | Expand 10 after
4616 *context_length = 0; 4616 *context_length = 0;
4617 return previous_; 4617 return previous_;
4618 } 4618 }
4619 4619
4620 4620
4621 #undef __ 4621 #undef __
4622 4622
4623 } } // namespace v8::internal 4623 } } // namespace v8::internal
4624 4624
4625 #endif // V8_TARGET_ARCH_MIPS 4625 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698