OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/ast/scopes.h" | 5 #include "src/ast/scopes.h" |
6 #include "src/compiler/code-generator.h" | 6 #include "src/compiler/code-generator.h" |
7 #include "src/compiler/code-generator-impl.h" | 7 #include "src/compiler/code-generator-impl.h" |
8 #include "src/compiler/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
10 #include "src/compiler/osr.h" | 10 #include "src/compiler/osr.h" |
(...skipping 963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
974 break; | 974 break; |
975 case kMipsAddS: | 975 case kMipsAddS: |
976 // TODO(plind): add special case: combine mult & add. | 976 // TODO(plind): add special case: combine mult & add. |
977 __ add_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 977 __ add_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
978 i.InputDoubleRegister(1)); | 978 i.InputDoubleRegister(1)); |
979 break; | 979 break; |
980 case kMipsSubS: | 980 case kMipsSubS: |
981 __ sub_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 981 __ sub_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
982 i.InputDoubleRegister(1)); | 982 i.InputDoubleRegister(1)); |
983 break; | 983 break; |
| 984 case kMipsSubPreserveNanS: |
| 985 __ SubNanPreservePayloadAndSign_s(i.OutputDoubleRegister(), |
| 986 i.InputDoubleRegister(0), |
| 987 i.InputDoubleRegister(1)); |
| 988 break; |
984 case kMipsMulS: | 989 case kMipsMulS: |
985 // TODO(plind): add special case: right op is -1.0, see arm port. | 990 // TODO(plind): add special case: right op is -1.0, see arm port. |
986 __ mul_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 991 __ mul_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
987 i.InputDoubleRegister(1)); | 992 i.InputDoubleRegister(1)); |
988 break; | 993 break; |
989 case kMipsDivS: | 994 case kMipsDivS: |
990 __ div_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 995 __ div_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
991 i.InputDoubleRegister(1)); | 996 i.InputDoubleRegister(1)); |
992 break; | 997 break; |
993 case kMipsModS: { | 998 case kMipsModS: { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1040 } break; | 1045 } break; |
1041 case kMipsAddD: | 1046 case kMipsAddD: |
1042 // TODO(plind): add special case: combine mult & add. | 1047 // TODO(plind): add special case: combine mult & add. |
1043 __ add_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1048 __ add_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
1044 i.InputDoubleRegister(1)); | 1049 i.InputDoubleRegister(1)); |
1045 break; | 1050 break; |
1046 case kMipsSubD: | 1051 case kMipsSubD: |
1047 __ sub_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1052 __ sub_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
1048 i.InputDoubleRegister(1)); | 1053 i.InputDoubleRegister(1)); |
1049 break; | 1054 break; |
| 1055 case kMipsSubPreserveNanD: |
| 1056 __ SubNanPreservePayloadAndSign_d(i.OutputDoubleRegister(), |
| 1057 i.InputDoubleRegister(0), |
| 1058 i.InputDoubleRegister(1)); |
| 1059 break; |
1050 case kMipsMulD: | 1060 case kMipsMulD: |
1051 // TODO(plind): add special case: right op is -1.0, see arm port. | 1061 // TODO(plind): add special case: right op is -1.0, see arm port. |
1052 __ mul_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1062 __ mul_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
1053 i.InputDoubleRegister(1)); | 1063 i.InputDoubleRegister(1)); |
1054 break; | 1064 break; |
1055 case kMipsDivD: | 1065 case kMipsDivD: |
1056 __ div_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1066 __ div_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
1057 i.InputDoubleRegister(1)); | 1067 i.InputDoubleRegister(1)); |
1058 break; | 1068 break; |
1059 case kMipsModD: { | 1069 case kMipsModD: { |
(...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2047 padding_size -= v8::internal::Assembler::kInstrSize; | 2057 padding_size -= v8::internal::Assembler::kInstrSize; |
2048 } | 2058 } |
2049 } | 2059 } |
2050 } | 2060 } |
2051 | 2061 |
2052 #undef __ | 2062 #undef __ |
2053 | 2063 |
2054 } // namespace compiler | 2064 } // namespace compiler |
2055 } // namespace internal | 2065 } // namespace internal |
2056 } // namespace v8 | 2066 } // namespace v8 |
OLD | NEW |