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

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

Issue 352583002: The IC exposes a register definition. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments. 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/arm/ic-arm.cc ('k') | src/arm64/code-stubs-arm64.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_ARM 7 #if V8_TARGET_ARCH_ARM
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 1245 matching lines...) Expand 10 before | Expand all | Expand 10 after
1256 __ LoadRoot(r0, Heap::kUndefinedValueRootIndex); 1256 __ LoadRoot(r0, Heap::kUndefinedValueRootIndex);
1257 __ Ret(); 1257 __ Ret();
1258 1258
1259 // Return the generated code. 1259 // Return the generated code.
1260 return GetCode(kind(), Code::FAST, name); 1260 return GetCode(kind(), Code::FAST, name);
1261 } 1261 }
1262 1262
1263 1263
1264 Register* LoadStubCompiler::registers() { 1264 Register* LoadStubCompiler::registers() {
1265 // receiver, name, scratch1, scratch2, scratch3, scratch4. 1265 // receiver, name, scratch1, scratch2, scratch3, scratch4.
1266 static Register registers[] = { r0, r2, r3, r1, r4, r5 }; 1266 Register receiver = LoadIC::ReceiverRegister();
1267 Register name = LoadIC::NameRegister();
1268 static Register registers[] = { receiver, name, r3, r1, r4, r5 };
1267 return registers; 1269 return registers;
1268 } 1270 }
1269 1271
1270 1272
1271 Register* KeyedLoadStubCompiler::registers() { 1273 Register* KeyedLoadStubCompiler::registers() {
1272 // receiver, name, scratch1, scratch2, scratch3, scratch4. 1274 // receiver, name, scratch1, scratch2, scratch3, scratch4.
1273 static Register registers[] = { r1, r0, r2, r3, r4, r5 }; 1275 Register receiver = KeyedLoadIC::ReceiverRegister();
1276 Register name = KeyedLoadIC::NameRegister();
1277 static Register registers[] = { receiver, name, r2, r3, r4, r5 };
1274 return registers; 1278 return registers;
1275 } 1279 }
1276 1280
1277 1281
1278 Register StoreStubCompiler::value() { 1282 Register StoreStubCompiler::value() {
1279 return r0; 1283 return r0;
1280 } 1284 }
1281 1285
1282 1286
1283 Register* StoreStubCompiler::registers() { 1287 Register* StoreStubCompiler::registers() {
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
1507 // ----------------------------------- 1511 // -----------------------------------
1508 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 1512 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
1509 } 1513 }
1510 1514
1511 1515
1512 #undef __ 1516 #undef __
1513 1517
1514 } } // namespace v8::internal 1518 } } // namespace v8::internal
1515 1519
1516 #endif // V8_TARGET_ARCH_ARM 1520 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/ic-arm.cc ('k') | src/arm64/code-stubs-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698