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

Side by Side Diff: src/arm/codegen-arm.cc

Issue 11663005: Adapt Danno's Track Allocation Info idea to fast literals. When allocating a literal array, (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: A few more review comments Created 7 years, 11 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/arm/code-stubs-arm.cc ('k') | src/arm/full-codegen-arm.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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // -- r0 : value 172 // -- r0 : value
173 // -- r1 : key 173 // -- r1 : key
174 // -- r2 : receiver 174 // -- r2 : receiver
175 // -- lr : return address 175 // -- lr : return address
176 // -- r3 : target map, scratch for subsequent call 176 // -- r3 : target map, scratch for subsequent call
177 // -- r4 : scratch (elements) 177 // -- r4 : scratch (elements)
178 // ----------------------------------- 178 // -----------------------------------
179 Label loop, entry, convert_hole, gc_required, only_change_map, done; 179 Label loop, entry, convert_hole, gc_required, only_change_map, done;
180 bool vfp2_supported = CpuFeatures::IsSupported(VFP2); 180 bool vfp2_supported = CpuFeatures::IsSupported(VFP2);
181 181
182 if (FLAG_track_allocation_sites) {
183 masm->TestJSArrayForAllocationSiteInfo(r2, r4, fail);
184 }
185
182 // Check for empty arrays, which only require a map transition and no changes 186 // Check for empty arrays, which only require a map transition and no changes
183 // to the backing store. 187 // to the backing store.
184 __ ldr(r4, FieldMemOperand(r2, JSObject::kElementsOffset)); 188 __ ldr(r4, FieldMemOperand(r2, JSObject::kElementsOffset));
185 __ CompareRoot(r4, Heap::kEmptyFixedArrayRootIndex); 189 __ CompareRoot(r4, Heap::kEmptyFixedArrayRootIndex);
186 __ b(eq, &only_change_map); 190 __ b(eq, &only_change_map);
187 191
188 __ push(lr); 192 __ push(lr);
189 __ ldr(r5, FieldMemOperand(r4, FixedArray::kLengthOffset)); 193 __ ldr(r5, FieldMemOperand(r4, FixedArray::kLengthOffset));
190 // r4: source FixedArray 194 // r4: source FixedArray
191 // r5: number of elements (smi-tagged) 195 // r5: number of elements (smi-tagged)
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 patcher.masm()->add(r0, pc, Operand(-8)); 685 patcher.masm()->add(r0, pc, Operand(-8));
682 patcher.masm()->ldr(pc, MemOperand(pc, -4)); 686 patcher.masm()->ldr(pc, MemOperand(pc, -4));
683 patcher.masm()->dd(reinterpret_cast<uint32_t>(stub->instruction_start())); 687 patcher.masm()->dd(reinterpret_cast<uint32_t>(stub->instruction_start()));
684 } 688 }
685 } 689 }
686 690
687 691
688 } } // namespace v8::internal 692 } } // namespace v8::internal
689 693
690 #endif // V8_TARGET_ARCH_ARM 694 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698