| 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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 } | 300 } |
| 301 | 301 |
| 302 | 302 |
| 303 void InternalArrayConstructorDescriptor::InitializePlatformSpecific( | 303 void InternalArrayConstructorDescriptor::InitializePlatformSpecific( |
| 304 CallInterfaceDescriptorData* data) { | 304 CallInterfaceDescriptorData* data) { |
| 305 // stack param count needs (constructor pointer, and single argument) | 305 // stack param count needs (constructor pointer, and single argument) |
| 306 Register registers[] = {rdi, rax}; | 306 Register registers[] = {rdi, rax}; |
| 307 data->InitializePlatformSpecific(arraysize(registers), registers); | 307 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 308 } | 308 } |
| 309 | 309 |
| 310 void FastArrayPushDescriptor::InitializePlatformSpecific( |
| 311 CallInterfaceDescriptorData* data) { |
| 312 // stack param count needs (arg count) |
| 313 Register registers[] = {rax}; |
| 314 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 315 } |
| 310 | 316 |
| 311 void CompareDescriptor::InitializePlatformSpecific( | 317 void CompareDescriptor::InitializePlatformSpecific( |
| 312 CallInterfaceDescriptorData* data) { | 318 CallInterfaceDescriptorData* data) { |
| 313 Register registers[] = {rdx, rax}; | 319 Register registers[] = {rdx, rax}; |
| 314 data->InitializePlatformSpecific(arraysize(registers), registers); | 320 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 315 } | 321 } |
| 316 | 322 |
| 317 | 323 |
| 318 void ToBooleanDescriptor::InitializePlatformSpecific( | 324 void ToBooleanDescriptor::InitializePlatformSpecific( |
| 319 CallInterfaceDescriptorData* data) { | 325 CallInterfaceDescriptorData* data) { |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 r15, // address of first argument (argv) | 435 r15, // address of first argument (argv) |
| 430 rbx // the runtime function to call | 436 rbx // the runtime function to call |
| 431 }; | 437 }; |
| 432 data->InitializePlatformSpecific(arraysize(registers), registers); | 438 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 433 } | 439 } |
| 434 | 440 |
| 435 } // namespace internal | 441 } // namespace internal |
| 436 } // namespace v8 | 442 } // namespace v8 |
| 437 | 443 |
| 438 #endif // V8_TARGET_ARCH_X64 | 444 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |