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/crankshaft/ppc/lithium-codegen-ppc.h" | 5 #include "src/crankshaft/ppc/lithium-codegen-ppc.h" |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/crankshaft/hydrogen-osr.h" | 10 #include "src/crankshaft/hydrogen-osr.h" |
(...skipping 3773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3784 Register temp2 = ToRegister(instr->temp2()); | 3784 Register temp2 = ToRegister(instr->temp2()); |
3785 | 3785 |
3786 MathExpGenerator::EmitMathExp(masm(), input, result, double_scratch1, | 3786 MathExpGenerator::EmitMathExp(masm(), input, result, double_scratch1, |
3787 double_scratch2, temp1, temp2, scratch0()); | 3787 double_scratch2, temp1, temp2, scratch0()); |
3788 } | 3788 } |
3789 | 3789 |
3790 | 3790 |
3791 void LCodeGen::DoMathLog(LMathLog* instr) { | 3791 void LCodeGen::DoMathLog(LMathLog* instr) { |
3792 __ PrepareCallCFunction(0, 1, scratch0()); | 3792 __ PrepareCallCFunction(0, 1, scratch0()); |
3793 __ MovToFloatParameter(ToDoubleRegister(instr->value())); | 3793 __ MovToFloatParameter(ToDoubleRegister(instr->value())); |
3794 __ CallCFunction(ExternalReference::math_log_double_function(isolate()), 0, | 3794 __ CallCFunction(ExternalReference::ieee754_log_function(isolate()), 0, 1); |
3795 1); | |
3796 __ MovFromFloatResult(ToDoubleRegister(instr->result())); | 3795 __ MovFromFloatResult(ToDoubleRegister(instr->result())); |
3797 } | 3796 } |
3798 | 3797 |
3799 | 3798 |
3800 void LCodeGen::DoMathClz32(LMathClz32* instr) { | 3799 void LCodeGen::DoMathClz32(LMathClz32* instr) { |
3801 Register input = ToRegister(instr->value()); | 3800 Register input = ToRegister(instr->value()); |
3802 Register result = ToRegister(instr->result()); | 3801 Register result = ToRegister(instr->result()); |
3803 __ cntlzw_(result, input); | 3802 __ cntlzw_(result, input); |
3804 } | 3803 } |
3805 | 3804 |
(...skipping 2012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5818 __ LoadP(result, | 5817 __ LoadP(result, |
5819 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); | 5818 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); |
5820 __ bind(deferred->exit()); | 5819 __ bind(deferred->exit()); |
5821 __ bind(&done); | 5820 __ bind(&done); |
5822 } | 5821 } |
5823 | 5822 |
5824 #undef __ | 5823 #undef __ |
5825 | 5824 |
5826 } // namespace internal | 5825 } // namespace internal |
5827 } // namespace v8 | 5826 } // namespace v8 |
OLD | NEW |