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 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1269 break; | 1269 break; |
1270 case kMipsFloat64ExtractHighWord32: | 1270 case kMipsFloat64ExtractHighWord32: |
1271 __ FmoveHigh(i.OutputRegister(), i.InputDoubleRegister(0)); | 1271 __ FmoveHigh(i.OutputRegister(), i.InputDoubleRegister(0)); |
1272 break; | 1272 break; |
1273 case kMipsFloat64InsertLowWord32: | 1273 case kMipsFloat64InsertLowWord32: |
1274 __ FmoveLow(i.OutputDoubleRegister(), i.InputRegister(1)); | 1274 __ FmoveLow(i.OutputDoubleRegister(), i.InputRegister(1)); |
1275 break; | 1275 break; |
1276 case kMipsFloat64InsertHighWord32: | 1276 case kMipsFloat64InsertHighWord32: |
1277 __ FmoveHigh(i.OutputDoubleRegister(), i.InputRegister(1)); | 1277 __ FmoveHigh(i.OutputDoubleRegister(), i.InputRegister(1)); |
1278 break; | 1278 break; |
| 1279 case kMipsFloat64SilenceNaN: { |
| 1280 FPURegister value = i.InputDoubleRegister(0); |
| 1281 FPURegister result = i.OutputDoubleRegister(); |
| 1282 Register scratch0 = i.TempRegister(0); |
| 1283 Label is_nan, not_nan; |
| 1284 __ BranchF(NULL, &is_nan, eq, value, value); |
| 1285 __ Branch(¬_nan); |
| 1286 __ bind(&is_nan); |
| 1287 __ LoadRoot(scratch0, Heap::kNanValueRootIndex); |
| 1288 __ ldc1(result, FieldMemOperand(scratch0, HeapNumber::kValueOffset)); |
| 1289 __ bind(¬_nan); |
| 1290 break; |
| 1291 } |
| 1292 |
1279 // ... more basic instructions ... | 1293 // ... more basic instructions ... |
1280 | 1294 |
1281 case kMipsLbu: | 1295 case kMipsLbu: |
1282 __ lbu(i.OutputRegister(), i.MemoryOperand()); | 1296 __ lbu(i.OutputRegister(), i.MemoryOperand()); |
1283 break; | 1297 break; |
1284 case kMipsLb: | 1298 case kMipsLb: |
1285 __ lb(i.OutputRegister(), i.MemoryOperand()); | 1299 __ lb(i.OutputRegister(), i.MemoryOperand()); |
1286 break; | 1300 break; |
1287 case kMipsSb: | 1301 case kMipsSb: |
1288 __ sb(i.InputRegister(2), i.MemoryOperand()); | 1302 __ sb(i.InputRegister(2), i.MemoryOperand()); |
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2032 padding_size -= v8::internal::Assembler::kInstrSize; | 2046 padding_size -= v8::internal::Assembler::kInstrSize; |
2033 } | 2047 } |
2034 } | 2048 } |
2035 } | 2049 } |
2036 | 2050 |
2037 #undef __ | 2051 #undef __ |
2038 | 2052 |
2039 } // namespace compiler | 2053 } // namespace compiler |
2040 } // namespace internal | 2054 } // namespace internal |
2041 } // namespace v8 | 2055 } // namespace v8 |
OLD | NEW |