| OLD | NEW |
| 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 Loading... |
| 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 DwVfpRegister input = ToDoubleRegister(instr->value()); | 3543 __ PrepareCallCFunction(0, 1, scratch0()); |
| 3544 DwVfpRegister result = ToDoubleRegister(instr->result()); | 3544 __ MovToFloatParameter(ToDoubleRegister(instr->value())); |
| 3545 DwVfpRegister double_scratch1 = ToDoubleRegister(instr->double_temp()); | 3545 __ CallCFunction(ExternalReference::ieee754_exp_function(isolate()), 0, 1); |
| 3546 DwVfpRegister double_scratch2 = double_scratch0(); | 3546 __ MovFromFloatResult(ToDoubleRegister(instr->result())); |
| 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()); | |
| 3553 } | 3547 } |
| 3554 | 3548 |
| 3555 | 3549 |
| 3556 void LCodeGen::DoMathLog(LMathLog* instr) { | 3550 void LCodeGen::DoMathLog(LMathLog* instr) { |
| 3557 __ PrepareCallCFunction(0, 1, scratch0()); | 3551 __ PrepareCallCFunction(0, 1, scratch0()); |
| 3558 __ MovToFloatParameter(ToDoubleRegister(instr->value())); | 3552 __ MovToFloatParameter(ToDoubleRegister(instr->value())); |
| 3559 __ CallCFunction(ExternalReference::ieee754_log_function(isolate()), 0, 1); | 3553 __ CallCFunction(ExternalReference::ieee754_log_function(isolate()), 0, 1); |
| 3560 __ MovFromFloatResult(ToDoubleRegister(instr->result())); | 3554 __ MovFromFloatResult(ToDoubleRegister(instr->result())); |
| 3561 } | 3555 } |
| 3562 | 3556 |
| (...skipping 1987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5550 __ ldr(result, FieldMemOperand(scratch, | 5544 __ ldr(result, FieldMemOperand(scratch, |
| 5551 FixedArray::kHeaderSize - kPointerSize)); | 5545 FixedArray::kHeaderSize - kPointerSize)); |
| 5552 __ bind(deferred->exit()); | 5546 __ bind(deferred->exit()); |
| 5553 __ bind(&done); | 5547 __ bind(&done); |
| 5554 } | 5548 } |
| 5555 | 5549 |
| 5556 #undef __ | 5550 #undef __ |
| 5557 | 5551 |
| 5558 } // namespace internal | 5552 } // namespace internal |
| 5559 } // namespace v8 | 5553 } // namespace v8 |
| OLD | NEW |