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

Side by Side Diff: src/mips/stub-cache-mips.cc

Issue 340363002: The IC should define its input registers (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added mips and x87 port. Created 6 years, 6 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/ic-mips.cc ('k') | src/x64/code-stubs-x64.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/codegen.h" 9 #include "src/codegen.h"
10 #include "src/ic-inl.h" 10 #include "src/ic-inl.h"
(...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after
1246 __ LoadRoot(v0, Heap::kUndefinedValueRootIndex); 1246 __ LoadRoot(v0, Heap::kUndefinedValueRootIndex);
1247 __ Ret(); 1247 __ Ret();
1248 1248
1249 // Return the generated code. 1249 // Return the generated code.
1250 return GetCode(kind(), Code::FAST, name); 1250 return GetCode(kind(), Code::FAST, name);
1251 } 1251 }
1252 1252
1253 1253
1254 Register* LoadStubCompiler::registers() { 1254 Register* LoadStubCompiler::registers() {
1255 // receiver, name, scratch1, scratch2, scratch3, scratch4. 1255 // receiver, name, scratch1, scratch2, scratch3, scratch4.
1256 static Register registers[] = { a0, a2, a3, a1, t0, t1 }; 1256 Register receiver = LoadIC::kReceiverRegister;
1257 Register name = LoadIC::kNameRegister;
1258 static Register registers[] = { receiver, name, a3, a1, t0, t1 };
1257 return registers; 1259 return registers;
1258 } 1260 }
1259 1261
1260 1262
1261 Register* KeyedLoadStubCompiler::registers() { 1263 Register* KeyedLoadStubCompiler::registers() {
1262 // receiver, name, scratch1, scratch2, scratch3, scratch4. 1264 // receiver, name, scratch1, scratch2, scratch3, scratch4.
1263 static Register registers[] = { a1, a0, a2, a3, t0, t1 }; 1265 Register receiver = KeyedLoadIC::kReceiverRegister;
1266 Register name = KeyedLoadIC::kNameRegister;
1267 static Register registers[] = { receiver, name, a2, a3, t0, t1 };
1264 return registers; 1268 return registers;
1265 } 1269 }
1266 1270
1267 1271
1268 Register StoreStubCompiler::value() { 1272 Register StoreStubCompiler::value() {
1269 return a0; 1273 return a0;
1270 } 1274 }
1271 1275
1272 1276
1273 Register* StoreStubCompiler::registers() { 1277 Register* StoreStubCompiler::registers() {
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
1500 // ----------------------------------- 1504 // -----------------------------------
1501 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 1505 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
1502 } 1506 }
1503 1507
1504 1508
1505 #undef __ 1509 #undef __
1506 1510
1507 } } // namespace v8::internal 1511 } } // namespace v8::internal
1508 1512
1509 #endif // V8_TARGET_ARCH_MIPS 1513 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/ic-mips.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698