Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: src/crankshaft/arm64/lithium-codegen-arm64.cc

Issue 2053893003: [builtins] Introduce proper base::ieee754::log. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: BUILD.gn Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/crankshaft/arm/lithium-codegen-arm.cc ('k') | src/crankshaft/hydrogen-instructions.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/crankshaft/arm/lithium-codegen-arm.cc ('k') | src/crankshaft/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698