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

Side by Side Diff: src/ppc/interface-descriptors-ppc.cc

Issue 1230103004: PPC: Switch CallConstructStub to take new.target in register. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/ppc/full-codegen-ppc.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_PPC 7 #if V8_TARGET_ARCH_PPC
8 8
9 #include "src/interface-descriptors.h" 9 #include "src/interface-descriptors.h"
10 10
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 Register registers[] = {r4, r6, r5}; 162 Register registers[] = {r4, r6, r5};
163 data->InitializePlatformSpecific(arraysize(registers), registers); 163 data->InitializePlatformSpecific(arraysize(registers), registers);
164 } 164 }
165 165
166 166
167 void CallConstructDescriptor::InitializePlatformSpecific( 167 void CallConstructDescriptor::InitializePlatformSpecific(
168 CallInterfaceDescriptorData* data) { 168 CallInterfaceDescriptorData* data) {
169 // r3 : number of arguments 169 // r3 : number of arguments
170 // r4 : the function to call 170 // r4 : the function to call
171 // r5 : feedback vector 171 // r5 : feedback vector
172 // r6 : (only if r5 is not the megamorphic symbol) slot in feedback 172 // r6 : slot in feedback vector (Smi, for RecordCallTarget)
173 // vector (Smi) 173 // r7 : original constructor (for IsSuperConstructorCall)
174 // TODO(turbofan): So far we don't gather type feedback and hence skip the 174 // TODO(turbofan): So far we don't gather type feedback and hence skip the
175 // slot parameter, but ArrayConstructStub needs the vector to be undefined. 175 // slot parameter, but ArrayConstructStub needs the vector to be undefined.
176 Register registers[] = {r3, r4, r5}; 176 Register registers[] = {r3, r4, r7, r5};
177 data->InitializePlatformSpecific(arraysize(registers), registers); 177 data->InitializePlatformSpecific(arraysize(registers), registers);
178 } 178 }
179 179
180 180
181 void RegExpConstructResultDescriptor::InitializePlatformSpecific( 181 void RegExpConstructResultDescriptor::InitializePlatformSpecific(
182 CallInterfaceDescriptorData* data) { 182 CallInterfaceDescriptorData* data) {
183 Register registers[] = {r5, r4, r3}; 183 Register registers[] = {r5, r4, r3};
184 data->InitializePlatformSpecific(arraysize(registers), registers); 184 data->InitializePlatformSpecific(arraysize(registers), registers);
185 } 185 }
186 186
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 r4, // math rounding function 356 r4, // math rounding function
357 r6, // vector slot id 357 r6, // vector slot id
358 r7, // type vector 358 r7, // type vector
359 }; 359 };
360 data->InitializePlatformSpecific(arraysize(registers), registers); 360 data->InitializePlatformSpecific(arraysize(registers), registers);
361 } 361 }
362 } // namespace internal 362 } // namespace internal
363 } // namespace v8 363 } // namespace v8
364 364
365 #endif // V8_TARGET_ARCH_PPC 365 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/ppc/full-codegen-ppc.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698