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

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

Issue 354013003: MIPS: Use IC register definitions in platform files. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/mips/debug-mips.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_MIPS 7 #if V8_TARGET_ARCH_MIPS
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 LoadFieldStub::InitializeInterfaceDescriptor(
91 CodeStubInterfaceDescriptor* descriptor) {
92 Register registers[] = { a0 };
93 descriptor->Initialize(ARRAY_SIZE(registers), registers);
94 }
95
96
97 void KeyedLoadFieldStub::InitializeInterfaceDescriptor(
98 CodeStubInterfaceDescriptor* descriptor) {
99 Register registers[] = { a1 };
100 descriptor->Initialize(ARRAY_SIZE(registers), registers);
101 }
102
103
104 void StringLengthStub::InitializeInterfaceDescriptor(
105 CodeStubInterfaceDescriptor* descriptor) {
106 Register registers[] = { a0, a2 };
107 descriptor->Initialize(ARRAY_SIZE(registers), registers);
108 }
109
110
111 void KeyedStringLengthStub::InitializeInterfaceDescriptor(
112 CodeStubInterfaceDescriptor* descriptor) {
113 Register registers[] = { a1, a0 };
114 descriptor->Initialize(ARRAY_SIZE(registers), registers);
115 }
116
117
118 void KeyedStoreFastElementStub::InitializeInterfaceDescriptor( 90 void KeyedStoreFastElementStub::InitializeInterfaceDescriptor(
119 CodeStubInterfaceDescriptor* descriptor) { 91 CodeStubInterfaceDescriptor* descriptor) {
120 Register registers[] = { a2, a1, a0 }; 92 Register registers[] = { a2, a1, a0 };
121 descriptor->Initialize( 93 descriptor->Initialize(
122 ARRAY_SIZE(registers), registers, 94 ARRAY_SIZE(registers), registers,
123 FUNCTION_ADDR(KeyedStoreIC_MissFromStubFailure)); 95 FUNCTION_ADDR(KeyedStoreIC_MissFromStubFailure));
124 } 96 }
125 97
126 98
127 void TransitionElementsKindStub::InitializeInterfaceDescriptor( 99 void TransitionElementsKindStub::InitializeInterfaceDescriptor(
(...skipping 5209 matching lines...) Expand 10 before | Expand all | Expand 10 after
5337 MemOperand(fp, 6 * kPointerSize), 5309 MemOperand(fp, 6 * kPointerSize),
5338 NULL); 5310 NULL);
5339 } 5311 }
5340 5312
5341 5313
5342 #undef __ 5314 #undef __
5343 5315
5344 } } // namespace v8::internal 5316 } } // namespace v8::internal
5345 5317
5346 #endif // V8_TARGET_ARCH_MIPS 5318 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/mips/debug-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698