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

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

Issue 1748123003: Rework CallApi*Stubs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Minor fixes and make Win compiler happy. 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
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 ApiFunctionDescriptor::InitializePlatformSpecific( 337 void ApiCallbackDescriptorBase::InitializePlatformSpecific(
338 CallInterfaceDescriptorData* data) { 338 CallInterfaceDescriptorData* data) {
339 Register registers[] = { 339 Register registers[] = {
340 r2, // callee 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(
350 CallInterfaceDescriptorData* data) {
351 Register registers[] = {
352 r2, // callee
353 r6, // call_data 341 r6, // call_data
354 r4, // holder 342 r4, // holder
355 r3, // api_function_address 343 r3, // api_function_address
356 }; 344 };
357 data->InitializePlatformSpecific(arraysize(registers), registers); 345 data->InitializePlatformSpecific(arraysize(registers), registers);
358 } 346 }
359 347
360 void InterpreterDispatchDescriptor::InitializePlatformSpecific( 348 void InterpreterDispatchDescriptor::InitializePlatformSpecific(
361 CallInterfaceDescriptorData* data) { 349 CallInterfaceDescriptorData* data) {
362 Register registers[] = { 350 Register registers[] = {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 r4, // address of first argument (argv) 382 r4, // address of first argument (argv)
395 r3 // the runtime function to call 383 r3 // the runtime function to call
396 }; 384 };
397 data->InitializePlatformSpecific(arraysize(registers), registers); 385 data->InitializePlatformSpecific(arraysize(registers), registers);
398 } 386 }
399 387
400 } // namespace internal 388 } // namespace internal
401 } // namespace v8 389 } // namespace v8
402 390
403 #endif // V8_TARGET_ARCH_S390 391 #endif // V8_TARGET_ARCH_S390
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698