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

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

Issue 139973004: A64: Synchronize with r15814. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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/a64/code-stubs-a64.cc ('k') | src/a64/full-codegen-a64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 ASSERT(masm->has_frame()); 128 ASSERT(masm->has_frame());
129 masm->set_has_frame(false); 129 masm->set_has_frame(false);
130 } 130 }
131 131
132 132
133 // ------------------------------------------------------------------------- 133 // -------------------------------------------------------------------------
134 // Code generators 134 // Code generators
135 135
136 void ElementsTransitionGenerator::GenerateMapChangeElementsTransition( 136 void ElementsTransitionGenerator::GenerateMapChangeElementsTransition(
137 MacroAssembler* masm, AllocationSiteMode mode, 137 MacroAssembler* masm, AllocationSiteMode mode,
138 Label* allocation_site_info_found) { 138 Label* allocation_memento_found) {
139 // ----------- S t a t e ------------- 139 // ----------- S t a t e -------------
140 // -- x2 : receiver 140 // -- x2 : receiver
141 // -- x3 : target map 141 // -- x3 : target map
142 // ----------------------------------- 142 // -----------------------------------
143 Register receiver = x2; 143 Register receiver = x2;
144 Register map = x3; 144 Register map = x3;
145 145
146 if (mode == TRACK_ALLOCATION_SITE) { 146 if (mode == TRACK_ALLOCATION_SITE) {
147 ASSERT(allocation_site_info_found != NULL); 147 ASSERT(allocation_memento_found != NULL);
148 __ TestJSArrayForAllocationSiteInfo(receiver, x10, x11); 148 __ TestJSArrayForAllocationMemento(receiver, x10, x11);
149 __ B(eq, allocation_site_info_found); 149 __ B(eq, allocation_memento_found);
150 } 150 }
151 151
152 // Set transitioned map. 152 // Set transitioned map.
153 __ Str(map, FieldMemOperand(receiver, HeapObject::kMapOffset)); 153 __ Str(map, FieldMemOperand(receiver, HeapObject::kMapOffset));
154 __ RecordWriteField(receiver, 154 __ RecordWriteField(receiver,
155 HeapObject::kMapOffset, 155 HeapObject::kMapOffset,
156 map, 156 map,
157 x10, 157 x10,
158 kLRHasNotBeenSaved, 158 kLRHasNotBeenSaved,
159 kDontSaveFPRegs, 159 kDontSaveFPRegs,
(...skipping 11 matching lines...) Expand all
171 // -- x1 : key 171 // -- x1 : key
172 // -- x2 : receiver 172 // -- x2 : receiver
173 // -- x3 : target map, scratch for subsequent call 173 // -- x3 : target map, scratch for subsequent call
174 // ----------------------------------- 174 // -----------------------------------
175 Register receiver = x2; 175 Register receiver = x2;
176 Register target_map = x3; 176 Register target_map = x3;
177 177
178 Label gc_required, only_change_map; 178 Label gc_required, only_change_map;
179 179
180 if (mode == TRACK_ALLOCATION_SITE) { 180 if (mode == TRACK_ALLOCATION_SITE) {
181 __ TestJSArrayForAllocationSiteInfo(receiver, x10, x11); 181 __ TestJSArrayForAllocationMemento(receiver, x10, x11);
182 __ B(eq, fail); 182 __ B(eq, fail);
183 } 183 }
184 184
185 // Check for empty arrays, which only require a map transition and no changes 185 // Check for empty arrays, which only require a map transition and no changes
186 // to the backing store. 186 // to the backing store.
187 Register elements = x4; 187 Register elements = x4;
188 __ Ldr(elements, FieldMemOperand(receiver, JSObject::kElementsOffset)); 188 __ Ldr(elements, FieldMemOperand(receiver, JSObject::kElementsOffset));
189 __ JumpIfRoot(elements, Heap::kEmptyFixedArrayRootIndex, &only_change_map); 189 __ JumpIfRoot(elements, Heap::kEmptyFixedArrayRootIndex, &only_change_map);
190 190
191 __ Push(lr); 191 __ Push(lr);
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 // -- lr : return address 277 // -- lr : return address
278 // -- x3 : target map, scratch for subsequent call 278 // -- x3 : target map, scratch for subsequent call
279 // -- x4 : scratch (elements) 279 // -- x4 : scratch (elements)
280 // ----------------------------------- 280 // -----------------------------------
281 Register value = x0; 281 Register value = x0;
282 Register key = x1; 282 Register key = x1;
283 Register receiver = x2; 283 Register receiver = x2;
284 Register target_map = x3; 284 Register target_map = x3;
285 285
286 if (mode == TRACK_ALLOCATION_SITE) { 286 if (mode == TRACK_ALLOCATION_SITE) {
287 __ TestJSArrayForAllocationSiteInfo(receiver, x10, x11); 287 __ TestJSArrayForAllocationMemento(receiver, x10, x11);
288 __ B(eq, fail); 288 __ B(eq, fail);
289 } 289 }
290 290
291 // Check for empty arrays, which only require a map transition and no changes 291 // Check for empty arrays, which only require a map transition and no changes
292 // to the backing store. 292 // to the backing store.
293 Label only_change_map; 293 Label only_change_map;
294 Register elements = x4; 294 Register elements = x4;
295 __ Ldr(elements, FieldMemOperand(receiver, JSObject::kElementsOffset)); 295 __ Ldr(elements, FieldMemOperand(receiver, JSObject::kElementsOffset));
296 __ JumpIfRoot(elements, Heap::kEmptyFixedArrayRootIndex, &only_change_map); 296 __ JumpIfRoot(elements, Heap::kEmptyFixedArrayRootIndex, &only_change_map);
297 297
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 __ Fmul(result, double_temp3, double_temp1); 615 __ Fmul(result, double_temp3, double_temp1);
616 616
617 __ Bind(&done); 617 __ Bind(&done);
618 } 618 }
619 619
620 #undef __ 620 #undef __
621 621
622 } } // namespace v8::internal 622 } } // namespace v8::internal
623 623
624 #endif // V8_TARGET_ARCH_A64 624 #endif // V8_TARGET_ARCH_A64
OLDNEW
« no previous file with comments | « src/a64/code-stubs-a64.cc ('k') | src/a64/full-codegen-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698