| 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 | 204 |
| 205 void CallTrampolineDescriptor::InitializePlatformSpecific( | 205 void CallTrampolineDescriptor::InitializePlatformSpecific( |
| 206 CallInterfaceDescriptorData* data) { | 206 CallInterfaceDescriptorData* data) { |
| 207 // rax : number of arguments | 207 // rax : number of arguments |
| 208 // rdi : the target to call | 208 // rdi : the target to call |
| 209 Register registers[] = {rdi, rax}; | 209 Register registers[] = {rdi, rax}; |
| 210 data->InitializePlatformSpecific(arraysize(registers), registers); | 210 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 211 } | 211 } |
| 212 | 212 |
| 213 | 213 |
| 214 void ConstructStubDescriptor::InitializePlatformSpecific( |
| 215 CallInterfaceDescriptorData* data) { |
| 216 // rax : number of arguments |
| 217 // rdx : the new target |
| 218 // rdi : the target to call |
| 219 // rbx : allocation site or undefined |
| 220 Register registers[] = {rdi, rdx, rax, rbx}; |
| 221 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 222 } |
| 223 |
| 224 |
| 214 void ConstructTrampolineDescriptor::InitializePlatformSpecific( | 225 void ConstructTrampolineDescriptor::InitializePlatformSpecific( |
| 215 CallInterfaceDescriptorData* data) { | 226 CallInterfaceDescriptorData* data) { |
| 216 // rax : number of arguments | 227 // rax : number of arguments |
| 217 // rdx : the new target | 228 // rdx : the new target |
| 218 // rdi : the target to call | 229 // rdi : the target to call |
| 219 Register registers[] = {rdi, rdx, rax}; | 230 Register registers[] = {rdi, rdx, rax}; |
| 220 data->InitializePlatformSpecific(arraysize(registers), registers); | 231 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 221 } | 232 } |
| 222 | 233 |
| 223 | 234 |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 r15, // address of first argument (argv) | 432 r15, // address of first argument (argv) |
| 422 rbx // the runtime function to call | 433 rbx // the runtime function to call |
| 423 }; | 434 }; |
| 424 data->InitializePlatformSpecific(arraysize(registers), registers); | 435 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 425 } | 436 } |
| 426 | 437 |
| 427 } // namespace internal | 438 } // namespace internal |
| 428 } // namespace v8 | 439 } // namespace v8 |
| 429 | 440 |
| 430 #endif // V8_TARGET_ARCH_X64 | 441 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |