| 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 #include "src/compiler/code-generator-impl.h" | 6 #include "src/compiler/code-generator-impl.h" |
| 7 #include "src/compiler/gap-resolver.h" | 7 #include "src/compiler/gap-resolver.h" |
| 8 #include "src/compiler/node-matchers.h" | 8 #include "src/compiler/node-matchers.h" |
| 9 #include "src/mips/macro-assembler-mips.h" | 9 #include "src/mips/macro-assembler-mips.h" |
| 10 #include "src/scopes.h" | 10 #include "src/scopes.h" |
| (...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 FrameScope scope(masm(), StackFrame::MANUAL); | 630 FrameScope scope(masm(), StackFrame::MANUAL); |
| 631 __ PrepareCallCFunction(0, 2, kScratchReg); | 631 __ PrepareCallCFunction(0, 2, kScratchReg); |
| 632 __ MovToFloatParameters(i.InputDoubleRegister(0), | 632 __ MovToFloatParameters(i.InputDoubleRegister(0), |
| 633 i.InputDoubleRegister(1)); | 633 i.InputDoubleRegister(1)); |
| 634 __ CallCFunction(ExternalReference::mod_two_doubles_operation(isolate()), | 634 __ CallCFunction(ExternalReference::mod_two_doubles_operation(isolate()), |
| 635 0, 2); | 635 0, 2); |
| 636 // Move the result in the double result register. | 636 // Move the result in the double result register. |
| 637 __ MovFromFloatResult(i.OutputDoubleRegister()); | 637 __ MovFromFloatResult(i.OutputDoubleRegister()); |
| 638 break; | 638 break; |
| 639 } | 639 } |
| 640 case kMips64Float64Floor: { | 640 case kMips64Float64RoundDown: { |
| 641 ASSEMBLE_ROUND_DOUBLE_TO_DOUBLE(floor_l_d, Floor); | 641 ASSEMBLE_ROUND_DOUBLE_TO_DOUBLE(floor_l_d, Floor); |
| 642 break; | 642 break; |
| 643 } | 643 } |
| 644 case kMips64Float64Ceil: { | |
| 645 ASSEMBLE_ROUND_DOUBLE_TO_DOUBLE(ceil_l_d, Ceil); | |
| 646 break; | |
| 647 } | |
| 648 case kMips64Float64RoundTruncate: { | 644 case kMips64Float64RoundTruncate: { |
| 649 ASSEMBLE_ROUND_DOUBLE_TO_DOUBLE(trunc_l_d, Truncate); | 645 ASSEMBLE_ROUND_DOUBLE_TO_DOUBLE(trunc_l_d, Truncate); |
| 650 break; | 646 break; |
| 651 } | 647 } |
| 648 case kMips64Float64RoundUp: { |
| 649 ASSEMBLE_ROUND_DOUBLE_TO_DOUBLE(ceil_l_d, Ceil); |
| 650 break; |
| 651 } |
| 652 case kMips64SqrtD: { | 652 case kMips64SqrtD: { |
| 653 __ sqrt_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); | 653 __ sqrt_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); |
| 654 break; | 654 break; |
| 655 } | 655 } |
| 656 case kMips64CvtSD: { | 656 case kMips64CvtSD: { |
| 657 __ cvt_s_d(i.OutputSingleRegister(), i.InputDoubleRegister(0)); | 657 __ cvt_s_d(i.OutputSingleRegister(), i.InputDoubleRegister(0)); |
| 658 break; | 658 break; |
| 659 } | 659 } |
| 660 case kMips64CvtDS: { | 660 case kMips64CvtDS: { |
| 661 __ cvt_d_s(i.OutputDoubleRegister(), i.InputSingleRegister(0)); | 661 __ cvt_d_s(i.OutputDoubleRegister(), i.InputSingleRegister(0)); |
| (...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1377 } | 1377 } |
| 1378 } | 1378 } |
| 1379 MarkLazyDeoptSite(); | 1379 MarkLazyDeoptSite(); |
| 1380 } | 1380 } |
| 1381 | 1381 |
| 1382 #undef __ | 1382 #undef __ |
| 1383 | 1383 |
| 1384 } // namespace compiler | 1384 } // namespace compiler |
| 1385 } // namespace internal | 1385 } // namespace internal |
| 1386 } // namespace v8 | 1386 } // namespace v8 |
| OLD | NEW |