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/builtins/builtins-constructor.h" | 8 #include "src/builtins/builtins-constructor.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 3718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3729 void LCodeGen::DoMathLog(LMathLog* instr) { | 3729 void LCodeGen::DoMathLog(LMathLog* instr) { |
3730 __ PrepareCallCFunction(0, 1, scratch0()); | 3730 __ PrepareCallCFunction(0, 1, scratch0()); |
3731 __ MovToFloatParameter(ToDoubleRegister(instr->value())); | 3731 __ MovToFloatParameter(ToDoubleRegister(instr->value())); |
3732 __ CallCFunction(ExternalReference::ieee754_log_function(isolate()), 0, 1); | 3732 __ CallCFunction(ExternalReference::ieee754_log_function(isolate()), 0, 1); |
3733 __ MovFromFloatResult(ToDoubleRegister(instr->result())); | 3733 __ MovFromFloatResult(ToDoubleRegister(instr->result())); |
3734 } | 3734 } |
3735 | 3735 |
3736 void LCodeGen::DoMathClz32(LMathClz32* instr) { | 3736 void LCodeGen::DoMathClz32(LMathClz32* instr) { |
3737 Register input = ToRegister(instr->value()); | 3737 Register input = ToRegister(instr->value()); |
3738 Register result = ToRegister(instr->result()); | 3738 Register result = ToRegister(instr->result()); |
3739 __ cntlzw_(result, input); | 3739 __ cntlzw(result, input); |
3740 } | 3740 } |
3741 | 3741 |
3742 void LCodeGen::PrepareForTailCall(const ParameterCount& actual, | 3742 void LCodeGen::PrepareForTailCall(const ParameterCount& actual, |
3743 Register scratch1, Register scratch2, | 3743 Register scratch1, Register scratch2, |
3744 Register scratch3) { | 3744 Register scratch3) { |
3745 #if DEBUG | 3745 #if DEBUG |
3746 if (actual.is_reg()) { | 3746 if (actual.is_reg()) { |
3747 DCHECK(!AreAliased(actual.reg(), scratch1, scratch2, scratch3)); | 3747 DCHECK(!AreAliased(actual.reg(), scratch1, scratch2, scratch3)); |
3748 } else { | 3748 } else { |
3749 DCHECK(!AreAliased(scratch1, scratch2, scratch3)); | 3749 DCHECK(!AreAliased(scratch1, scratch2, scratch3)); |
(...skipping 1928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5678 __ LoadP(result, | 5678 __ LoadP(result, |
5679 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); | 5679 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); |
5680 __ bind(deferred->exit()); | 5680 __ bind(deferred->exit()); |
5681 __ bind(&done); | 5681 __ bind(&done); |
5682 } | 5682 } |
5683 | 5683 |
5684 #undef __ | 5684 #undef __ |
5685 | 5685 |
5686 } // namespace internal | 5686 } // namespace internal |
5687 } // namespace v8 | 5687 } // namespace v8 |
OLD | NEW |