| 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 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1149 i.InputDoubleRegister(1)); | 1149 i.InputDoubleRegister(1)); |
| 1150 __ CallCFunction(ExternalReference::mod_two_doubles_operation(isolate()), | 1150 __ CallCFunction(ExternalReference::mod_two_doubles_operation(isolate()), |
| 1151 0, 2); | 1151 0, 2); |
| 1152 // Move the result in the double result register. | 1152 // Move the result in the double result register. |
| 1153 __ MovFromFloatResult(i.OutputDoubleRegister()); | 1153 __ MovFromFloatResult(i.OutputDoubleRegister()); |
| 1154 break; | 1154 break; |
| 1155 } | 1155 } |
| 1156 case kMipsAbsD: | 1156 case kMipsAbsD: |
| 1157 __ abs_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); | 1157 __ abs_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); |
| 1158 break; | 1158 break; |
| 1159 case kMipsNegS: |
| 1160 __ neg_s(i.OutputSingleRegister(), i.InputSingleRegister(0)); |
| 1161 break; |
| 1162 case kMipsNegD: |
| 1163 __ neg_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); |
| 1164 break; |
| 1159 case kMipsSqrtD: { | 1165 case kMipsSqrtD: { |
| 1160 __ sqrt_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); | 1166 __ sqrt_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); |
| 1161 break; | 1167 break; |
| 1162 } | 1168 } |
| 1163 case kMipsMaxD: | 1169 case kMipsMaxD: |
| 1164 __ max_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1170 __ max_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
| 1165 i.InputDoubleRegister(1)); | 1171 i.InputDoubleRegister(1)); |
| 1166 break; | 1172 break; |
| 1167 case kMipsMinD: | 1173 case kMipsMinD: |
| 1168 __ min_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), | 1174 __ min_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0), |
| (...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2190 padding_size -= v8::internal::Assembler::kInstrSize; | 2196 padding_size -= v8::internal::Assembler::kInstrSize; |
| 2191 } | 2197 } |
| 2192 } | 2198 } |
| 2193 } | 2199 } |
| 2194 | 2200 |
| 2195 #undef __ | 2201 #undef __ |
| 2196 | 2202 |
| 2197 } // namespace compiler | 2203 } // namespace compiler |
| 2198 } // namespace internal | 2204 } // namespace internal |
| 2199 } // namespace v8 | 2205 } // namespace v8 |
| OLD | NEW |