| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // | 2 // |
| 3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
| 4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
| 5 | 5 |
| 6 #include "src/crankshaft/s390/lithium-codegen-s390.h" | 6 #include "src/crankshaft/s390/lithium-codegen-s390.h" |
| 7 | 7 |
| 8 #include "src/base/bits.h" | 8 #include "src/base/bits.h" |
| 9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 3667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3678 Register temp1 = ToRegister(instr->temp1()); | 3678 Register temp1 = ToRegister(instr->temp1()); |
| 3679 Register temp2 = ToRegister(instr->temp2()); | 3679 Register temp2 = ToRegister(instr->temp2()); |
| 3680 | 3680 |
| 3681 MathExpGenerator::EmitMathExp(masm(), input, result, double_scratch1, | 3681 MathExpGenerator::EmitMathExp(masm(), input, result, double_scratch1, |
| 3682 double_scratch2, temp1, temp2, scratch0()); | 3682 double_scratch2, temp1, temp2, scratch0()); |
| 3683 } | 3683 } |
| 3684 | 3684 |
| 3685 void LCodeGen::DoMathLog(LMathLog* instr) { | 3685 void LCodeGen::DoMathLog(LMathLog* instr) { |
| 3686 __ PrepareCallCFunction(0, 1, scratch0()); | 3686 __ PrepareCallCFunction(0, 1, scratch0()); |
| 3687 __ MovToFloatParameter(ToDoubleRegister(instr->value())); | 3687 __ MovToFloatParameter(ToDoubleRegister(instr->value())); |
| 3688 __ CallCFunction(ExternalReference::math_log_double_function(isolate()), 0, | 3688 __ CallCFunction(ExternalReference::ieee754_log_function(isolate()), 0, 1); |
| 3689 1); | |
| 3690 __ MovFromFloatResult(ToDoubleRegister(instr->result())); | 3689 __ MovFromFloatResult(ToDoubleRegister(instr->result())); |
| 3691 } | 3690 } |
| 3692 | 3691 |
| 3693 void LCodeGen::DoMathClz32(LMathClz32* instr) { | 3692 void LCodeGen::DoMathClz32(LMathClz32* instr) { |
| 3694 Register input = ToRegister(instr->value()); | 3693 Register input = ToRegister(instr->value()); |
| 3695 Register result = ToRegister(instr->result()); | 3694 Register result = ToRegister(instr->result()); |
| 3696 Label done; | 3695 Label done; |
| 3697 __ llgfr(result, input); | 3696 __ llgfr(result, input); |
| 3698 __ flogr(r0, result); | 3697 __ flogr(r0, result); |
| 3699 __ LoadRR(result, r0); | 3698 __ LoadRR(result, r0); |
| (...skipping 2002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5702 __ LoadP(result, | 5701 __ LoadP(result, |
| 5703 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); | 5702 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); |
| 5704 __ bind(deferred->exit()); | 5703 __ bind(deferred->exit()); |
| 5705 __ bind(&done); | 5704 __ bind(&done); |
| 5706 } | 5705 } |
| 5707 | 5706 |
| 5708 #undef __ | 5707 #undef __ |
| 5709 | 5708 |
| 5710 } // namespace internal | 5709 } // namespace internal |
| 5711 } // namespace v8 | 5710 } // namespace v8 |
| OLD | NEW |