OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/arm64/lithium-codegen-arm64.h" | 5 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" |
6 | 6 |
7 #include "src/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
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 3718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3729 __ Cbz(remainder, &done); | 3729 __ Cbz(remainder, &done); |
3730 __ Sub(result, result, 1); | 3730 __ Sub(result, result, 1); |
3731 | 3731 |
3732 __ Bind(&done); | 3732 __ Bind(&done); |
3733 } | 3733 } |
3734 | 3734 |
3735 | 3735 |
3736 void LCodeGen::DoMathLog(LMathLog* instr) { | 3736 void LCodeGen::DoMathLog(LMathLog* instr) { |
3737 DCHECK(instr->IsMarkedAsCall()); | 3737 DCHECK(instr->IsMarkedAsCall()); |
3738 DCHECK(ToDoubleRegister(instr->value()).is(d0)); | 3738 DCHECK(ToDoubleRegister(instr->value()).is(d0)); |
3739 __ CallCFunction(ExternalReference::math_log_double_function(isolate()), | 3739 __ CallCFunction(ExternalReference::ieee754_log_function(isolate()), 0, 1); |
3740 0, 1); | |
3741 DCHECK(ToDoubleRegister(instr->result()).Is(d0)); | 3740 DCHECK(ToDoubleRegister(instr->result()).Is(d0)); |
3742 } | 3741 } |
3743 | 3742 |
3744 | 3743 |
3745 void LCodeGen::DoMathClz32(LMathClz32* instr) { | 3744 void LCodeGen::DoMathClz32(LMathClz32* instr) { |
3746 Register input = ToRegister32(instr->value()); | 3745 Register input = ToRegister32(instr->value()); |
3747 Register result = ToRegister32(instr->result()); | 3746 Register result = ToRegister32(instr->result()); |
3748 __ Clz(result, input); | 3747 __ Clz(result, input); |
3749 } | 3748 } |
3750 | 3749 |
(...skipping 1999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5750 // Index is equal to negated out of object property index plus 1. | 5749 // Index is equal to negated out of object property index plus 1. |
5751 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); | 5750 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); |
5752 __ Ldr(result, FieldMemOperand(result, | 5751 __ Ldr(result, FieldMemOperand(result, |
5753 FixedArray::kHeaderSize - kPointerSize)); | 5752 FixedArray::kHeaderSize - kPointerSize)); |
5754 __ Bind(deferred->exit()); | 5753 __ Bind(deferred->exit()); |
5755 __ Bind(&done); | 5754 __ Bind(&done); |
5756 } | 5755 } |
5757 | 5756 |
5758 } // namespace internal | 5757 } // namespace internal |
5759 } // namespace v8 | 5758 } // namespace v8 |
OLD | NEW |