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

Side by Side Diff: src/s390/interface-descriptors-s390.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 | « src/ppc/interface-descriptors-ppc.cc ('k') | src/x64/interface-descriptors-x64.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_S390 5 #if V8_TARGET_ARCH_S390
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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 CallInterfaceDescriptorData* data) { 315 CallInterfaceDescriptorData* data) {
316 Register registers[] = { 316 Register registers[] = {
317 r3, // JSFunction 317 r3, // JSFunction
318 r5, // the new target 318 r5, // the new target
319 r2, // actual number of arguments 319 r2, // actual number of arguments
320 r4, // expected number of arguments 320 r4, // expected number of arguments
321 }; 321 };
322 data->InitializePlatformSpecific(arraysize(registers), registers); 322 data->InitializePlatformSpecific(arraysize(registers), registers);
323 } 323 }
324 324
325 void ApiCallbackDescriptorBase::InitializePlatformSpecific( 325 void ApiCallbackDescriptor::InitializePlatformSpecific(
326 CallInterfaceDescriptorData* data) { 326 CallInterfaceDescriptorData* data) {
327 Register registers[] = { 327 Register registers[] = {
328 r2, // callee 328 r2, // callee
329 r6, // call_data 329 r6, // call_data
330 r4, // holder 330 r4, // holder
331 r3, // api_function_address 331 r3, // api_function_address
332 }; 332 };
333 data->InitializePlatformSpecific(arraysize(registers), registers); 333 data->InitializePlatformSpecific(arraysize(registers), registers);
334 } 334 }
335 335
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 r3, // the JSGeneratorObject to resume 391 r3, // the JSGeneratorObject to resume
392 r4 // the resume mode (tagged) 392 r4 // the resume mode (tagged)
393 }; 393 };
394 data->InitializePlatformSpecific(arraysize(registers), registers); 394 data->InitializePlatformSpecific(arraysize(registers), registers);
395 } 395 }
396 396
397 } // namespace internal 397 } // namespace internal
398 } // namespace v8 398 } // namespace v8
399 399
400 #endif // V8_TARGET_ARCH_S390 400 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/ppc/interface-descriptors-ppc.cc ('k') | src/x64/interface-descriptors-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698