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 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1034 const Register KeyedStoreIC::NameRegister() { | 1034 const Register KeyedStoreIC::NameRegister() { |
1035 return StoreIC::NameRegister(); | 1035 return StoreIC::NameRegister(); |
1036 } | 1036 } |
1037 | 1037 |
1038 | 1038 |
1039 const Register KeyedStoreIC::ValueRegister() { | 1039 const Register KeyedStoreIC::ValueRegister() { |
1040 return StoreIC::ValueRegister(); | 1040 return StoreIC::ValueRegister(); |
1041 } | 1041 } |
1042 | 1042 |
1043 | 1043 |
| 1044 const Register KeyedStoreIC::MapRegister() { |
| 1045 return ebx; |
| 1046 } |
| 1047 |
| 1048 |
1044 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { | 1049 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { |
1045 // Return address is on the stack. | 1050 // Return address is on the stack. |
1046 LoadIC_PushArgs(masm); | 1051 LoadIC_PushArgs(masm); |
1047 | 1052 |
1048 // Perform tail call to the entry. | 1053 // Perform tail call to the entry. |
1049 __ TailCallRuntime(Runtime::kKeyedGetProperty, 2, 1); | 1054 __ TailCallRuntime(Runtime::kKeyedGetProperty, 2, 1); |
1050 } | 1055 } |
1051 | 1056 |
1052 | 1057 |
1053 void StoreIC::GenerateMegamorphic(MacroAssembler* masm) { | 1058 void StoreIC::GenerateMegamorphic(MacroAssembler* masm) { |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1248 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) | 1253 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) |
1249 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) | 1254 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) |
1250 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); | 1255 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); |
1251 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); | 1256 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); |
1252 } | 1257 } |
1253 | 1258 |
1254 | 1259 |
1255 } } // namespace v8::internal | 1260 } } // namespace v8::internal |
1256 | 1261 |
1257 #endif // V8_TARGET_ARCH_IA32 | 1262 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |