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

Side by Side Diff: src/x64/ic-x64.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/x64/code-stubs-x64.cc ('k') | src/x64/stub-cache-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_X64 7 #if V8_TARGET_ARCH_X64
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 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after
1045 __ Push(rax); // name 1045 __ Push(rax); // name
1046 __ PushReturnAddressFrom(rbx); 1046 __ PushReturnAddressFrom(rbx);
1047 1047
1048 // Perform tail call to the entry. 1048 // Perform tail call to the entry.
1049 ExternalReference ref = 1049 ExternalReference ref =
1050 ExternalReference(IC_Utility(kKeyedLoadIC_Miss), masm->isolate()); 1050 ExternalReference(IC_Utility(kKeyedLoadIC_Miss), masm->isolate());
1051 __ TailCallExternalReference(ref, 2, 1); 1051 __ TailCallExternalReference(ref, 2, 1);
1052 } 1052 }
1053 1053
1054 1054
1055 // IC register specifications
1056 Register LoadIC::kReceiverRegister = rax;
1057 Register LoadIC::kNameRegister = rcx;
1058 const Register LoadIC::registers[] = { kReceiverRegister, kNameRegister };
1059
1060
1061 Register KeyedLoadIC::kReceiverRegister = rdx;
1062 Register KeyedLoadIC::kNameRegister = rax;
1063 const Register KeyedLoadIC::registers[] = { kReceiverRegister, kNameRegister };
1064
1065
1055 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { 1066 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) {
1056 // ----------- S t a t e ------------- 1067 // ----------- S t a t e -------------
1057 // -- rax : key 1068 // -- rax : key
1058 // -- rdx : receiver 1069 // -- rdx : receiver
1059 // -- rsp[0] : return address 1070 // -- rsp[0] : return address
1060 // ----------------------------------- 1071 // -----------------------------------
1061 1072
1062 __ PopReturnAddressTo(rbx); 1073 __ PopReturnAddressTo(rbx);
1063 __ Push(rdx); // receiver 1074 __ Push(rdx); // receiver
1064 __ Push(rax); // name 1075 __ Push(rax); // name
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
1302 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) 1313 Condition cc = (check == ENABLE_INLINED_SMI_CHECK)
1303 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) 1314 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero)
1304 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); 1315 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry);
1305 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 1316 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
1306 } 1317 }
1307 1318
1308 1319
1309 } } // namespace v8::internal 1320 } } // namespace v8::internal
1310 1321
1311 #endif // V8_TARGET_ARCH_X64 1322 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698