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