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

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

Issue 382123003: X87: Use a register spec for StoreIC and KeyedStoreIC. (Closed) Base URL: https://github.com/v8/v8.git@master
Patch Set: 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
« no previous file with comments | « no previous file | src/x87/debug-x87.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_X87 7 #if V8_TARGET_ARCH_X87
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 4378 matching lines...) Expand 10 before | Expand all | Expand 10 after
4633 Operand(ebp, 7 * kPointerSize), 4616 Operand(ebp, 7 * kPointerSize),
4634 NULL); 4617 NULL);
4635 } 4618 }
4636 4619
4637 4620
4638 #undef __ 4621 #undef __
4639 4622
4640 } } // namespace v8::internal 4623 } } // namespace v8::internal
4641 4624
4642 #endif // V8_TARGET_ARCH_X87 4625 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « no previous file | src/x87/debug-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698