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

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

Issue 383913002: MIPS: Use a register spec for StoreIC and KeyedStoreIC. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed typo. 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/mips/stub-cache-mips.cc ('k') | src/mips64/debug-mips64.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_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 void RegExpConstructResultStub::InitializeInterfaceDescriptor( 81 void RegExpConstructResultStub::InitializeInterfaceDescriptor(
82 CodeStubInterfaceDescriptor* descriptor) { 82 CodeStubInterfaceDescriptor* descriptor) {
83 Register registers[] = { a2, a1, a0 }; 83 Register registers[] = { a2, a1, a0 };
84 descriptor->Initialize( 84 descriptor->Initialize(
85 ARRAY_SIZE(registers), registers, 85 ARRAY_SIZE(registers), registers,
86 Runtime::FunctionForId(Runtime::kRegExpConstructResult)->entry); 86 Runtime::FunctionForId(Runtime::kRegExpConstructResult)->entry);
87 } 87 }
88 88
89 89
90 void KeyedStoreFastElementStub::InitializeInterfaceDescriptor(
91 CodeStubInterfaceDescriptor* descriptor) {
92 Register registers[] = { a2, a1, a0 };
93 descriptor->Initialize(
94 ARRAY_SIZE(registers), registers,
95 FUNCTION_ADDR(KeyedStoreIC_MissFromStubFailure));
96 }
97
98
99 void TransitionElementsKindStub::InitializeInterfaceDescriptor( 90 void TransitionElementsKindStub::InitializeInterfaceDescriptor(
100 CodeStubInterfaceDescriptor* descriptor) { 91 CodeStubInterfaceDescriptor* descriptor) {
101 Register registers[] = { a0, a1 }; 92 Register registers[] = { a0, a1 };
102 Address entry = 93 Address entry =
103 Runtime::FunctionForId(Runtime::kTransitionElementsKind)->entry; 94 Runtime::FunctionForId(Runtime::kTransitionElementsKind)->entry;
104 descriptor->Initialize(ARRAY_SIZE(registers), registers, 95 descriptor->Initialize(ARRAY_SIZE(registers), registers,
105 FUNCTION_ADDR(entry)); 96 FUNCTION_ADDR(entry));
106 } 97 }
107 98
108 99
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 InitializeInternalArrayConstructorDescriptor(descriptor, 1); 214 InitializeInternalArrayConstructorDescriptor(descriptor, 1);
224 } 215 }
225 216
226 217
227 void InternalArrayNArgumentsConstructorStub::InitializeInterfaceDescriptor( 218 void InternalArrayNArgumentsConstructorStub::InitializeInterfaceDescriptor(
228 CodeStubInterfaceDescriptor* descriptor) { 219 CodeStubInterfaceDescriptor* descriptor) {
229 InitializeInternalArrayConstructorDescriptor(descriptor, -1); 220 InitializeInternalArrayConstructorDescriptor(descriptor, -1);
230 } 221 }
231 222
232 223
233 void StoreGlobalStub::InitializeInterfaceDescriptor(
234 CodeStubInterfaceDescriptor* descriptor) {
235 Register registers[] = { a1, a2, a0 };
236 descriptor->Initialize(ARRAY_SIZE(registers), registers,
237 FUNCTION_ADDR(StoreIC_MissFromStubFailure));
238 }
239
240
241 void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor( 224 void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor(
242 CodeStubInterfaceDescriptor* descriptor) { 225 CodeStubInterfaceDescriptor* descriptor) {
243 Register registers[] = { a0, a3, a1, a2 }; 226 Register registers[] = { a0, a3, a1, a2 };
244 descriptor->Initialize(ARRAY_SIZE(registers), registers, 227 descriptor->Initialize(ARRAY_SIZE(registers), registers,
245 FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss)); 228 FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss));
246 } 229 }
247 230
248 231
249 void BinaryOpICStub::InitializeInterfaceDescriptor( 232 void BinaryOpICStub::InitializeInterfaceDescriptor(
250 CodeStubInterfaceDescriptor* descriptor) { 233 CodeStubInterfaceDescriptor* descriptor) {
(...skipping 5090 matching lines...) Expand 10 before | Expand all | Expand 10 after
5341 MemOperand(fp, 6 * kPointerSize), 5324 MemOperand(fp, 6 * kPointerSize),
5342 NULL); 5325 NULL);
5343 } 5326 }
5344 5327
5345 5328
5346 #undef __ 5329 #undef __
5347 5330
5348 } } // namespace v8::internal 5331 } } // namespace v8::internal
5349 5332
5350 #endif // V8_TARGET_ARCH_MIPS64 5333 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/stub-cache-mips.cc ('k') | src/mips64/debug-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698