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

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

Issue 1775933005: Revert of Rework CallApi*Stubs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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/s390/code-stubs-s390.cc ('k') | src/x64/code-stubs-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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 CallInterfaceDescriptorData* data) { 327 CallInterfaceDescriptorData* data) {
328 Register registers[] = { 328 Register registers[] = {
329 r3, // JSFunction 329 r3, // JSFunction
330 r5, // the new target 330 r5, // the new target
331 r2, // actual number of arguments 331 r2, // actual number of arguments
332 r4, // expected number of arguments 332 r4, // expected number of arguments
333 }; 333 };
334 data->InitializePlatformSpecific(arraysize(registers), registers); 334 data->InitializePlatformSpecific(arraysize(registers), registers);
335 } 335 }
336 336
337 void ApiCallbackDescriptorBase::InitializePlatformSpecific( 337 void ApiFunctionDescriptor::InitializePlatformSpecific(
338 CallInterfaceDescriptorData* data) {
339 Register registers[] = {
340 r2, // callee
341 r6, // call_data
342 r4, // holder
343 r3, // api_function_address
344 r5, // actual number of arguments
345 };
346 data->InitializePlatformSpecific(arraysize(registers), registers);
347 }
348
349 void ApiAccessorDescriptor::InitializePlatformSpecific(
338 CallInterfaceDescriptorData* data) { 350 CallInterfaceDescriptorData* data) {
339 Register registers[] = { 351 Register registers[] = {
340 r2, // callee 352 r2, // callee
341 r6, // call_data 353 r6, // call_data
342 r4, // holder 354 r4, // holder
343 r3, // api_function_address 355 r3, // api_function_address
344 }; 356 };
345 data->InitializePlatformSpecific(arraysize(registers), registers); 357 data->InitializePlatformSpecific(arraysize(registers), registers);
346 } 358 }
347 359
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 r4, // address of first argument (argv) 394 r4, // address of first argument (argv)
383 r3 // the runtime function to call 395 r3 // the runtime function to call
384 }; 396 };
385 data->InitializePlatformSpecific(arraysize(registers), registers); 397 data->InitializePlatformSpecific(arraysize(registers), registers);
386 } 398 }
387 399
388 } // namespace internal 400 } // namespace internal
389 } // namespace v8 401 } // namespace v8
390 402
391 #endif // V8_TARGET_ARCH_S390 403 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/s390/code-stubs-s390.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698