| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
| 8 | 8 |
| 9 #include "src/interface-descriptors.h" | 9 #include "src/interface-descriptors.h" |
| 10 | 10 |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 } | 294 } |
| 295 | 295 |
| 296 | 296 |
| 297 void ApiFunctionDescriptor::Initialize(CallInterfaceDescriptorData* data) { | 297 void ApiFunctionDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
| 298 Register registers[] = { | 298 Register registers[] = { |
| 299 rsi, // context | 299 rsi, // context |
| 300 rax, // callee | 300 rax, // callee |
| 301 rbx, // call_data | 301 rbx, // call_data |
| 302 rcx, // holder | 302 rcx, // holder |
| 303 rdx, // api_function_address | 303 rdx, // api_function_address |
| 304 rdi, // actual number of arguments |
| 305 }; |
| 306 Representation representations[] = { |
| 307 Representation::Tagged(), // context |
| 308 Representation::Tagged(), // callee |
| 309 Representation::Tagged(), // call_data |
| 310 Representation::Tagged(), // holder |
| 311 Representation::External(), // api_function_address |
| 312 Representation::Integer32(), // actual number of arguments |
| 313 }; |
| 314 data->Initialize(arraysize(registers), registers, representations); |
| 315 } |
| 316 |
| 317 |
| 318 void ApiAccessorDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
| 319 Register registers[] = { |
| 320 rsi, // context |
| 321 rax, // callee |
| 322 rbx, // call_data |
| 323 rcx, // holder |
| 324 rdx, // api_function_address |
| 304 }; | 325 }; |
| 305 Representation representations[] = { | 326 Representation representations[] = { |
| 306 Representation::Tagged(), // context | 327 Representation::Tagged(), // context |
| 307 Representation::Tagged(), // callee | 328 Representation::Tagged(), // callee |
| 308 Representation::Tagged(), // call_data | 329 Representation::Tagged(), // call_data |
| 309 Representation::Tagged(), // holder | 330 Representation::Tagged(), // holder |
| 310 Representation::External(), // api_function_address | 331 Representation::External(), // api_function_address |
| 311 }; | 332 }; |
| 312 data->Initialize(arraysize(registers), registers, representations); | 333 data->Initialize(arraysize(registers), registers, representations); |
| 313 } | 334 } |
| 314 } | 335 } |
| 315 } // namespace v8::internal | 336 } // namespace v8::internal |
| 316 | 337 |
| 317 #endif // V8_TARGET_ARCH_X64 | 338 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |