| 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 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1058 const Register KeyedStoreIC::NameRegister() { | 1058 const Register KeyedStoreIC::NameRegister() { |
| 1059 return StoreIC::NameRegister(); | 1059 return StoreIC::NameRegister(); |
| 1060 } | 1060 } |
| 1061 | 1061 |
| 1062 | 1062 |
| 1063 const Register KeyedStoreIC::ValueRegister() { | 1063 const Register KeyedStoreIC::ValueRegister() { |
| 1064 return StoreIC::ValueRegister(); | 1064 return StoreIC::ValueRegister(); |
| 1065 } | 1065 } |
| 1066 | 1066 |
| 1067 | 1067 |
| 1068 const Register KeyedStoreIC::MapRegister() { |
| 1069 return rbx; |
| 1070 } |
| 1071 |
| 1072 |
| 1068 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { | 1073 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { |
| 1069 // The return address is on the stack. | 1074 // The return address is on the stack. |
| 1070 | 1075 |
| 1071 __ PopReturnAddressTo(KeyedLoadIC_TempRegister()); | 1076 __ PopReturnAddressTo(KeyedLoadIC_TempRegister()); |
| 1072 __ Push(ReceiverRegister()); // receiver | 1077 __ Push(ReceiverRegister()); // receiver |
| 1073 __ Push(NameRegister()); // name | 1078 __ Push(NameRegister()); // name |
| 1074 __ PushReturnAddressFrom(KeyedLoadIC_TempRegister()); | 1079 __ PushReturnAddressFrom(KeyedLoadIC_TempRegister()); |
| 1075 | 1080 |
| 1076 // Perform tail call to the entry. | 1081 // Perform tail call to the entry. |
| 1077 __ TailCallRuntime(Runtime::kKeyedGetProperty, 2, 1); | 1082 __ TailCallRuntime(Runtime::kKeyedGetProperty, 2, 1); |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1272 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) | 1277 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) |
| 1273 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) | 1278 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) |
| 1274 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); | 1279 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); |
| 1275 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); | 1280 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); |
| 1276 } | 1281 } |
| 1277 | 1282 |
| 1278 | 1283 |
| 1279 } } // namespace v8::internal | 1284 } } // namespace v8::internal |
| 1280 | 1285 |
| 1281 #endif // V8_TARGET_ARCH_X64 | 1286 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |