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/macro-assembler-arm64.h" | 7 #include "src/arm64/macro-assembler-arm64.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 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 // TODO(dcarney): implement directly. See note in lithium-codegen-arm64.cc | 682 // TODO(dcarney): implement directly. See note in lithium-codegen-arm64.cc |
683 FrameScope scope(masm(), StackFrame::MANUAL); | 683 FrameScope scope(masm(), StackFrame::MANUAL); |
684 DCHECK(d0.is(i.InputDoubleRegister(0))); | 684 DCHECK(d0.is(i.InputDoubleRegister(0))); |
685 DCHECK(d1.is(i.InputDoubleRegister(1))); | 685 DCHECK(d1.is(i.InputDoubleRegister(1))); |
686 DCHECK(d0.is(i.OutputDoubleRegister())); | 686 DCHECK(d0.is(i.OutputDoubleRegister())); |
687 // TODO(dcarney): make sure this saves all relevant registers. | 687 // TODO(dcarney): make sure this saves all relevant registers. |
688 __ CallCFunction(ExternalReference::mod_two_doubles_operation(isolate()), | 688 __ CallCFunction(ExternalReference::mod_two_doubles_operation(isolate()), |
689 0, 2); | 689 0, 2); |
690 break; | 690 break; |
691 } | 691 } |
692 case kArm64Float64Neg: | |
693 __ Fneg(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); | |
694 break; | |
695 case kArm64Float64Sqrt: | 692 case kArm64Float64Sqrt: |
696 __ Fsqrt(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); | 693 __ Fsqrt(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); |
697 break; | 694 break; |
698 case kArm64Float32ToFloat64: | 695 case kArm64Float32ToFloat64: |
699 __ Fcvt(i.OutputDoubleRegister(), i.InputDoubleRegister(0).S()); | 696 __ Fcvt(i.OutputDoubleRegister(), i.InputDoubleRegister(0).S()); |
700 break; | 697 break; |
701 case kArm64Float64ToFloat32: | 698 case kArm64Float64ToFloat32: |
702 __ Fcvt(i.OutputDoubleRegister().S(), i.InputDoubleRegister(0)); | 699 __ Fcvt(i.OutputDoubleRegister().S(), i.InputDoubleRegister(0)); |
703 break; | 700 break; |
704 case kArm64Float64ToInt32: | 701 case kArm64Float64ToInt32: |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1222 } | 1219 } |
1223 } | 1220 } |
1224 MarkLazyDeoptSite(); | 1221 MarkLazyDeoptSite(); |
1225 } | 1222 } |
1226 | 1223 |
1227 #undef __ | 1224 #undef __ |
1228 | 1225 |
1229 } // namespace compiler | 1226 } // namespace compiler |
1230 } // namespace internal | 1227 } // namespace internal |
1231 } // namespace v8 | 1228 } // namespace v8 |
OLD | NEW |