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

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

Issue 382123003: X87: Use a register spec for StoreIC and KeyedStoreIC. (Closed) Base URL: https://github.com/v8/v8.git@master
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
« no previous file with comments | « src/x87/lithium-x87.cc ('k') | no next file » | 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_X87 7 #if V8_TARGET_ARCH_X87
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 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after
1292 Register* KeyedLoadStubCompiler::registers() { 1292 Register* KeyedLoadStubCompiler::registers() {
1293 // receiver, name, scratch1, scratch2, scratch3, scratch4. 1293 // receiver, name, scratch1, scratch2, scratch3, scratch4.
1294 Register receiver = LoadIC::ReceiverRegister(); 1294 Register receiver = LoadIC::ReceiverRegister();
1295 Register name = LoadIC::NameRegister(); 1295 Register name = LoadIC::NameRegister();
1296 static Register registers[] = { receiver, name, ebx, eax, edi, no_reg }; 1296 static Register registers[] = { receiver, name, ebx, eax, edi, no_reg };
1297 return registers; 1297 return registers;
1298 } 1298 }
1299 1299
1300 1300
1301 Register StoreStubCompiler::value() { 1301 Register StoreStubCompiler::value() {
1302 return eax; 1302 return StoreIC::ValueRegister();
1303 } 1303 }
1304 1304
1305 1305
1306 Register* StoreStubCompiler::registers() { 1306 Register* StoreStubCompiler::registers() {
1307 // receiver, name, scratch1, scratch2, scratch3. 1307 // receiver, name, scratch1, scratch2, scratch3.
1308 static Register registers[] = { edx, ecx, ebx, edi, no_reg }; 1308 Register receiver = StoreIC::ReceiverRegister();
1309 Register name = StoreIC::NameRegister();
1310 static Register registers[] = { receiver, name, ebx, edi, no_reg };
1309 return registers; 1311 return registers;
1310 } 1312 }
1311 1313
1312 1314
1313 Register* KeyedStoreStubCompiler::registers() { 1315 Register* KeyedStoreStubCompiler::registers() {
1314 // receiver, name, scratch1, scratch2, scratch3. 1316 // receiver, name, scratch1, scratch2, scratch3.
1315 static Register registers[] = { edx, ecx, ebx, edi, no_reg }; 1317 Register receiver = KeyedStoreIC::ReceiverRegister();
1318 Register name = KeyedStoreIC::NameRegister();
1319 static Register registers[] = { receiver, name, ebx, edi, no_reg };
1316 return registers; 1320 return registers;
1317 } 1321 }
1318 1322
1319 1323
1320 #undef __ 1324 #undef __
1321 #define __ ACCESS_MASM(masm) 1325 #define __ ACCESS_MASM(masm)
1322 1326
1323 1327
1324 void LoadStubCompiler::GenerateLoadViaGetter(MacroAssembler* masm, 1328 void LoadStubCompiler::GenerateLoadViaGetter(MacroAssembler* masm,
1325 Handle<HeapType> type, 1329 Handle<HeapType> type,
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
1490 // ----------------------------------- 1494 // -----------------------------------
1491 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 1495 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
1492 } 1496 }
1493 1497
1494 1498
1495 #undef __ 1499 #undef __
1496 1500
1497 } } // namespace v8::internal 1501 } } // namespace v8::internal
1498 1502
1499 #endif // V8_TARGET_ARCH_X87 1503 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x87/lithium-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698