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

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

Issue 381633002: Use a register spec for StoreIC and KeyedStoreIC. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Code comments. 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/arm64/lithium-codegen-arm64.cc ('k') | src/code-stubs.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 7 #if V8_TARGET_ARCH_ARM64
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 1244 matching lines...) Expand 10 before | Expand all | Expand 10 after
1255 Register* KeyedLoadStubCompiler::registers() { 1255 Register* KeyedLoadStubCompiler::registers() {
1256 // receiver, name, scratch1, scratch2, scratch3, scratch4. 1256 // receiver, name, scratch1, scratch2, scratch3, scratch4.
1257 Register receiver = LoadIC::ReceiverRegister(); 1257 Register receiver = LoadIC::ReceiverRegister();
1258 Register name = LoadIC::NameRegister(); 1258 Register name = LoadIC::NameRegister();
1259 static Register registers[] = { receiver, name, x3, x0, x4, x5 }; 1259 static Register registers[] = { receiver, name, x3, x0, x4, x5 };
1260 return registers; 1260 return registers;
1261 } 1261 }
1262 1262
1263 1263
1264 Register StoreStubCompiler::value() { 1264 Register StoreStubCompiler::value() {
1265 return x0; 1265 return StoreIC::ValueRegister();
1266 } 1266 }
1267 1267
1268 1268
1269 Register* StoreStubCompiler::registers() { 1269 Register* StoreStubCompiler::registers() {
1270 // receiver, value, scratch1, scratch2, scratch3. 1270 // receiver, value, scratch1, scratch2, scratch3.
1271 static Register registers[] = { x1, x2, x3, x4, x5 }; 1271 Register receiver = StoreIC::ReceiverRegister();
1272 Register name = StoreIC::NameRegister();
1273 static Register registers[] = { receiver, name, x3, x4, x5 };
1272 return registers; 1274 return registers;
1273 } 1275 }
1274 1276
1275 1277
1276 Register* KeyedStoreStubCompiler::registers() { 1278 Register* KeyedStoreStubCompiler::registers() {
1277 // receiver, name, scratch1, scratch2, scratch3. 1279 // receiver, name, scratch1, scratch2, scratch3.
1278 static Register registers[] = { x2, x1, x3, x4, x5 }; 1280 Register receiver = KeyedStoreIC::ReceiverRegister();
1281 Register name = KeyedStoreIC::NameRegister();
1282 static Register registers[] = { receiver, name, x3, x4, x5 };
1279 return registers; 1283 return registers;
1280 } 1284 }
1281 1285
1282 1286
1283 #undef __ 1287 #undef __
1284 #define __ ACCESS_MASM(masm) 1288 #define __ ACCESS_MASM(masm)
1285 1289
1286 void LoadStubCompiler::GenerateLoadViaGetter(MacroAssembler* masm, 1290 void LoadStubCompiler::GenerateLoadViaGetter(MacroAssembler* masm,
1287 Handle<HeapType> type, 1291 Handle<HeapType> type,
1288 Register receiver, 1292 Register receiver,
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
1469 1473
1470 // Miss case, call the runtime. 1474 // Miss case, call the runtime.
1471 __ Bind(&miss); 1475 __ Bind(&miss);
1472 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 1476 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
1473 } 1477 }
1474 1478
1475 1479
1476 } } // namespace v8::internal 1480 } } // namespace v8::internal
1477 1481
1478 #endif // V8_TARGET_ARCH_ARM64 1482 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698