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

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

Issue 1237813002: Switch CallConstructStub to take new.target in register. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments about ARM and MIPS. 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/mips64/full-codegen-mips64.cc ('k') | src/x64/builtins-x64.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 // 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_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
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[] = {a1}; 162 Register registers[] = {a1};
163 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 163 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
164 } 164 }
165 165
166 166
167 void CallConstructDescriptor::InitializePlatformSpecific( 167 void CallConstructDescriptor::InitializePlatformSpecific(
168 CallInterfaceDescriptorData* data) { 168 CallInterfaceDescriptorData* data) {
169 // a0 : number of arguments 169 // a0 : number of arguments
170 // a1 : the function to call 170 // a1 : the function to call
171 // a2 : feedback vector 171 // a2 : feedback vector
172 // a3 : (only if a2 is not the megamorphic symbol) slot in feedback 172 // a3 : slot in feedback vector (Smi, for RecordCallTarget)
173 // vector (Smi) 173 // a4 : 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[] = {a0, a1, a2}; 176 Register registers[] = {a0, a1, a4, a2};
177 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 177 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
178 } 178 }
179 179
180 180
181 void RegExpConstructResultDescriptor::InitializePlatformSpecific( 181 void RegExpConstructResultDescriptor::InitializePlatformSpecific(
182 CallInterfaceDescriptorData* data) { 182 CallInterfaceDescriptorData* data) {
183 Register registers[] = {a2, a1, a0}; 183 Register registers[] = {a2, a1, a0};
184 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 184 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
185 } 185 }
186 186
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 a1, // math rounding function 357 a1, // math rounding function
358 a3, // vector slot id 358 a3, // vector slot id
359 a2, // type vector 359 a2, // type vector
360 }; 360 };
361 data->InitializePlatformSpecific(arraysize(registers), registers); 361 data->InitializePlatformSpecific(arraysize(registers), registers);
362 } 362 }
363 } // namespace internal 363 } // namespace internal
364 } // namespace v8 364 } // namespace v8
365 365
366 #endif // V8_TARGET_ARCH_MIPS64 366 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/full-codegen-mips64.cc ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698