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

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

Issue 1442643009: Rename original constructor to new target (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 1 month 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/code-stubs-mips64.cc ('k') | src/objects.h » ('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 #if V8_TARGET_ARCH_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 #include "src/interface-descriptors.h" 7 #include "src/interface-descriptors.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 180 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
181 } 181 }
182 182
183 183
184 void CallConstructDescriptor::InitializePlatformSpecific( 184 void CallConstructDescriptor::InitializePlatformSpecific(
185 CallInterfaceDescriptorData* data) { 185 CallInterfaceDescriptorData* data) {
186 // a0 : number of arguments 186 // a0 : number of arguments
187 // a1 : the function to call 187 // a1 : the function to call
188 // a2 : feedback vector 188 // a2 : feedback vector
189 // a3 : slot in feedback vector (Smi, for RecordCallTarget) 189 // a3 : slot in feedback vector (Smi, for RecordCallTarget)
190 // a4 : original constructor (for IsSuperConstructorCall) 190 // a4 : new target (for IsSuperConstructorCall)
191 // TODO(turbofan): So far we don't gather type feedback and hence skip the 191 // TODO(turbofan): So far we don't gather type feedback and hence skip the
192 // slot parameter, but ArrayConstructStub needs the vector to be undefined. 192 // slot parameter, but ArrayConstructStub needs the vector to be undefined.
193 Register registers[] = {a0, a1, a4, a2}; 193 Register registers[] = {a0, a1, a4, a2};
194 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 194 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
195 } 195 }
196 196
197 197
198 void CallTrampolineDescriptor::InitializePlatformSpecific( 198 void CallTrampolineDescriptor::InitializePlatformSpecific(
199 CallInterfaceDescriptorData* data) { 199 CallInterfaceDescriptorData* data) {
200 // a1: target 200 // a1: target
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 a1 // the target callable to be call 403 a1 // the target callable to be call
404 }; 404 };
405 data->InitializePlatformSpecific(arraysize(registers), registers); 405 data->InitializePlatformSpecific(arraysize(registers), registers);
406 } 406 }
407 407
408 408
409 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific( 409 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific(
410 CallInterfaceDescriptorData* data) { 410 CallInterfaceDescriptorData* data) {
411 Register registers[] = { 411 Register registers[] = {
412 a0, // argument count (not including receiver) 412 a0, // argument count (not including receiver)
413 a3, // original constructor 413 a3, // new target
414 a1, // constructor to call 414 a1, // constructor to call
415 a2 // address of the first argument 415 a2 // address of the first argument
416 }; 416 };
417 data->InitializePlatformSpecific(arraysize(registers), registers); 417 data->InitializePlatformSpecific(arraysize(registers), registers);
418 } 418 }
419 419
420 420
421 void InterpreterCEntryDescriptor::InitializePlatformSpecific( 421 void InterpreterCEntryDescriptor::InitializePlatformSpecific(
422 CallInterfaceDescriptorData* data) { 422 CallInterfaceDescriptorData* data) {
423 Register registers[] = { 423 Register registers[] = {
424 a0, // argument count (argc) 424 a0, // argument count (argc)
425 a2, // address of first argument (argv) 425 a2, // address of first argument (argv)
426 a1 // the runtime function to call 426 a1 // the runtime function to call
427 }; 427 };
428 data->InitializePlatformSpecific(arraysize(registers), registers); 428 data->InitializePlatformSpecific(arraysize(registers), registers);
429 } 429 }
430 430
431 } // namespace internal 431 } // namespace internal
432 } // namespace v8 432 } // namespace v8
433 433
434 #endif // V8_TARGET_ARCH_MIPS64 434 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/code-stubs-mips64.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698