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

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

Issue 1693513002: [runtime] Introduce FastNewStrictArgumentsStub to optimize strict arguments. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix mips and mips64. Created 4 years, 10 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/interface-descriptors.h » ('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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 } 97 }
98 98
99 99
100 void FastNewRestParameterDescriptor::InitializePlatformSpecific( 100 void FastNewRestParameterDescriptor::InitializePlatformSpecific(
101 CallInterfaceDescriptorData* data) { 101 CallInterfaceDescriptorData* data) {
102 Register registers[] = {edi}; 102 Register registers[] = {edi};
103 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 103 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
104 } 104 }
105 105
106 106
107 void FastNewStrictArgumentsDescriptor::InitializePlatformSpecific(
108 CallInterfaceDescriptorData* data) {
109 Register registers[] = {edi};
110 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
111 }
112
113
107 void ToNumberDescriptor::InitializePlatformSpecific( 114 void ToNumberDescriptor::InitializePlatformSpecific(
108 CallInterfaceDescriptorData* data) { 115 CallInterfaceDescriptorData* data) {
109 // ToNumberStub invokes a function, and therefore needs a context. 116 // ToNumberStub invokes a function, and therefore needs a context.
110 Register registers[] = {eax}; 117 Register registers[] = {eax};
111 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 118 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
112 } 119 }
113 120
114 121
115 // static 122 // static
116 const Register ToLengthDescriptor::ReceiverRegister() { return eax; } 123 const Register ToLengthDescriptor::ReceiverRegister() { return eax; }
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 ecx, // address of first argument (argv) 455 ecx, // address of first argument (argv)
449 ebx // the runtime function to call 456 ebx // the runtime function to call
450 }; 457 };
451 data->InitializePlatformSpecific(arraysize(registers), registers); 458 data->InitializePlatformSpecific(arraysize(registers), registers);
452 } 459 }
453 460
454 } // namespace internal 461 } // namespace internal
455 } // namespace v8 462 } // namespace v8
456 463
457 #endif // V8_TARGET_ARCH_IA32 464 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/interface-descriptors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698