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