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

Side by Side Diff: src/ia32/interface-descriptors-ia32.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/ia32/code-stubs-ia32.cc ('k') | src/ic/arm/handler-compiler-arm.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 #if V8_TARGET_ARCH_IA32 5 #if V8_TARGET_ARCH_IA32
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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 CallInterfaceDescriptorData* data) { 383 CallInterfaceDescriptorData* data) {
384 Register registers[] = { 384 Register registers[] = {
385 edi, // JSFunction 385 edi, // JSFunction
386 edx, // the new target 386 edx, // the new target
387 eax, // actual number of arguments 387 eax, // actual number of arguments
388 ebx, // expected number of arguments 388 ebx, // expected number of arguments
389 }; 389 };
390 data->InitializePlatformSpecific(arraysize(registers), registers); 390 data->InitializePlatformSpecific(arraysize(registers), registers);
391 } 391 }
392 392
393 void ApiCallbackDescriptorBase::InitializePlatformSpecific( 393
394 void ApiFunctionDescriptor::InitializePlatformSpecific(
395 CallInterfaceDescriptorData* data) {
396 Register registers[] = {
397 edi, // callee
398 ebx, // call_data
399 ecx, // holder
400 edx, // api_function_address
401 eax, // actual number of arguments
402 };
403 data->InitializePlatformSpecific(arraysize(registers), registers);
404 }
405
406
407 void ApiAccessorDescriptor::InitializePlatformSpecific(
394 CallInterfaceDescriptorData* data) { 408 CallInterfaceDescriptorData* data) {
395 Register registers[] = { 409 Register registers[] = {
396 edi, // callee 410 edi, // callee
397 ebx, // call_data 411 ebx, // call_data
398 ecx, // holder 412 ecx, // holder
399 edx, // api_function_address 413 edx, // api_function_address
400 }; 414 };
401 data->InitializePlatformSpecific(arraysize(registers), registers); 415 data->InitializePlatformSpecific(arraysize(registers), registers);
402 } 416 }
403 417
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 ecx, // address of first argument (argv) 451 ecx, // address of first argument (argv)
438 ebx // the runtime function to call 452 ebx // the runtime function to call
439 }; 453 };
440 data->InitializePlatformSpecific(arraysize(registers), registers); 454 data->InitializePlatformSpecific(arraysize(registers), registers);
441 } 455 }
442 456
443 } // namespace internal 457 } // namespace internal
444 } // namespace v8 458 } // namespace v8
445 459
446 #endif // V8_TARGET_ARCH_IA32 460 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ic/arm/handler-compiler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698