| 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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 }; | 385 }; |
| 386 data->InitializePlatformSpecific(arraysize(registers), registers); | 386 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 387 } | 387 } |
| 388 | 388 |
| 389 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific( | 389 void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific( |
| 390 CallInterfaceDescriptorData* data) { | 390 CallInterfaceDescriptorData* data) { |
| 391 Register registers[] = { | 391 Register registers[] = { |
| 392 a0, // argument count (not including receiver) | 392 a0, // argument count (not including receiver) |
| 393 a3, // new target | 393 a3, // new target |
| 394 a1, // constructor to call | 394 a1, // constructor to call |
| 395 a2 // address of the first argument | 395 a2, // allocation site feedback if available, undefined otherwise. |
| 396 t4 // address of the first argument |
| 396 }; | 397 }; |
| 397 data->InitializePlatformSpecific(arraysize(registers), registers); | 398 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 398 } | 399 } |
| 399 | 400 |
| 400 void InterpreterCEntryDescriptor::InitializePlatformSpecific( | 401 void InterpreterCEntryDescriptor::InitializePlatformSpecific( |
| 401 CallInterfaceDescriptorData* data) { | 402 CallInterfaceDescriptorData* data) { |
| 402 Register registers[] = { | 403 Register registers[] = { |
| 403 a0, // argument count (argc) | 404 a0, // argument count (argc) |
| 404 a2, // address of first argument (argv) | 405 a2, // address of first argument (argv) |
| 405 a1 // the runtime function to call | 406 a1 // the runtime function to call |
| 406 }; | 407 }; |
| 407 data->InitializePlatformSpecific(arraysize(registers), registers); | 408 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 408 } | 409 } |
| 409 | 410 |
| 410 void ResumeGeneratorDescriptor::InitializePlatformSpecific( | 411 void ResumeGeneratorDescriptor::InitializePlatformSpecific( |
| 411 CallInterfaceDescriptorData* data) { | 412 CallInterfaceDescriptorData* data) { |
| 412 Register registers[] = { | 413 Register registers[] = { |
| 413 v0, // the value to pass to the generator | 414 v0, // the value to pass to the generator |
| 414 a1, // the JSGeneratorObject to resume | 415 a1, // the JSGeneratorObject to resume |
| 415 a2 // the resume mode (tagged) | 416 a2 // the resume mode (tagged) |
| 416 }; | 417 }; |
| 417 data->InitializePlatformSpecific(arraysize(registers), registers); | 418 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 418 } | 419 } |
| 419 | 420 |
| 420 } // namespace internal | 421 } // namespace internal |
| 421 } // namespace v8 | 422 } // namespace v8 |
| 422 | 423 |
| 423 #endif // V8_TARGET_ARCH_MIPS | 424 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |