| 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_X64 | 5 #if V8_TARGET_ARCH_X64 |
| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 | 168 |
| 169 | 169 |
| 170 void CallTrampolineDescriptor::InitializePlatformSpecific( | 170 void CallTrampolineDescriptor::InitializePlatformSpecific( |
| 171 CallInterfaceDescriptorData* data) { | 171 CallInterfaceDescriptorData* data) { |
| 172 // rax : number of arguments | 172 // rax : number of arguments |
| 173 // rdi : the target to call | 173 // rdi : the target to call |
| 174 Register registers[] = {rdi, rax}; | 174 Register registers[] = {rdi, rax}; |
| 175 data->InitializePlatformSpecific(arraysize(registers), registers); | 175 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 176 } | 176 } |
| 177 | 177 |
| 178 void CallForwardVarargsDescriptor::InitializePlatformSpecific( |
| 179 CallInterfaceDescriptorData* data) { |
| 180 // rcx : start index (to support rest parameters) |
| 181 // rdi : the target to call |
| 182 Register registers[] = {rdi, rcx}; |
| 183 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 184 } |
| 178 | 185 |
| 179 void ConstructStubDescriptor::InitializePlatformSpecific( | 186 void ConstructStubDescriptor::InitializePlatformSpecific( |
| 180 CallInterfaceDescriptorData* data) { | 187 CallInterfaceDescriptorData* data) { |
| 181 // rax : number of arguments | 188 // rax : number of arguments |
| 182 // rdx : the new target | 189 // rdx : the new target |
| 183 // rdi : the target to call | 190 // rdi : the target to call |
| 184 // rbx : allocation site or undefined | 191 // rbx : allocation site or undefined |
| 185 Register registers[] = {rdi, rdx, rax, rbx}; | 192 Register registers[] = {rdi, rdx, rax, rbx}; |
| 186 data->InitializePlatformSpecific(arraysize(registers), registers); | 193 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 187 } | 194 } |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 rbx, // the JSGeneratorObject to resume | 412 rbx, // the JSGeneratorObject to resume |
| 406 rdx // the resume mode (tagged) | 413 rdx // the resume mode (tagged) |
| 407 }; | 414 }; |
| 408 data->InitializePlatformSpecific(arraysize(registers), registers); | 415 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 409 } | 416 } |
| 410 | 417 |
| 411 } // namespace internal | 418 } // namespace internal |
| 412 } // namespace v8 | 419 } // namespace v8 |
| 413 | 420 |
| 414 #endif // V8_TARGET_ARCH_X64 | 421 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |