OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
6 | 6 |
7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/compiler/code-generator-impl.h" | 8 #include "src/compiler/code-generator-impl.h" |
9 #include "src/compiler/gap-resolver.h" | 9 #include "src/compiler/gap-resolver.h" |
10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
(...skipping 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1624 __ b(Condition(1), &conversion_done); // special case | 1624 __ b(Condition(1), &conversion_done); // special case |
1625 __ LoadImmP(i.OutputRegister(1), Operand(1)); | 1625 __ LoadImmP(i.OutputRegister(1), Operand(1)); |
1626 __ bind(&conversion_done); | 1626 __ bind(&conversion_done); |
1627 } | 1627 } |
1628 #endif | 1628 #endif |
1629 break; | 1629 break; |
1630 } | 1630 } |
1631 case kS390_Float32ToInt32: { | 1631 case kS390_Float32ToInt32: { |
1632 bool check_conversion = (i.OutputCount() > 1); | 1632 bool check_conversion = (i.OutputCount() > 1); |
1633 __ ConvertFloat32ToInt32(i.InputDoubleRegister(0), i.OutputRegister(0), | 1633 __ ConvertFloat32ToInt32(i.InputDoubleRegister(0), i.OutputRegister(0), |
1634 kScratchDoubleReg); | 1634 kScratchDoubleReg, kRoundToZero); |
1635 if (check_conversion) { | 1635 if (check_conversion) { |
1636 Label conversion_done; | 1636 Label conversion_done; |
1637 __ LoadImmP(i.OutputRegister(1), Operand::Zero()); | 1637 __ LoadImmP(i.OutputRegister(1), Operand::Zero()); |
1638 __ b(Condition(1), &conversion_done); // special case | 1638 __ b(Condition(1), &conversion_done); // special case |
1639 __ LoadImmP(i.OutputRegister(1), Operand(1)); | 1639 __ LoadImmP(i.OutputRegister(1), Operand(1)); |
1640 __ bind(&conversion_done); | 1640 __ bind(&conversion_done); |
1641 } | 1641 } |
1642 break; | 1642 break; |
1643 } | 1643 } |
1644 case kS390_Float32ToUint32: { | 1644 case kS390_Float32ToUint32: { |
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2361 padding_size -= 2; | 2361 padding_size -= 2; |
2362 } | 2362 } |
2363 } | 2363 } |
2364 } | 2364 } |
2365 | 2365 |
2366 #undef __ | 2366 #undef __ |
2367 | 2367 |
2368 } // namespace compiler | 2368 } // namespace compiler |
2369 } // namespace internal | 2369 } // namespace internal |
2370 } // namespace v8 | 2370 } // namespace v8 |
OLD | NEW |