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 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 FrameScope scope(masm(), StackFrame::MANUAL); | 566 FrameScope scope(masm(), StackFrame::MANUAL); |
567 __ PrepareCallCFunction(0, 2, kScratchReg); | 567 __ PrepareCallCFunction(0, 2, kScratchReg); |
568 __ MovToFloatParameters(i.InputDoubleRegister(0), | 568 __ MovToFloatParameters(i.InputDoubleRegister(0), |
569 i.InputDoubleRegister(1)); | 569 i.InputDoubleRegister(1)); |
570 __ CallCFunction(ExternalReference::mod_two_doubles_operation(isolate()), | 570 __ CallCFunction(ExternalReference::mod_two_doubles_operation(isolate()), |
571 0, 2); | 571 0, 2); |
572 // Move the result in the double result register. | 572 // Move the result in the double result register. |
573 __ MovFromFloatResult(i.OutputDoubleRegister()); | 573 __ MovFromFloatResult(i.OutputDoubleRegister()); |
574 break; | 574 break; |
575 } | 575 } |
576 case kMipsFloat64Floor: { | 576 case kMipsFloat64RoundDown: { |
577 ASSEMBLE_ROUND_DOUBLE_TO_DOUBLE(floor_l_d, Floor); | 577 ASSEMBLE_ROUND_DOUBLE_TO_DOUBLE(floor_l_d, Floor); |
578 break; | 578 break; |
579 } | 579 } |
580 case kMipsFloat64Ceil: { | |
581 ASSEMBLE_ROUND_DOUBLE_TO_DOUBLE(ceil_l_d, Ceil); | |
582 break; | |
583 } | |
584 case kMipsFloat64RoundTruncate: { | 580 case kMipsFloat64RoundTruncate: { |
585 ASSEMBLE_ROUND_DOUBLE_TO_DOUBLE(trunc_l_d, Truncate); | 581 ASSEMBLE_ROUND_DOUBLE_TO_DOUBLE(trunc_l_d, Truncate); |
586 break; | 582 break; |
587 } | 583 } |
| 584 case kMipsFloat64RoundUp: { |
| 585 ASSEMBLE_ROUND_DOUBLE_TO_DOUBLE(ceil_l_d, Ceil); |
| 586 break; |
| 587 } |
588 case kMipsSqrtD: { | 588 case kMipsSqrtD: { |
589 __ sqrt_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); | 589 __ sqrt_d(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); |
590 break; | 590 break; |
591 } | 591 } |
592 case kMipsCvtSD: { | 592 case kMipsCvtSD: { |
593 __ cvt_s_d(i.OutputSingleRegister(), i.InputDoubleRegister(0)); | 593 __ cvt_s_d(i.OutputSingleRegister(), i.InputDoubleRegister(0)); |
594 break; | 594 break; |
595 } | 595 } |
596 case kMipsCvtDS: { | 596 case kMipsCvtDS: { |
597 __ cvt_d_s(i.OutputDoubleRegister(), i.InputSingleRegister(0)); | 597 __ cvt_d_s(i.OutputDoubleRegister(), i.InputSingleRegister(0)); |
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1217 } | 1217 } |
1218 } | 1218 } |
1219 MarkLazyDeoptSite(); | 1219 MarkLazyDeoptSite(); |
1220 } | 1220 } |
1221 | 1221 |
1222 #undef __ | 1222 #undef __ |
1223 | 1223 |
1224 } // namespace compiler | 1224 } // namespace compiler |
1225 } // namespace internal | 1225 } // namespace internal |
1226 } // namespace v8 | 1226 } // namespace v8 |
OLD | NEW |