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_X87 | 7 #if V8_TARGET_ARCH_X87 |
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 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
967 ExternalReference(IC_Utility(kKeyedLoadIC_Miss), masm->isolate()); | 967 ExternalReference(IC_Utility(kKeyedLoadIC_Miss), masm->isolate()); |
968 __ TailCallExternalReference(ref, 2, 1); | 968 __ TailCallExternalReference(ref, 2, 1); |
969 } | 969 } |
970 | 970 |
971 | 971 |
972 // IC register specifications | 972 // IC register specifications |
973 const Register LoadIC::ReceiverRegister() { return edx; } | 973 const Register LoadIC::ReceiverRegister() { return edx; } |
974 const Register LoadIC::NameRegister() { return ecx; } | 974 const Register LoadIC::NameRegister() { return ecx; } |
975 | 975 |
976 | 976 |
| 977 const Register LoadIC::SlotRegister() { |
| 978 ASSERT(FLAG_vector_ics); |
| 979 return eax; |
| 980 } |
| 981 |
| 982 |
| 983 const Register LoadIC::VectorRegister() { |
| 984 ASSERT(FLAG_vector_ics); |
| 985 return ebx; |
| 986 } |
| 987 |
| 988 |
977 const Register StoreIC::ReceiverRegister() { return edx; } | 989 const Register StoreIC::ReceiverRegister() { return edx; } |
978 const Register StoreIC::NameRegister() { return ecx; } | 990 const Register StoreIC::NameRegister() { return ecx; } |
979 const Register StoreIC::ValueRegister() { return eax; } | 991 const Register StoreIC::ValueRegister() { return eax; } |
980 | 992 |
981 | 993 |
982 const Register KeyedStoreIC::ReceiverRegister() { | 994 const Register KeyedStoreIC::ReceiverRegister() { |
983 return StoreIC::ReceiverRegister(); | 995 return StoreIC::ReceiverRegister(); |
984 } | 996 } |
985 | 997 |
986 | 998 |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1206 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) | 1218 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) |
1207 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) | 1219 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) |
1208 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); | 1220 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); |
1209 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); | 1221 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); |
1210 } | 1222 } |
1211 | 1223 |
1212 | 1224 |
1213 } } // namespace v8::internal | 1225 } } // namespace v8::internal |
1214 | 1226 |
1215 #endif // V8_TARGET_ARCH_X87 | 1227 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |