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

Side by Side Diff: src/crankshaft/s390/lithium-codegen-s390.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/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/x64/lithium-codegen-x64.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // 2 //
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 #include "src/crankshaft/s390/lithium-codegen-s390.h" 6 #include "src/crankshaft/s390/lithium-codegen-s390.h"
7 7
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 3667 matching lines...) Expand 10 before | Expand all | Expand 10 after
3678 Register temp1 = ToRegister(instr->temp1()); 3678 Register temp1 = ToRegister(instr->temp1());
3679 Register temp2 = ToRegister(instr->temp2()); 3679 Register temp2 = ToRegister(instr->temp2());
3680 3680
3681 MathExpGenerator::EmitMathExp(masm(), input, result, double_scratch1, 3681 MathExpGenerator::EmitMathExp(masm(), input, result, double_scratch1,
3682 double_scratch2, temp1, temp2, scratch0()); 3682 double_scratch2, temp1, temp2, scratch0());
3683 } 3683 }
3684 3684
3685 void LCodeGen::DoMathLog(LMathLog* instr) { 3685 void LCodeGen::DoMathLog(LMathLog* instr) {
3686 __ PrepareCallCFunction(0, 1, scratch0()); 3686 __ PrepareCallCFunction(0, 1, scratch0());
3687 __ MovToFloatParameter(ToDoubleRegister(instr->value())); 3687 __ MovToFloatParameter(ToDoubleRegister(instr->value()));
3688 __ CallCFunction(ExternalReference::math_log_double_function(isolate()), 0, 3688 __ CallCFunction(ExternalReference::ieee754_log_function(isolate()), 0, 1);
3689 1);
3690 __ MovFromFloatResult(ToDoubleRegister(instr->result())); 3689 __ MovFromFloatResult(ToDoubleRegister(instr->result()));
3691 } 3690 }
3692 3691
3693 void LCodeGen::DoMathClz32(LMathClz32* instr) { 3692 void LCodeGen::DoMathClz32(LMathClz32* instr) {
3694 Register input = ToRegister(instr->value()); 3693 Register input = ToRegister(instr->value());
3695 Register result = ToRegister(instr->result()); 3694 Register result = ToRegister(instr->result());
3696 Label done; 3695 Label done;
3697 __ llgfr(result, input); 3696 __ llgfr(result, input);
3698 __ flogr(r0, result); 3697 __ flogr(r0, result);
3699 __ LoadRR(result, r0); 3698 __ LoadRR(result, r0);
(...skipping 2002 matching lines...) Expand 10 before | Expand all | Expand 10 after
5702 __ LoadP(result, 5701 __ LoadP(result,
5703 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); 5702 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize));
5704 __ bind(deferred->exit()); 5703 __ bind(deferred->exit());
5705 __ bind(&done); 5704 __ bind(&done);
5706 } 5705 }
5707 5706
5708 #undef __ 5707 #undef __
5709 5708
5710 } // namespace internal 5709 } // namespace internal
5711 } // namespace v8 5710 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698