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/ic.h" | 10 #include "src/ic/ic.h" |
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1011 // Return address is on the stack. | 1011 // Return address is on the stack. |
1012 StoreIC_PushArgs(masm); | 1012 StoreIC_PushArgs(masm); |
1013 | 1013 |
1014 // Do tail-call to runtime routine. | 1014 // Do tail-call to runtime routine. |
1015 ExternalReference ref = | 1015 ExternalReference ref = |
1016 ExternalReference(IC_Utility(kKeyedStoreIC_Miss), masm->isolate()); | 1016 ExternalReference(IC_Utility(kKeyedStoreIC_Miss), masm->isolate()); |
1017 __ TailCallExternalReference(ref, 3, 1); | 1017 __ TailCallExternalReference(ref, 3, 1); |
1018 } | 1018 } |
1019 | 1019 |
1020 | 1020 |
1021 void StoreIC::GenerateSlow(MacroAssembler* masm) { | |
1022 // Return address is on the stack. | |
1023 StoreIC_PushArgs(masm); | |
1024 | |
1025 // Do tail-call to runtime routine. | |
1026 ExternalReference ref(IC_Utility(kStoreIC_Slow), masm->isolate()); | |
1027 __ TailCallExternalReference(ref, 3, 1); | |
1028 } | |
1029 | |
1030 | |
1031 void KeyedStoreIC::GenerateSlow(MacroAssembler* masm) { | |
1032 // Return address is on the stack. | |
1033 StoreIC_PushArgs(masm); | |
1034 | |
1035 // Do tail-call to runtime routine. | |
1036 ExternalReference ref(IC_Utility(kKeyedStoreIC_Slow), masm->isolate()); | |
1037 __ TailCallExternalReference(ref, 3, 1); | |
1038 } | |
1039 | |
1040 | |
1041 #undef __ | 1021 #undef __ |
1042 | 1022 |
1043 | 1023 |
1044 Condition CompareIC::ComputeCondition(Token::Value op) { | 1024 Condition CompareIC::ComputeCondition(Token::Value op) { |
1045 switch (op) { | 1025 switch (op) { |
1046 case Token::EQ_STRICT: | 1026 case Token::EQ_STRICT: |
1047 case Token::EQ: | 1027 case Token::EQ: |
1048 return equal; | 1028 return equal; |
1049 case Token::LT: | 1029 case Token::LT: |
1050 return less; | 1030 return less; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1105 Condition cc = | 1085 Condition cc = |
1106 (check == ENABLE_INLINED_SMI_CHECK) | 1086 (check == ENABLE_INLINED_SMI_CHECK) |
1107 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) | 1087 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) |
1108 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); | 1088 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); |
1109 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); | 1089 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); |
1110 } | 1090 } |
1111 } | 1091 } |
1112 } // namespace v8::internal | 1092 } // namespace v8::internal |
1113 | 1093 |
1114 #endif // V8_TARGET_ARCH_IA32 | 1094 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |