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

Side by Side Diff: src/ia32/code-stubs-ia32.cc

Issue 381633002: Use a register spec for StoreIC and KeyedStoreIC. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Code comments. Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/ia32/debug-ia32.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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 void RegExpConstructResultStub::InitializeInterfaceDescriptor( 86 void RegExpConstructResultStub::InitializeInterfaceDescriptor(
87 CodeStubInterfaceDescriptor* descriptor) { 87 CodeStubInterfaceDescriptor* descriptor) {
88 Register registers[] = { ecx, ebx, eax }; 88 Register registers[] = { ecx, ebx, eax };
89 descriptor->Initialize( 89 descriptor->Initialize(
90 ARRAY_SIZE(registers), registers, 90 ARRAY_SIZE(registers), registers,
91 Runtime::FunctionForId(Runtime::kRegExpConstructResult)->entry); 91 Runtime::FunctionForId(Runtime::kRegExpConstructResult)->entry);
92 } 92 }
93 93
94 94
95 void KeyedStoreFastElementStub::InitializeInterfaceDescriptor(
96 CodeStubInterfaceDescriptor* descriptor) {
97 Register registers[] = { edx, ecx, eax };
98 descriptor->Initialize(
99 ARRAY_SIZE(registers), registers,
100 FUNCTION_ADDR(KeyedStoreIC_MissFromStubFailure));
101 }
102
103
104 void TransitionElementsKindStub::InitializeInterfaceDescriptor( 95 void TransitionElementsKindStub::InitializeInterfaceDescriptor(
105 CodeStubInterfaceDescriptor* descriptor) { 96 CodeStubInterfaceDescriptor* descriptor) {
106 Register registers[] = { eax, ebx }; 97 Register registers[] = { eax, ebx };
107 descriptor->Initialize( 98 descriptor->Initialize(
108 ARRAY_SIZE(registers), registers, 99 ARRAY_SIZE(registers), registers,
109 Runtime::FunctionForId(Runtime::kTransitionElementsKind)->entry); 100 Runtime::FunctionForId(Runtime::kTransitionElementsKind)->entry);
110 } 101 }
111 102
112 103
113 static void InitializeArrayConstructorDescriptor( 104 static void InitializeArrayConstructorDescriptor(
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 void ToBooleanStub::InitializeInterfaceDescriptor( 218 void ToBooleanStub::InitializeInterfaceDescriptor(
228 CodeStubInterfaceDescriptor* descriptor) { 219 CodeStubInterfaceDescriptor* descriptor) {
229 Register registers[] = { eax }; 220 Register registers[] = { eax };
230 descriptor->Initialize(ARRAY_SIZE(registers), registers, 221 descriptor->Initialize(ARRAY_SIZE(registers), registers,
231 FUNCTION_ADDR(ToBooleanIC_Miss)); 222 FUNCTION_ADDR(ToBooleanIC_Miss));
232 descriptor->SetMissHandler( 223 descriptor->SetMissHandler(
233 ExternalReference(IC_Utility(IC::kToBooleanIC_Miss), isolate())); 224 ExternalReference(IC_Utility(IC::kToBooleanIC_Miss), isolate()));
234 } 225 }
235 226
236 227
237 void StoreGlobalStub::InitializeInterfaceDescriptor(
238 CodeStubInterfaceDescriptor* descriptor) {
239 Register registers[] = { edx, ecx, eax };
240 descriptor->Initialize(ARRAY_SIZE(registers), registers,
241 FUNCTION_ADDR(StoreIC_MissFromStubFailure));
242 }
243
244
245 void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor( 228 void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor(
246 CodeStubInterfaceDescriptor* descriptor) { 229 CodeStubInterfaceDescriptor* descriptor) {
247 Register registers[] = { eax, ebx, ecx, edx }; 230 Register registers[] = { eax, ebx, ecx, edx };
248 descriptor->Initialize(ARRAY_SIZE(registers), registers, 231 descriptor->Initialize(ARRAY_SIZE(registers), registers,
249 FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss)); 232 FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss));
250 } 233 }
251 234
252 235
253 void BinaryOpICStub::InitializeInterfaceDescriptor( 236 void BinaryOpICStub::InitializeInterfaceDescriptor(
254 CodeStubInterfaceDescriptor* descriptor) { 237 CodeStubInterfaceDescriptor* descriptor) {
(...skipping 4738 matching lines...) Expand 10 before | Expand all | Expand 10 after
4993 Operand(ebp, 7 * kPointerSize), 4976 Operand(ebp, 7 * kPointerSize),
4994 NULL); 4977 NULL);
4995 } 4978 }
4996 4979
4997 4980
4998 #undef __ 4981 #undef __
4999 4982
5000 } } // namespace v8::internal 4983 } } // namespace v8::internal
5001 4984
5002 #endif // V8_TARGET_ARCH_IA32 4985 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/ia32/debug-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698