OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #if V8_TARGET_ARCH_PPC | 5 #if V8_TARGET_ARCH_PPC |
6 | 6 |
7 #include "src/interface-descriptors.h" | 7 #include "src/interface-descriptors.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 Register registers[] = {r4}; | 278 Register registers[] = {r4}; |
279 data->InitializePlatformSpecific(arraysize(registers), registers); | 279 data->InitializePlatformSpecific(arraysize(registers), registers); |
280 } | 280 } |
281 | 281 |
282 void StringAddDescriptor::InitializePlatformSpecific( | 282 void StringAddDescriptor::InitializePlatformSpecific( |
283 CallInterfaceDescriptorData* data) { | 283 CallInterfaceDescriptorData* data) { |
284 Register registers[] = {r4, r3}; | 284 Register registers[] = {r4, r3}; |
285 data->InitializePlatformSpecific(arraysize(registers), registers); | 285 data->InitializePlatformSpecific(arraysize(registers), registers); |
286 } | 286 } |
287 | 287 |
288 | |
289 void KeyedDescriptor::InitializePlatformSpecific( | |
290 CallInterfaceDescriptorData* data) { | |
291 Register registers[] = { | |
292 r5, // key | |
293 }; | |
294 data->InitializePlatformSpecific(arraysize(registers), registers); | |
295 } | |
296 | |
297 | |
298 void NamedDescriptor::InitializePlatformSpecific( | |
299 CallInterfaceDescriptorData* data) { | |
300 Register registers[] = { | |
301 r5, // name | |
302 }; | |
303 data->InitializePlatformSpecific(arraysize(registers), registers); | |
304 } | |
305 | |
306 | |
307 void CallHandlerDescriptor::InitializePlatformSpecific( | |
308 CallInterfaceDescriptorData* data) { | |
309 Register registers[] = { | |
310 r3, // receiver | |
311 }; | |
312 data->InitializePlatformSpecific(arraysize(registers), registers); | |
313 } | |
314 | |
315 | |
316 void ArgumentAdaptorDescriptor::InitializePlatformSpecific( | 288 void ArgumentAdaptorDescriptor::InitializePlatformSpecific( |
317 CallInterfaceDescriptorData* data) { | 289 CallInterfaceDescriptorData* data) { |
318 Register registers[] = { | 290 Register registers[] = { |
319 r4, // JSFunction | 291 r4, // JSFunction |
320 r6, // the new target | 292 r6, // the new target |
321 r3, // actual number of arguments | 293 r3, // actual number of arguments |
322 r5, // expected number of arguments | 294 r5, // expected number of arguments |
323 }; | 295 }; |
324 data->InitializePlatformSpecific(arraysize(registers), registers); | 296 data->InitializePlatformSpecific(arraysize(registers), registers); |
325 } | 297 } |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 Register registers[] = { | 374 Register registers[] = { |
403 r4, // loaded new FP | 375 r4, // loaded new FP |
404 }; | 376 }; |
405 data->InitializePlatformSpecific(arraysize(registers), registers); | 377 data->InitializePlatformSpecific(arraysize(registers), registers); |
406 } | 378 } |
407 | 379 |
408 } // namespace internal | 380 } // namespace internal |
409 } // namespace v8 | 381 } // namespace v8 |
410 | 382 |
411 #endif // V8_TARGET_ARCH_PPC | 383 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |