Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Side by Side Diff: src/ppc/interface-descriptors-ppc.cc

Issue 2777203007: [builtins] Introduce new TFC macro and auto-generate TFS descriptors (Closed)
Patch Set: Rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/mips64/interface-descriptors-mips64.cc ('k') | src/s390/interface-descriptors-s390.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/mips64/interface-descriptors-mips64.cc ('k') | src/s390/interface-descriptors-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698