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

Side by Side Diff: src/x87/ic-x87.cc

Issue 358773002: X87: The IC exposes a register definition. (Closed) Base URL: https://github.com/v8/v8.git@master
Patch Set: 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
« no previous file with comments | « src/x87/deoptimizer-x87.cc ('k') | src/x87/stub-cache-x87.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_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 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after
1018 __ push(ecx); // name 1018 __ push(ecx); // name
1019 __ push(ebx); // return address 1019 __ push(ebx); // return address
1020 1020
1021 // Perform tail call to the entry. 1021 // Perform tail call to the entry.
1022 ExternalReference ref = 1022 ExternalReference ref =
1023 ExternalReference(IC_Utility(kKeyedLoadIC_Miss), masm->isolate()); 1023 ExternalReference(IC_Utility(kKeyedLoadIC_Miss), masm->isolate());
1024 __ TailCallExternalReference(ref, 2, 1); 1024 __ TailCallExternalReference(ref, 2, 1);
1025 } 1025 }
1026 1026
1027 1027
1028 // IC register specifications
1029 const Register LoadIC::ReceiverRegister() { return edx; }
1030 const Register LoadIC::NameRegister() { return ecx; }
1031
1032
1033 const Register KeyedLoadIC::ReceiverRegister() {
1034 return LoadIC::ReceiverRegister();
1035 }
1036
1037
1038 const Register KeyedLoadIC::NameRegister() { return LoadIC::NameRegister(); }
1039
1040
1028 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { 1041 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) {
1029 // ----------- S t a t e ------------- 1042 // ----------- S t a t e -------------
1030 // -- ecx : key 1043 // -- ecx : key
1031 // -- edx : receiver 1044 // -- edx : receiver
1032 // -- esp[0] : return address 1045 // -- esp[0] : return address
1033 // ----------------------------------- 1046 // -----------------------------------
1034 1047
1035 __ pop(ebx); 1048 __ pop(ebx);
1036 __ push(edx); // receiver 1049 __ push(edx); // receiver
1037 __ push(ecx); // name 1050 __ push(ecx); // name
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
1281 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) 1294 Condition cc = (check == ENABLE_INLINED_SMI_CHECK)
1282 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) 1295 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero)
1283 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); 1296 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry);
1284 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 1297 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
1285 } 1298 }
1286 1299
1287 1300
1288 } } // namespace v8::internal 1301 } } // namespace v8::internal
1289 1302
1290 #endif // V8_TARGET_ARCH_X87 1303 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x87/deoptimizer-x87.cc ('k') | src/x87/stub-cache-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698