| 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 void ArrayNoArgumentConstructorDescriptor::InitializePlatformSpecific( | 243 void ArrayNoArgumentConstructorDescriptor::InitializePlatformSpecific( |
| 244 CallInterfaceDescriptorData* data) { | 244 CallInterfaceDescriptorData* data) { |
| 245 // register state | 245 // register state |
| 246 // rax -- number of arguments | 246 // rax -- number of arguments |
| 247 // rdi -- function | 247 // rdi -- function |
| 248 // rbx -- allocation site with elements kind | 248 // rbx -- allocation site with elements kind |
| 249 Register registers[] = {rdi, rbx, rax}; | 249 Register registers[] = {rdi, rbx, rax}; |
| 250 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); | 250 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
| 251 } | 251 } |
| 252 | 252 |
| 253 void ArrayConstructorConstantArgCountDescriptor::InitializePlatformSpecific( | 253 void ArraySingleArgumentConstructorDescriptor::InitializePlatformSpecific( |
| 254 CallInterfaceDescriptorData* data) { | 254 CallInterfaceDescriptorData* data) { |
| 255 // register state | 255 // register state |
| 256 // rax -- number of arguments | 256 // rax -- number of arguments |
| 257 // rdi -- function | 257 // rdi -- function |
| 258 // rbx -- allocation site with elements kind | 258 // rbx -- allocation site with elements kind |
| 259 Register registers[] = {rdi, rbx}; | 259 Register registers[] = {rdi, rbx, rax}; |
| 260 data->InitializePlatformSpecific(arraysize(registers), registers); | 260 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); |
| 261 } | 261 } |
| 262 | 262 |
| 263 | |
| 264 void ArrayConstructorDescriptor::InitializePlatformSpecific( | 263 void ArrayConstructorDescriptor::InitializePlatformSpecific( |
| 265 CallInterfaceDescriptorData* data) { | 264 CallInterfaceDescriptorData* data) { |
| 266 // stack param count needs (constructor pointer, and single argument) | 265 // stack param count needs (constructor pointer, and single argument) |
| 267 Register registers[] = {rdi, rbx, rax}; | 266 Register registers[] = {rdi, rbx, rax}; |
| 268 data->InitializePlatformSpecific(arraysize(registers), registers); | 267 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 269 } | 268 } |
| 270 | 269 |
| 271 | 270 |
| 272 void InternalArrayConstructorConstantArgCountDescriptor:: | |
| 273 InitializePlatformSpecific(CallInterfaceDescriptorData* data) { | |
| 274 // register state | |
| 275 // rax -- number of arguments | |
| 276 // rdi -- constructor function | |
| 277 Register registers[] = {rdi}; | |
| 278 data->InitializePlatformSpecific(arraysize(registers), registers); | |
| 279 } | |
| 280 | |
| 281 | |
| 282 void InternalArrayConstructorDescriptor::InitializePlatformSpecific( | 271 void InternalArrayConstructorDescriptor::InitializePlatformSpecific( |
| 283 CallInterfaceDescriptorData* data) { | 272 CallInterfaceDescriptorData* data) { |
| 284 // stack param count needs (constructor pointer, and single argument) | 273 // stack param count needs (constructor pointer, and single argument) |
| 285 Register registers[] = {rdi, rax}; | 274 Register registers[] = {rdi, rax}; |
| 286 data->InitializePlatformSpecific(arraysize(registers), registers); | 275 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 287 } | 276 } |
| 288 | 277 |
| 289 void FastArrayPushDescriptor::InitializePlatformSpecific( | 278 void FastArrayPushDescriptor::InitializePlatformSpecific( |
| 290 CallInterfaceDescriptorData* data) { | 279 CallInterfaceDescriptorData* data) { |
| 291 // stack param count needs (arg count) | 280 // stack param count needs (arg count) |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 rbx, // the JSGeneratorObject to resume | 410 rbx, // the JSGeneratorObject to resume |
| 422 rdx // the resume mode (tagged) | 411 rdx // the resume mode (tagged) |
| 423 }; | 412 }; |
| 424 data->InitializePlatformSpecific(arraysize(registers), registers); | 413 data->InitializePlatformSpecific(arraysize(registers), registers); |
| 425 } | 414 } |
| 426 | 415 |
| 427 } // namespace internal | 416 } // namespace internal |
| 428 } // namespace v8 | 417 } // namespace v8 |
| 429 | 418 |
| 430 #endif // V8_TARGET_ARCH_X64 | 419 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |