Index: src/compiler/arm64/code-generator-arm64.cc |
diff --git a/src/compiler/arm64/code-generator-arm64.cc b/src/compiler/arm64/code-generator-arm64.cc |
index 14603863b18c7ff074d3d99966421b84ce5dd00d..ec130076ad9f8f0aaeb0deb8d1f69753bc13d888 100644 |
--- a/src/compiler/arm64/code-generator-arm64.cc |
+++ b/src/compiler/arm64/code-generator-arm64.cc |
@@ -1242,6 +1242,16 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction( |
case kArm64Float64Abs: |
__ Fabs(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); |
break; |
+ case kArm64Float64Log: { |
+ // TODO(dcarney): implement directly. See note in lithium-codegen-arm64.cc |
Yang
2016/06/03 09:41:43
TODO(dcarney)....?
Benedikt Meurer
2016/06/03 09:45:03
Copy and paste :-)
|
+ FrameScope scope(masm(), StackFrame::MANUAL); |
+ DCHECK(d0.is(i.InputDoubleRegister(0))); |
+ DCHECK(d0.is(i.OutputDoubleRegister())); |
+ // TODO(dcarney): make sure this saves all relevant registers. |
+ __ CallCFunction(ExternalReference::math_log_double_function(isolate()), |
+ 0, 1); |
+ break; |
+ } |
case kArm64Float64Neg: |
__ Fneg(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); |
break; |