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 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
998 break; | 998 break; |
999 case kMipsAddS: | 999 case kMipsAddS: |
1000 // TODO(plind): add special case: combine mult & add. | 1000 // TODO(plind): add special case: combine mult & add. |
1001 __ add_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1001 __ add_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
1002 i.InputDoubleRegister(1)); | 1002 i.InputDoubleRegister(1)); |
1003 break; | 1003 break; |
1004 case kMipsSubS: | 1004 case kMipsSubS: |
1005 __ sub_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1005 __ sub_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
1006 i.InputDoubleRegister(1)); | 1006 i.InputDoubleRegister(1)); |
1007 break; | 1007 break; |
| 1008 case kMipsSubPreserveNanS: |
| 1009 __ SubNanPreservePayloadAndSign_s(i.OutputDoubleRegister(), |
| 1010 i.InputDoubleRegister(0), |
| 1011 i.InputDoubleRegister(1)); |
| 1012 break; |
1008 case kMipsMulS: | 1013 case kMipsMulS: |
1009 // TODO(plind): add special case: right op is -1.0, see arm port. | 1014 // TODO(plind): add special case: right op is -1.0, see arm port. |
1010 __ mul_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1015 __ mul_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
1011 i.InputDoubleRegister(1)); | 1016 i.InputDoubleRegister(1)); |
1012 break; | 1017 break; |
1013 case kMipsDivS: | 1018 case kMipsDivS: |
1014 __ div_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1019 __ div_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
1015 i.InputDoubleRegister(1)); | 1020 i.InputDoubleRegister(1)); |
1016 break; | 1021 break; |
1017 case kMipsModS: { | 1022 case kMipsModS: { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1064 } break; | 1069 } break; |
1065 case kMipsAddD: | 1070 case kMipsAddD: |
1066 // TODO(plind): add special case: combine mult & add. | 1071 // TODO(plind): add special case: combine mult & add. |
1067 __ add_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1072 __ add_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
1068 i.InputDoubleRegister(1)); | 1073 i.InputDoubleRegister(1)); |
1069 break; | 1074 break; |
1070 case kMipsSubD: | 1075 case kMipsSubD: |
1071 __ sub_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1076 __ sub_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
1072 i.InputDoubleRegister(1)); | 1077 i.InputDoubleRegister(1)); |
1073 break; | 1078 break; |
| 1079 case kMipsSubPreserveNanD: |
| 1080 __ SubNanPreservePayloadAndSign_d(i.OutputDoubleRegister(), |
| 1081 i.InputDoubleRegister(0), |
| 1082 i.InputDoubleRegister(1)); |
| 1083 break; |
1074 case kMipsMulD: | 1084 case kMipsMulD: |
1075 // TODO(plind): add special case: right op is -1.0, see arm port. | 1085 // TODO(plind): add special case: right op is -1.0, see arm port. |
1076 __ mul_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1086 __ mul_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
1077 i.InputDoubleRegister(1)); | 1087 i.InputDoubleRegister(1)); |
1078 break; | 1088 break; |
1079 case kMipsDivD: | 1089 case kMipsDivD: |
1080 __ div_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1090 __ div_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
1081 i.InputDoubleRegister(1)); | 1091 i.InputDoubleRegister(1)); |
1082 break; | 1092 break; |
1083 case kMipsModD: { | 1093 case kMipsModD: { |
(...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2071 padding_size -= v8::internal::Assembler::kInstrSize; | 2081 padding_size -= v8::internal::Assembler::kInstrSize; |
2072 } | 2082 } |
2073 } | 2083 } |
2074 } | 2084 } |
2075 | 2085 |
2076 #undef __ | 2086 #undef __ |
2077 | 2087 |
2078 } // namespace compiler | 2088 } // namespace compiler |
2079 } // namespace internal | 2089 } // namespace internal |
2080 } // namespace v8 | 2090 } // namespace v8 |
OLD | NEW |