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 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 | |
1066 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { | 1055 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { |
1067 // ----------- S t a t e ------------- | 1056 // ----------- S t a t e ------------- |
1068 // -- rax : key | 1057 // -- rax : key |
1069 // -- rdx : receiver | 1058 // -- rdx : receiver |
1070 // -- rsp[0] : return address | 1059 // -- rsp[0] : return address |
1071 // ----------------------------------- | 1060 // ----------------------------------- |
1072 | 1061 |
1073 __ PopReturnAddressTo(rbx); | 1062 __ PopReturnAddressTo(rbx); |
1074 __ Push(rdx); // receiver | 1063 __ Push(rdx); // receiver |
1075 __ Push(rax); // name | 1064 __ Push(rax); // name |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1313 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) | 1302 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) |
1314 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) | 1303 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) |
1315 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); | 1304 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); |
1316 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); | 1305 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); |
1317 } | 1306 } |
1318 | 1307 |
1319 | 1308 |
1320 } } // namespace v8::internal | 1309 } } // namespace v8::internal |
1321 | 1310 |
1322 #endif // V8_TARGET_ARCH_X64 | 1311 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |