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

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

Issue 1706703002: X87: [runtime] Introduce FastNewStrictArgumentsStub to optimize strict arguments. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/x87/code-stubs-x87.cc ('k') | no next file » | 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_X87 5 #if V8_TARGET_ARCH_X87
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 Register registers[] = {edi}; 91 Register registers[] = {edi};
92 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 92 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
93 } 93 }
94 94
95 void FastNewRestParameterDescriptor::InitializePlatformSpecific( 95 void FastNewRestParameterDescriptor::InitializePlatformSpecific(
96 CallInterfaceDescriptorData* data) { 96 CallInterfaceDescriptorData* data) {
97 Register registers[] = {edi}; 97 Register registers[] = {edi};
98 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 98 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
99 } 99 }
100 100
101 void FastNewStrictArgumentsDescriptor::InitializePlatformSpecific(
102 CallInterfaceDescriptorData* data) {
103 Register registers[] = {edi};
104 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
105 }
106
101 void ToNumberDescriptor::InitializePlatformSpecific( 107 void ToNumberDescriptor::InitializePlatformSpecific(
102 CallInterfaceDescriptorData* data) { 108 CallInterfaceDescriptorData* data) {
103 // ToNumberStub invokes a function, and therefore needs a context. 109 // ToNumberStub invokes a function, and therefore needs a context.
104 Register registers[] = {eax}; 110 Register registers[] = {eax};
105 data->InitializePlatformSpecific(arraysize(registers), registers, NULL); 111 data->InitializePlatformSpecific(arraysize(registers), registers, NULL);
106 } 112 }
107 113
108 114
109 // static 115 // static
110 const Register ToLengthDescriptor::ReceiverRegister() { return eax; } 116 const Register ToLengthDescriptor::ReceiverRegister() { return eax; }
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 ecx, // address of first argument (argv) 448 ecx, // address of first argument (argv)
443 ebx // the runtime function to call 449 ebx // the runtime function to call
444 }; 450 };
445 data->InitializePlatformSpecific(arraysize(registers), registers); 451 data->InitializePlatformSpecific(arraysize(registers), registers);
446 } 452 }
447 453
448 } // namespace internal 454 } // namespace internal
449 } // namespace v8 455 } // namespace v8
450 456
451 #endif // V8_TARGET_ARCH_X87 457 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x87/code-stubs-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698