| 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_X87 | 7 #if V8_TARGET_ARCH_X87 |
| 8 | 8 |
| 9 #include "src/interface-descriptors.h" | 9 #include "src/interface-descriptors.h" |
| 10 | 10 |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 Representation::Integer32(), // actual number of arguments | 299 Representation::Integer32(), // actual number of arguments |
| 300 Representation::Integer32(), // expected number of arguments | 300 Representation::Integer32(), // expected number of arguments |
| 301 }; | 301 }; |
| 302 data->Initialize(arraysize(registers), registers, representations); | 302 data->Initialize(arraysize(registers), registers, representations); |
| 303 } | 303 } |
| 304 | 304 |
| 305 | 305 |
| 306 void ApiFunctionDescriptor::Initialize(CallInterfaceDescriptorData* data) { | 306 void ApiFunctionDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
| 307 Register registers[] = { | 307 Register registers[] = { |
| 308 esi, // context | 308 esi, // context |
| 309 eax, // callee | 309 edi, // callee |
| 310 ebx, // call_data | 310 ebx, // call_data |
| 311 ecx, // holder | 311 ecx, // holder |
| 312 edx, // api_function_address | 312 edx, // api_function_address |
| 313 edi, // actual number of arguments | 313 eax, // actual number of arguments |
| 314 }; | 314 }; |
| 315 Representation representations[] = { | 315 Representation representations[] = { |
| 316 Representation::Tagged(), // context | 316 Representation::Tagged(), // context |
| 317 Representation::Tagged(), // callee | 317 Representation::Tagged(), // callee |
| 318 Representation::Tagged(), // call_data | 318 Representation::Tagged(), // call_data |
| 319 Representation::Tagged(), // holder | 319 Representation::Tagged(), // holder |
| 320 Representation::External(), // api_function_address | 320 Representation::External(), // api_function_address |
| 321 Representation::Integer32(), // actual number of arguments | 321 Representation::Integer32(), // actual number of arguments |
| 322 }; | 322 }; |
| 323 data->Initialize(arraysize(registers), registers, representations); | 323 data->Initialize(arraysize(registers), registers, representations); |
| 324 } | 324 } |
| 325 | 325 |
| 326 | 326 |
| 327 void ApiAccessorDescriptor::Initialize(CallInterfaceDescriptorData* data) { | 327 void ApiAccessorDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
| 328 Register registers[] = { | 328 Register registers[] = { |
| 329 esi, // context | 329 esi, // context |
| 330 eax, // callee | 330 edi, // callee |
| 331 ebx, // call_data | 331 ebx, // call_data |
| 332 ecx, // holder | 332 ecx, // holder |
| 333 edx, // api_function_address | 333 edx, // api_function_address |
| 334 }; | 334 }; |
| 335 Representation representations[] = { | 335 Representation representations[] = { |
| 336 Representation::Tagged(), // context | 336 Representation::Tagged(), // context |
| 337 Representation::Tagged(), // callee | 337 Representation::Tagged(), // callee |
| 338 Representation::Tagged(), // call_data | 338 Representation::Tagged(), // call_data |
| 339 Representation::Tagged(), // holder | 339 Representation::Tagged(), // holder |
| 340 Representation::External(), // api_function_address | 340 Representation::External(), // api_function_address |
| 341 }; | 341 }; |
| 342 data->Initialize(arraysize(registers), registers, representations); | 342 data->Initialize(arraysize(registers), registers, representations); |
| 343 } | 343 } |
| 344 } | 344 } |
| 345 } // namespace v8::internal | 345 } // namespace v8::internal |
| 346 | 346 |
| 347 #endif // V8_TARGET_ARCH_X87 | 347 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |