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/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
8 #include "src/arm64/macro-assembler-arm64.h" | 8 #include "src/arm64/macro-assembler-arm64.h" |
9 #include "src/compiler/code-generator-impl.h" | 9 #include "src/compiler/code-generator-impl.h" |
10 #include "src/compiler/gap-resolver.h" | 10 #include "src/compiler/gap-resolver.h" |
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
879 } | 879 } |
880 case kArm64Float64InsertHighWord32: { | 880 case kArm64Float64InsertHighWord32: { |
881 // TODO(arm64): This should use MOV (from general) when NEON is supported. | 881 // TODO(arm64): This should use MOV (from general) when NEON is supported. |
882 UseScratchRegisterScope scope(masm()); | 882 UseScratchRegisterScope scope(masm()); |
883 Register tmp = scope.AcquireX(); | 883 Register tmp = scope.AcquireX(); |
884 __ Fmov(tmp.W(), i.InputFloat32Register(0)); | 884 __ Fmov(tmp.W(), i.InputFloat32Register(0)); |
885 __ Bfi(tmp, i.InputRegister(1), 32, 32); | 885 __ Bfi(tmp, i.InputRegister(1), 32, 32); |
886 __ Fmov(i.OutputFloat64Register(), tmp); | 886 __ Fmov(i.OutputFloat64Register(), tmp); |
887 break; | 887 break; |
888 } | 888 } |
889 case kArm64Float64MoveU64: { | 889 case kArm64Float64MoveU64: |
890 __ Fmov(i.OutputFloat64Register(), i.InputRegister(0)); | 890 __ Fmov(i.OutputFloat64Register(), i.InputRegister(0)); |
891 break; | 891 break; |
892 } | 892 case kArm64U64MoveFloat64: |
| 893 __ Fmov(i.OutputRegister(), i.InputDoubleRegister(0)); |
| 894 break; |
893 case kArm64Ldrb: | 895 case kArm64Ldrb: |
894 __ Ldrb(i.OutputRegister(), i.MemoryOperand()); | 896 __ Ldrb(i.OutputRegister(), i.MemoryOperand()); |
895 break; | 897 break; |
896 case kArm64Ldrsb: | 898 case kArm64Ldrsb: |
897 __ Ldrsb(i.OutputRegister(), i.MemoryOperand()); | 899 __ Ldrsb(i.OutputRegister(), i.MemoryOperand()); |
898 break; | 900 break; |
899 case kArm64Strb: | 901 case kArm64Strb: |
900 __ Strb(i.InputRegister(2), i.MemoryOperand()); | 902 __ Strb(i.InputRegister(2), i.MemoryOperand()); |
901 break; | 903 break; |
902 case kArm64Ldrh: | 904 case kArm64Ldrh: |
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1400 padding_size -= kInstructionSize; | 1402 padding_size -= kInstructionSize; |
1401 } | 1403 } |
1402 } | 1404 } |
1403 } | 1405 } |
1404 | 1406 |
1405 #undef __ | 1407 #undef __ |
1406 | 1408 |
1407 } // namespace compiler | 1409 } // namespace compiler |
1408 } // namespace internal | 1410 } // namespace internal |
1409 } // namespace v8 | 1411 } // namespace v8 |
OLD | NEW |