| 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 3539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3550 | 3550 |
| 3551 MathExpGenerator::EmitMathExp( | 3551 MathExpGenerator::EmitMathExp( |
| 3552 masm(), input, result, double_scratch1, double_scratch2, | 3552 masm(), input, result, double_scratch1, double_scratch2, |
| 3553 temp1, temp2, scratch0()); | 3553 temp1, temp2, scratch0()); |
| 3554 } | 3554 } |
| 3555 | 3555 |
| 3556 | 3556 |
| 3557 void LCodeGen::DoMathLog(LMathLog* instr) { | 3557 void LCodeGen::DoMathLog(LMathLog* instr) { |
| 3558 __ PrepareCallCFunction(0, 1, scratch0()); | 3558 __ PrepareCallCFunction(0, 1, scratch0()); |
| 3559 __ MovToFloatParameter(ToDoubleRegister(instr->value())); | 3559 __ MovToFloatParameter(ToDoubleRegister(instr->value())); |
| 3560 __ CallCFunction(ExternalReference::math_log_double_function(isolate()), | 3560 __ CallCFunction(ExternalReference::ieee754_log_function(isolate()), 0, 1); |
| 3561 0, 1); | |
| 3562 __ MovFromFloatResult(ToDoubleRegister(instr->result())); | 3561 __ MovFromFloatResult(ToDoubleRegister(instr->result())); |
| 3563 } | 3562 } |
| 3564 | 3563 |
| 3565 | 3564 |
| 3566 void LCodeGen::DoMathClz32(LMathClz32* instr) { | 3565 void LCodeGen::DoMathClz32(LMathClz32* instr) { |
| 3567 Register input = ToRegister(instr->value()); | 3566 Register input = ToRegister(instr->value()); |
| 3568 Register result = ToRegister(instr->result()); | 3567 Register result = ToRegister(instr->result()); |
| 3569 __ clz(result, input); | 3568 __ clz(result, input); |
| 3570 } | 3569 } |
| 3571 | 3570 |
| (...skipping 1987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5559 __ ldr(result, FieldMemOperand(scratch, | 5558 __ ldr(result, FieldMemOperand(scratch, |
| 5560 FixedArray::kHeaderSize - kPointerSize)); | 5559 FixedArray::kHeaderSize - kPointerSize)); |
| 5561 __ bind(deferred->exit()); | 5560 __ bind(deferred->exit()); |
| 5562 __ bind(&done); | 5561 __ bind(&done); |
| 5563 } | 5562 } |
| 5564 | 5563 |
| 5565 #undef __ | 5564 #undef __ |
| 5566 | 5565 |
| 5567 } // namespace internal | 5566 } // namespace internal |
| 5568 } // namespace v8 | 5567 } // namespace v8 |
| OLD | NEW |