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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 } | 272 } |
273 | 273 |
274 | 274 |
275 void InternalArrayConstructorDescriptor::InitializePlatformSpecific( | 275 void InternalArrayConstructorDescriptor::InitializePlatformSpecific( |
276 CallInterfaceDescriptorData* data) { | 276 CallInterfaceDescriptorData* data) { |
277 // stack param count needs (constructor pointer, and single argument) | 277 // stack param count needs (constructor pointer, and single argument) |
278 Register registers[] = {rdi, rax}; | 278 Register registers[] = {rdi, rax}; |
279 data->InitializePlatformSpecific(arraysize(registers), registers); | 279 data->InitializePlatformSpecific(arraysize(registers), registers); |
280 } | 280 } |
281 | 281 |
| 282 void FastArrayPushDescriptor::InitializePlatformSpecific( |
| 283 CallInterfaceDescriptorData* data) { |
| 284 // stack param count needs (arg count) |
| 285 Register registers[] = {rax}; |
| 286 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 287 } |
282 | 288 |
283 void CompareDescriptor::InitializePlatformSpecific( | 289 void CompareDescriptor::InitializePlatformSpecific( |
284 CallInterfaceDescriptorData* data) { | 290 CallInterfaceDescriptorData* data) { |
285 Register registers[] = {rdx, rax}; | 291 Register registers[] = {rdx, rax}; |
286 data->InitializePlatformSpecific(arraysize(registers), registers); | 292 data->InitializePlatformSpecific(arraysize(registers), registers); |
287 } | 293 } |
288 | 294 |
289 | 295 |
290 void BinaryOpDescriptor::InitializePlatformSpecific( | 296 void BinaryOpDescriptor::InitializePlatformSpecific( |
291 CallInterfaceDescriptorData* data) { | 297 CallInterfaceDescriptorData* data) { |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 r15, // address of first argument (argv) | 400 r15, // address of first argument (argv) |
395 rbx // the runtime function to call | 401 rbx // the runtime function to call |
396 }; | 402 }; |
397 data->InitializePlatformSpecific(arraysize(registers), registers); | 403 data->InitializePlatformSpecific(arraysize(registers), registers); |
398 } | 404 } |
399 | 405 |
400 } // namespace internal | 406 } // namespace internal |
401 } // namespace v8 | 407 } // namespace v8 |
402 | 408 |
403 #endif // V8_TARGET_ARCH_X64 | 409 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |