OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |