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 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1018 __ push(ecx); // name | 1018 __ push(ecx); // name |
1019 __ push(ebx); // return address | 1019 __ push(ebx); // return address |
1020 | 1020 |
1021 // Perform tail call to the entry. | 1021 // Perform tail call to the entry. |
1022 ExternalReference ref = | 1022 ExternalReference ref = |
1023 ExternalReference(IC_Utility(kKeyedLoadIC_Miss), masm->isolate()); | 1023 ExternalReference(IC_Utility(kKeyedLoadIC_Miss), masm->isolate()); |
1024 __ TailCallExternalReference(ref, 2, 1); | 1024 __ TailCallExternalReference(ref, 2, 1); |
1025 } | 1025 } |
1026 | 1026 |
1027 | 1027 |
1028 // IC register specifications | |
1029 Register LoadIC::kReceiverRegister = edx; | |
1030 Register LoadIC::kNameRegister = ecx; | |
1031 const Register LoadIC::registers[] = { kReceiverRegister, kNameRegister }; | |
1032 | |
1033 | |
1034 Register KeyedLoadIC::kReceiverRegister = LoadIC::kReceiverRegister; | |
1035 Register KeyedLoadIC::kNameRegister = LoadIC::kNameRegister; | |
1036 const Register KeyedLoadIC::registers[] = { kReceiverRegister, kNameRegister }; | |
1037 | |
1038 | |
1039 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { | 1028 void KeyedLoadIC::GenerateRuntimeGetProperty(MacroAssembler* masm) { |
1040 // ----------- S t a t e ------------- | 1029 // ----------- S t a t e ------------- |
1041 // -- ecx : key | 1030 // -- ecx : key |
1042 // -- edx : receiver | 1031 // -- edx : receiver |
1043 // -- esp[0] : return address | 1032 // -- esp[0] : return address |
1044 // ----------------------------------- | 1033 // ----------------------------------- |
1045 | 1034 |
1046 __ pop(ebx); | 1035 __ pop(ebx); |
1047 __ push(edx); // receiver | 1036 __ push(edx); // receiver |
1048 __ push(ecx); // name | 1037 __ push(ecx); // name |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1292 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) | 1281 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) |
1293 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) | 1282 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) |
1294 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); | 1283 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); |
1295 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); | 1284 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); |
1296 } | 1285 } |
1297 | 1286 |
1298 | 1287 |
1299 } } // namespace v8::internal | 1288 } } // namespace v8::internal |
1300 | 1289 |
1301 #endif // V8_TARGET_ARCH_IA32 | 1290 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |