| 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_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
| 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 972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 983 ASSERT(FLAG_vector_ics); | 983 ASSERT(FLAG_vector_ics); |
| 984 return ebx; | 984 return ebx; |
| 985 } | 985 } |
| 986 | 986 |
| 987 | 987 |
| 988 const Register StoreIC::ReceiverRegister() { return edx; } | 988 const Register StoreIC::ReceiverRegister() { return edx; } |
| 989 const Register StoreIC::NameRegister() { return ecx; } | 989 const Register StoreIC::NameRegister() { return ecx; } |
| 990 const Register StoreIC::ValueRegister() { return eax; } | 990 const Register StoreIC::ValueRegister() { return eax; } |
| 991 | 991 |
| 992 | 992 |
| 993 const Register KeyedStoreIC::ReceiverRegister() { | |
| 994 return StoreIC::ReceiverRegister(); | |
| 995 } | |
| 996 | |
| 997 | |
| 998 const Register KeyedStoreIC::NameRegister() { | |
| 999 return StoreIC::NameRegister(); | |
| 1000 } | |
| 1001 | |
| 1002 | |
| 1003 const Register KeyedStoreIC::ValueRegister() { | |
| 1004 return StoreIC::ValueRegister(); | |
| 1005 } | |
| 1006 | |
| 1007 | |
| 1008 const Register KeyedStoreIC::MapRegister() { | 993 const Register KeyedStoreIC::MapRegister() { |
| 1009 return ebx; | 994 return ebx; |
| 1010 } | 995 } |
| 1011 | 996 |
| 1012 | 997 |
| 1013 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { | 998 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { |
| 1014 // Return address is on the stack. | 999 // Return address is on the stack. |
| 1015 LoadIC_PushArgs(masm); | 1000 LoadIC_PushArgs(masm); |
| 1016 | 1001 |
| 1017 // Perform tail call to the entry. | 1002 // Perform tail call to the entry. |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1217 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) | 1202 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) |
| 1218 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) | 1203 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) |
| 1219 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); | 1204 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); |
| 1220 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); | 1205 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); |
| 1221 } | 1206 } |
| 1222 | 1207 |
| 1223 | 1208 |
| 1224 } } // namespace v8::internal | 1209 } } // namespace v8::internal |
| 1225 | 1210 |
| 1226 #endif // V8_TARGET_ARCH_IA32 | 1211 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |