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