Index: src/x64/codegen-x64.cc |
=================================================================== |
--- src/x64/codegen-x64.cc (revision 5911) |
+++ src/x64/codegen-x64.cc (working copy) |
@@ -7111,6 +7111,15 @@ |
} |
+void CodeGenerator::GenerateMathLog(ZoneList<Expression*>* args) { |
+ ASSERT_EQ(args->length(), 1); |
+ Load(args->at(0)); |
+ TranscendentalCacheStub stub(TranscendentalCache::LOG); |
+ Result result = frame_->CallStub(&stub, 1); |
+ frame_->Push(&result); |
+} |
+ |
+ |
// Generates the Math.sqrt method. Please note - this function assumes that |
// the callsite has executed ToNumber on the argument. |
void CodeGenerator::GenerateMathSqrt(ZoneList<Expression*>* args) { |