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

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

Issue 2352163004: [stubs] ApiCallbackDescriptor cleanup - make it independent on the number of JS parameters. (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | src/arm64/interface-descriptors-arm64.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 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/arm/interface-descriptors-arm.h" 5 #include "src/arm/interface-descriptors-arm.h"
6 6
7 #if V8_TARGET_ARCH_ARM 7 #if V8_TARGET_ARCH_ARM
8 8
9 #include "src/interface-descriptors.h" 9 #include "src/interface-descriptors.h"
10 10
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 Register registers[] = { 364 Register registers[] = {
365 r1, // JSFunction 365 r1, // JSFunction
366 r3, // the new target 366 r3, // the new target
367 r0, // actual number of arguments 367 r0, // actual number of arguments
368 r2, // expected number of arguments 368 r2, // expected number of arguments
369 }; 369 };
370 data->InitializePlatformSpecific(arraysize(registers), registers, 370 data->InitializePlatformSpecific(arraysize(registers), registers,
371 &default_descriptor); 371 &default_descriptor);
372 } 372 }
373 373
374 void ApiCallbackDescriptorBase::InitializePlatformSpecific( 374 void ApiCallbackDescriptor::InitializePlatformSpecific(
375 CallInterfaceDescriptorData* data) { 375 CallInterfaceDescriptorData* data) {
376 static PlatformInterfaceDescriptor default_descriptor = 376 static PlatformInterfaceDescriptor default_descriptor =
377 PlatformInterfaceDescriptor(CAN_INLINE_TARGET_ADDRESS); 377 PlatformInterfaceDescriptor(CAN_INLINE_TARGET_ADDRESS);
378 378
379 Register registers[] = { 379 Register registers[] = {
380 r0, // callee 380 r0, // callee
381 r4, // call_data 381 r4, // call_data
382 r2, // holder 382 r2, // holder
383 r1, // api_function_address 383 r1, // api_function_address
384 }; 384 };
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 r1, // the JSGeneratorObject to resume 444 r1, // the JSGeneratorObject to resume
445 r2 // the resume mode (tagged) 445 r2 // the resume mode (tagged)
446 }; 446 };
447 data->InitializePlatformSpecific(arraysize(registers), registers); 447 data->InitializePlatformSpecific(arraysize(registers), registers);
448 } 448 }
449 449
450 } // namespace internal 450 } // namespace internal
451 } // namespace v8 451 } // namespace v8
452 452
453 #endif // V8_TARGET_ARCH_ARM 453 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/interface-descriptors-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698