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/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
6 | 6 |
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/ppc/macro-assembler-ppc.h" | 10 #include "src/ppc/macro-assembler-ppc.h" |
(...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
896 DCHECK_EQ(LeaveRC, i.OutputRCBit()); | 896 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
897 break; | 897 break; |
898 case kPPC_Float64ToFloat32: | 898 case kPPC_Float64ToFloat32: |
899 ASSEMBLE_FLOAT_UNOP_RC(frsp); | 899 ASSEMBLE_FLOAT_UNOP_RC(frsp); |
900 break; | 900 break; |
901 case kPPC_Float32ToFloat64: | 901 case kPPC_Float32ToFloat64: |
902 // Nothing to do. | 902 // Nothing to do. |
903 __ Move(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); | 903 __ Move(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); |
904 DCHECK_EQ(LeaveRC, i.OutputRCBit()); | 904 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
905 break; | 905 break; |
| 906 case kPPC_Float64ExtractLowWord32: |
| 907 __ MovDoubleLowToInt(i.OutputRegister(), i.InputDoubleRegister(0)); |
| 908 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
| 909 break; |
| 910 case kPPC_Float64ExtractHighWord32: |
| 911 __ MovDoubleHighToInt(i.OutputRegister(), i.InputDoubleRegister(0)); |
| 912 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
| 913 break; |
| 914 case kPPC_Float64InsertLowWord32: |
| 915 __ InsertDoubleLow(i.OutputDoubleRegister(), i.InputRegister(1), r0); |
| 916 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
| 917 break; |
| 918 case kPPC_Float64InsertHighWord32: |
| 919 __ InsertDoubleHigh(i.OutputDoubleRegister(), i.InputRegister(1), r0); |
| 920 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
| 921 break; |
| 922 case kPPC_Float64Construct: |
| 923 #if V8_TARGET_ARCH_PPC64 |
| 924 __ MovInt64ComponentsToDouble(i.OutputDoubleRegister(), |
| 925 i.InputRegister(0), i.InputRegister(1), r0); |
| 926 #else |
| 927 __ MovInt64ToDouble(i.OutputDoubleRegister(), i.InputRegister(0), |
| 928 i.InputRegister(1)); |
| 929 #endif |
| 930 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
| 931 break; |
906 case kPPC_LoadWordU8: | 932 case kPPC_LoadWordU8: |
907 ASSEMBLE_LOAD_INTEGER(lbz, lbzx); | 933 ASSEMBLE_LOAD_INTEGER(lbz, lbzx); |
908 break; | 934 break; |
909 case kPPC_LoadWordS8: | 935 case kPPC_LoadWordS8: |
910 ASSEMBLE_LOAD_INTEGER(lbz, lbzx); | 936 ASSEMBLE_LOAD_INTEGER(lbz, lbzx); |
911 __ extsb(i.OutputRegister(), i.OutputRegister()); | 937 __ extsb(i.OutputRegister(), i.OutputRegister()); |
912 break; | 938 break; |
913 case kPPC_LoadWordU16: | 939 case kPPC_LoadWordU16: |
914 ASSEMBLE_LOAD_INTEGER(lhz, lhzx); | 940 ASSEMBLE_LOAD_INTEGER(lhz, lhzx); |
915 break; | 941 break; |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1398 } | 1424 } |
1399 } | 1425 } |
1400 MarkLazyDeoptSite(); | 1426 MarkLazyDeoptSite(); |
1401 } | 1427 } |
1402 | 1428 |
1403 #undef __ | 1429 #undef __ |
1404 | 1430 |
1405 } // namespace compiler | 1431 } // namespace compiler |
1406 } // namespace internal | 1432 } // namespace internal |
1407 } // namespace v8 | 1433 } // namespace v8 |
OLD | NEW |