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

Side by Side Diff: src/crankshaft/mips64/lithium-codegen-mips64.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/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/ppc/lithium-codegen-ppc.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/mips64/lithium-codegen-mips64.h" 5 #include "src/crankshaft/mips64/lithium-codegen-mips64.h"
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/crankshaft/hydrogen-osr.h" 9 #include "src/crankshaft/hydrogen-osr.h"
10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" 10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h"
(...skipping 3694 matching lines...) Expand 10 before | Expand all | Expand 10 after
3705 3705
3706 MathExpGenerator::EmitMathExp( 3706 MathExpGenerator::EmitMathExp(
3707 masm(), input, result, double_scratch1, double_scratch2, 3707 masm(), input, result, double_scratch1, double_scratch2,
3708 temp1, temp2, scratch0()); 3708 temp1, temp2, scratch0());
3709 } 3709 }
3710 3710
3711 3711
3712 void LCodeGen::DoMathLog(LMathLog* instr) { 3712 void LCodeGen::DoMathLog(LMathLog* instr) {
3713 __ PrepareCallCFunction(0, 1, scratch0()); 3713 __ PrepareCallCFunction(0, 1, scratch0());
3714 __ MovToFloatParameter(ToDoubleRegister(instr->value())); 3714 __ MovToFloatParameter(ToDoubleRegister(instr->value()));
3715 __ CallCFunction(ExternalReference::math_log_double_function(isolate()), 3715 __ CallCFunction(ExternalReference::ieee754_log_function(isolate()), 0, 1);
3716 0, 1);
3717 __ MovFromFloatResult(ToDoubleRegister(instr->result())); 3716 __ MovFromFloatResult(ToDoubleRegister(instr->result()));
3718 } 3717 }
3719 3718
3720 3719
3721 void LCodeGen::DoMathClz32(LMathClz32* instr) { 3720 void LCodeGen::DoMathClz32(LMathClz32* instr) {
3722 Register input = ToRegister(instr->value()); 3721 Register input = ToRegister(instr->value());
3723 Register result = ToRegister(instr->result()); 3722 Register result = ToRegister(instr->result());
3724 __ Clz(result, input); 3723 __ Clz(result, input);
3725 } 3724 }
3726 3725
(...skipping 2033 matching lines...) Expand 10 before | Expand all | Expand 10 after
5760 __ ld(result, FieldMemOperand(scratch, 5759 __ ld(result, FieldMemOperand(scratch,
5761 FixedArray::kHeaderSize - kPointerSize)); 5760 FixedArray::kHeaderSize - kPointerSize));
5762 __ bind(deferred->exit()); 5761 __ bind(deferred->exit());
5763 __ bind(&done); 5762 __ bind(&done);
5764 } 5763 }
5765 5764
5766 #undef __ 5765 #undef __
5767 5766
5768 } // namespace internal 5767 } // namespace internal
5769 } // namespace v8 5768 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/ppc/lithium-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698