OLD | NEW |
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_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
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 Loading... |
180 data->InitializePlatformSpecific(arraysize(registers), registers); | 180 data->InitializePlatformSpecific(arraysize(registers), registers); |
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 // t0 : original constructor (for IsSuperConstructorCall) | 190 // t0 : 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, t0, a2}; | 193 Register registers[] = {a0, a1, t0, 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 Loading... |
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_MIPS | 434 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |