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 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1048 break; | 1048 break; |
1049 case kMipsAddS: | 1049 case kMipsAddS: |
1050 // TODO(plind): add special case: combine mult & add. | 1050 // TODO(plind): add special case: combine mult & add. |
1051 __ add_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1051 __ add_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
1052 i.InputDoubleRegister(1)); | 1052 i.InputDoubleRegister(1)); |
1053 break; | 1053 break; |
1054 case kMipsSubS: | 1054 case kMipsSubS: |
1055 __ sub_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1055 __ sub_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
1056 i.InputDoubleRegister(1)); | 1056 i.InputDoubleRegister(1)); |
1057 break; | 1057 break; |
1058 case kMipsSubPreserveNanS: | |
1059 __ SubNanPreservePayloadAndSign_s(i.OutputDoubleRegister(), | |
1060 i.InputDoubleRegister(0), | |
1061 i.InputDoubleRegister(1)); | |
1062 break; | |
1063 case kMipsMulS: | 1058 case kMipsMulS: |
1064 // TODO(plind): add special case: right op is -1.0, see arm port. | 1059 // TODO(plind): add special case: right op is -1.0, see arm port. |
1065 __ mul_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1060 __ mul_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
1066 i.InputDoubleRegister(1)); | 1061 i.InputDoubleRegister(1)); |
1067 break; | 1062 break; |
1068 case kMipsDivS: | 1063 case kMipsDivS: |
1069 __ div_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1064 __ div_s(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
1070 i.InputDoubleRegister(1)); | 1065 i.InputDoubleRegister(1)); |
1071 break; | 1066 break; |
1072 case kMipsModS: { | 1067 case kMipsModS: { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1119 } break; | 1114 } break; |
1120 case kMipsAddD: | 1115 case kMipsAddD: |
1121 // TODO(plind): add special case: combine mult & add. | 1116 // TODO(plind): add special case: combine mult & add. |
1122 __ add_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1117 __ add_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
1123 i.InputDoubleRegister(1)); | 1118 i.InputDoubleRegister(1)); |
1124 break; | 1119 break; |
1125 case kMipsSubD: | 1120 case kMipsSubD: |
1126 __ sub_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1121 __ sub_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
1127 i.InputDoubleRegister(1)); | 1122 i.InputDoubleRegister(1)); |
1128 break; | 1123 break; |
1129 case kMipsSubPreserveNanD: | |
1130 __ SubNanPreservePayloadAndSign_d(i.OutputDoubleRegister(), | |
1131 i.InputDoubleRegister(0), | |
1132 i.InputDoubleRegister(1)); | |
1133 break; | |
1134 case kMipsMulD: | 1124 case kMipsMulD: |
1135 // TODO(plind): add special case: right op is -1.0, see arm port. | 1125 // TODO(plind): add special case: right op is -1.0, see arm port. |
1136 __ mul_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1126 __ mul_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
1137 i.InputDoubleRegister(1)); | 1127 i.InputDoubleRegister(1)); |
1138 break; | 1128 break; |
1139 case kMipsDivD: | 1129 case kMipsDivD: |
1140 __ div_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1130 __ div_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
1141 i.InputDoubleRegister(1)); | 1131 i.InputDoubleRegister(1)); |
1142 break; | 1132 break; |
1143 case kMipsModD: { | 1133 case kMipsModD: { |
(...skipping 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2196 padding_size -= v8::internal::Assembler::kInstrSize; | 2186 padding_size -= v8::internal::Assembler::kInstrSize; |
2197 } | 2187 } |
2198 } | 2188 } |
2199 } | 2189 } |
2200 | 2190 |
2201 #undef __ | 2191 #undef __ |
2202 | 2192 |
2203 } // namespace compiler | 2193 } // namespace compiler |
2204 } // namespace internal | 2194 } // namespace internal |
2205 } // namespace v8 | 2195 } // namespace v8 |
OLD | NEW |