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

Side by Side Diff: src/x64/ic-x64.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/x64/deoptimizer-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 const Register LoadIC::ReceiverRegister() { return rax; }
1057 const Register LoadIC::NameRegister() { return rcx; }
1058 const Register KeyedLoadIC::ReceiverRegister() { return rdx; }
1059 const Register KeyedLoadIC::NameRegister() { return rax; }
1060
1061
1055 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { 1062 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) {
1056 // ----------- S t a t e ------------- 1063 // ----------- S t a t e -------------
1057 // -- rax : key 1064 // -- rax : key
1058 // -- rdx : receiver 1065 // -- rdx : receiver
1059 // -- rsp[0] : return address 1066 // -- rsp[0] : return address
1060 // ----------------------------------- 1067 // -----------------------------------
1061 1068
1062 __ PopReturnAddressTo(rbx); 1069 __ PopReturnAddressTo(rbx);
1063 __ Push(rdx); // receiver 1070 __ Push(rdx); // receiver
1064 __ Push(rax); // name 1071 __ Push(rax); // name
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
1302 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) 1309 Condition cc = (check == ENABLE_INLINED_SMI_CHECK)
1303 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) 1310 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero)
1304 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); 1311 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry);
1305 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 1312 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
1306 } 1313 }
1307 1314
1308 1315
1309 } } // namespace v8::internal 1316 } } // namespace v8::internal
1310 1317
1311 #endif // V8_TARGET_ARCH_X64 1318 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/deoptimizer-x64.cc ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698