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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 eax, // 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 |
| 304 }; |
| 305 Representation representations[] = { |
| 306 Representation::Tagged(), // context |
| 307 Representation::Tagged(), // callee |
| 308 Representation::Tagged(), // call_data |
| 309 Representation::Tagged(), // holder |
| 310 Representation::External(), // api_function_address |
| 311 Representation::Integer32(), // actual number of arguments |
| 312 }; |
| 313 data->Initialize(arraysize(registers), registers, representations); |
| 314 } |
| 315 |
| 316 |
| 317 void ApiAccessorDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
| 318 Register registers[] = { |
| 319 esi, // context |
| 320 eax, // callee |
| 321 ebx, // call_data |
| 322 ecx, // holder |
| 323 edx, // api_function_address |
303 }; | 324 }; |
304 Representation representations[] = { | 325 Representation representations[] = { |
305 Representation::Tagged(), // context | 326 Representation::Tagged(), // context |
306 Representation::Tagged(), // callee | 327 Representation::Tagged(), // callee |
307 Representation::Tagged(), // call_data | 328 Representation::Tagged(), // call_data |
308 Representation::Tagged(), // holder | 329 Representation::Tagged(), // holder |
309 Representation::External(), // api_function_address | 330 Representation::External(), // api_function_address |
310 }; | 331 }; |
311 data->Initialize(arraysize(registers), registers, representations); | 332 data->Initialize(arraysize(registers), registers, representations); |
312 } | 333 } |
313 } | 334 } |
314 } // namespace v8::internal | 335 } // namespace v8::internal |
315 | 336 |
316 #endif // V8_TARGET_ARCH_IA32 | 337 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |