Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 176dd9fa77a04f8c401cef6fd8da191bd736cefa..d234c7bb0a7ad47170940e5b32b371ba3c1647d6 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -10146,11 +10146,10 @@ void HOptimizedGraphBuilder::GenerateMathPow(CallRuntime* call) { |
void HOptimizedGraphBuilder::GenerateMathLog(CallRuntime* call) { |
- ASSERT_EQ(1, call->arguments()->length()); |
- CHECK_ALIVE(VisitArgumentList(call->arguments())); |
- HCallStub* result = New<HCallStub>(CodeStub::TranscendentalCache, 1); |
- result->set_transcendental_type(TranscendentalCache::LOG); |
- Drop(1); |
+ ASSERT(call->arguments()->length() == 1); |
+ CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |
+ HValue* value = Pop(); |
+ HInstruction* result = NewUncasted<HUnaryMathOperation>(value, kMathLog); |
return ast_context()->ReturnInstruction(result, call->id()); |
} |