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

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

Issue 2070813002: Revert of [builtins] Introduce proper Float64Exp operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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-arm.cc ('k') | src/crankshaft/arm64/lithium-arm64.h » ('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/arm/lithium-codegen-arm.h" 5 #include "src/crankshaft/arm/lithium-codegen-arm.h"
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h"
(...skipping 3522 matching lines...) Expand 10 before | Expand all | Expand 10 after
3533 __ CallStub(&stub); 3533 __ CallStub(&stub);
3534 } else { 3534 } else {
3535 DCHECK(exponent_type.IsDouble()); 3535 DCHECK(exponent_type.IsDouble());
3536 MathPowStub stub(isolate(), MathPowStub::DOUBLE); 3536 MathPowStub stub(isolate(), MathPowStub::DOUBLE);
3537 __ CallStub(&stub); 3537 __ CallStub(&stub);
3538 } 3538 }
3539 } 3539 }
3540 3540
3541 3541
3542 void LCodeGen::DoMathExp(LMathExp* instr) { 3542 void LCodeGen::DoMathExp(LMathExp* instr) {
3543 __ PrepareCallCFunction(0, 1, scratch0()); 3543 DwVfpRegister input = ToDoubleRegister(instr->value());
3544 __ MovToFloatParameter(ToDoubleRegister(instr->value())); 3544 DwVfpRegister result = ToDoubleRegister(instr->result());
3545 __ CallCFunction(ExternalReference::ieee754_exp_function(isolate()), 0, 1); 3545 DwVfpRegister double_scratch1 = ToDoubleRegister(instr->double_temp());
3546 __ MovFromFloatResult(ToDoubleRegister(instr->result())); 3546 DwVfpRegister double_scratch2 = double_scratch0();
3547 Register temp1 = ToRegister(instr->temp1());
3548 Register temp2 = ToRegister(instr->temp2());
3549
3550 MathExpGenerator::EmitMathExp(
3551 masm(), input, result, double_scratch1, double_scratch2,
3552 temp1, temp2, scratch0());
3547 } 3553 }
3548 3554
3549 3555
3550 void LCodeGen::DoMathLog(LMathLog* instr) { 3556 void LCodeGen::DoMathLog(LMathLog* instr) {
3551 __ PrepareCallCFunction(0, 1, scratch0()); 3557 __ PrepareCallCFunction(0, 1, scratch0());
3552 __ MovToFloatParameter(ToDoubleRegister(instr->value())); 3558 __ MovToFloatParameter(ToDoubleRegister(instr->value()));
3553 __ CallCFunction(ExternalReference::ieee754_log_function(isolate()), 0, 1); 3559 __ CallCFunction(ExternalReference::ieee754_log_function(isolate()), 0, 1);
3554 __ MovFromFloatResult(ToDoubleRegister(instr->result())); 3560 __ MovFromFloatResult(ToDoubleRegister(instr->result()));
3555 } 3561 }
3556 3562
(...skipping 1987 matching lines...) Expand 10 before | Expand all | Expand 10 after
5544 __ ldr(result, FieldMemOperand(scratch, 5550 __ ldr(result, FieldMemOperand(scratch,
5545 FixedArray::kHeaderSize - kPointerSize)); 5551 FixedArray::kHeaderSize - kPointerSize));
5546 __ bind(deferred->exit()); 5552 __ bind(deferred->exit());
5547 __ bind(&done); 5553 __ bind(&done);
5548 } 5554 }
5549 5555
5550 #undef __ 5556 #undef __
5551 5557
5552 } // namespace internal 5558 } // namespace internal
5553 } // namespace v8 5559 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/arm/lithium-arm.cc ('k') | src/crankshaft/arm64/lithium-arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698