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

Side by Side Diff: src/arm/interface-descriptors-arm.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 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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 Register registers[] = { 394 Register registers[] = {
395 r1, // JSFunction 395 r1, // JSFunction
396 r3, // the new target 396 r3, // the new target
397 r0, // actual number of arguments 397 r0, // actual number of arguments
398 r2, // expected number of arguments 398 r2, // expected number of arguments
399 }; 399 };
400 data->InitializePlatformSpecific(arraysize(registers), registers, 400 data->InitializePlatformSpecific(arraysize(registers), registers,
401 &default_descriptor); 401 &default_descriptor);
402 } 402 }
403 403
404 404 void ApiCallbackDescriptorBase::InitializePlatformSpecific(
405 void ApiFunctionDescriptor::InitializePlatformSpecific(
406 CallInterfaceDescriptorData* data) { 405 CallInterfaceDescriptorData* data) {
407 static PlatformInterfaceDescriptor default_descriptor = 406 static PlatformInterfaceDescriptor default_descriptor =
408 PlatformInterfaceDescriptor(CAN_INLINE_TARGET_ADDRESS); 407 PlatformInterfaceDescriptor(CAN_INLINE_TARGET_ADDRESS);
409
410 Register registers[] = {
411 r0, // callee
412 r4, // call_data
413 r2, // holder
414 r1, // api_function_address
415 r3, // actual number of arguments
416 };
417 data->InitializePlatformSpecific(arraysize(registers), registers,
418 &default_descriptor);
419 }
420
421
422 void ApiAccessorDescriptor::InitializePlatformSpecific(
423 CallInterfaceDescriptorData* data) {
424 static PlatformInterfaceDescriptor default_descriptor =
425 PlatformInterfaceDescriptor(CAN_INLINE_TARGET_ADDRESS);
426 408
427 Register registers[] = { 409 Register registers[] = {
428 r0, // callee 410 r0, // callee
429 r4, // call_data 411 r4, // call_data
430 r2, // holder 412 r2, // holder
431 r1, // api_function_address 413 r1, // api_function_address
432 }; 414 };
433 data->InitializePlatformSpecific(arraysize(registers), registers, 415 data->InitializePlatformSpecific(arraysize(registers), registers,
434 &default_descriptor); 416 &default_descriptor);
435 } 417 }
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 r2, // address of first argument (argv) 453 r2, // address of first argument (argv)
472 r1 // the runtime function to call 454 r1 // the runtime function to call
473 }; 455 };
474 data->InitializePlatformSpecific(arraysize(registers), registers); 456 data->InitializePlatformSpecific(arraysize(registers), registers);
475 } 457 }
476 458
477 } // namespace internal 459 } // namespace internal
478 } // namespace v8 460 } // namespace v8
479 461
480 #endif // V8_TARGET_ARCH_ARM 462 #endif // V8_TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698